{"id":15600648,"url":"https://github.com/borda/docker_sample","last_synced_at":"2025-09-11T20:33:22.910Z","repository":{"id":75996270,"uuid":"214868882","full_name":"Borda/docker_sample","owner":"Borda","description":"This Docker image a i basic image with accent on automatic pushing to Docker Hub.","archived":false,"fork":false,"pushed_at":"2024-10-07T17:22:09.000Z","size":32,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-29T17:42:26.514Z","etag":null,"topics":["circle-ci","docker","docker-build","docker-image","docker-sample","dockerhub","gh-actions"],"latest_commit_sha":null,"homepage":"https://cloud.docker.com/u/borda/repository/docker/borda/docker_sample","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Borda.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-13T18:07:47.000Z","updated_at":"2024-09-17T19:38:28.000Z","dependencies_parsed_at":"2024-10-28T11:37:42.240Z","dependency_job_id":null,"html_url":"https://github.com/Borda/docker_sample","commit_stats":{"total_commits":25,"total_committers":4,"mean_commits":6.25,"dds":0.6,"last_synced_commit":"c50ee8f956ccd8121e36dc55869826c16d760d6a"},"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Borda%2Fdocker_sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Borda%2Fdocker_sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Borda%2Fdocker_sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Borda%2Fdocker_sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Borda","download_url":"https://codeload.github.com/Borda/docker_sample/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232666171,"owners_count":18557991,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["circle-ci","docker","docker-build","docker-image","docker-sample","dockerhub","gh-actions"],"created_at":"2024-10-03T02:05:17.448Z","updated_at":"2025-01-06T02:53:46.129Z","avatar_url":"https://github.com/Borda.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sample Docker Image\n\n![Publish Docker Image](https://github.com/Borda/docker_sample/workflows/Publish%20Docker%20Image/badge.svg?event=push)\n[![Docker Pulls](https://img.shields.io/docker/pulls/borda/docker_sample)](https://hub.docker.com/r/borda/docker_sample)\n[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/Borda/docker_sample/master.svg)](https://results.pre-commit.ci/latest/github/Borda/docker_sample/master)\n\n## Building with CI/CD\n\nThis Docker image a basic image with accent on automatic pushing to Docker Hub.\n\n1. build Docker image in a CI/CD _(for particular version)_\n1. test the Image in CI/CD _(for particular version)_\n1. push the Image to Docker Hub _**(from master only and if credentials are given)**_\n\nThe reason is that DockerHub builds are using weak machines and the build time is very limited compare to GH Actions / CircleCI where you can use up to 5 hours.\n\n### Using Github Actions\n\nAdvantage of this build is usage of layer caching with sync with Docker Hub, so you build only the changed Docker layers...\n\nThe credentials (`DOCKERHUB_USERNAME` and `DOCKER_PASSWORD`) has to be set in [Github setting - secrets](https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets).\n\n### Using CircleCI\n\nIt was dropped for some minor compatibility issues... to check it out pls see Git history.\n\n______________________________________________________________________\n\n## Building locally\n\nYou can build it on your own, note it takes lots of time, be prepared.\n\n```bash\ngit clone \u003cgit-repository\u003e\ncd docker_sample\ndocker image build -t ubuntu:py36 -f Dockerfile --build-arg PYTHON_VERSION=3.6 .\n```\n\nTo run build image use following.\n\n```bash\ndocker image list\ndocker run --rm -it ubuntu:py36 bash\ndocker image rm ubuntu:py36\n```\n\n### Cleaning\n\nIn case you fail with some builds, you may need to clean your local storage.\n\n```bash\ndocker image prune\n```\n\nor [Docker - How to cleanup (unused) resources](https://gist.github.com/bastman/5b57ddb3c11942094f8d0a97d461b430)\n\n```bash\ndocker images | grep \"none\"\ndocker rmi $(docker images | grep \"none\" | awk '/ / { print $3 }')\n```\n\nor remove all - [Some way to clean up](https://forums.docker.com/t/some-way-to-clean-up-identify-contents-of-var-lib-docker-overlay/30604)\n\n```bash\ndocker rm -vf $(docker ps -aq)\ndocker rmi -f $(docker images -aq)\ndocker volume prune -f\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborda%2Fdocker_sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fborda%2Fdocker_sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborda%2Fdocker_sample/lists"}