{"id":18746082,"url":"https://github.com/fscm/docker-amazonlinux","last_synced_at":"2025-10-08T01:41:25.970Z","repository":{"id":202050219,"uuid":"386270880","full_name":"fscm/docker-amazonlinux","owner":"fscm","description":"Docker recipe to build an Amazon GNU/Linux image","archived":false,"fork":false,"pushed_at":"2022-01-03T15:58:05.000Z","size":15,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-28T20:27:04.997Z","etag":null,"topics":["amazonlinux2","docker","docker-image","dockerfile"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":false,"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/fscm.png","metadata":{"files":{"readme":"README.build.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-07-15T11:50:21.000Z","updated_at":"2024-03-07T12:53:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"92bae39c-d59a-4f94-bd80-f6fed579d921","html_url":"https://github.com/fscm/docker-amazonlinux","commit_stats":null,"previous_names":["fscm/docker-amazonlinux"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fscm%2Fdocker-amazonlinux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fscm%2Fdocker-amazonlinux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fscm%2Fdocker-amazonlinux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fscm%2Fdocker-amazonlinux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fscm","download_url":"https://codeload.github.com/fscm/docker-amazonlinux/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239627572,"owners_count":19670912,"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":["amazonlinux2","docker","docker-image","dockerfile"],"created_at":"2024-11-07T16:20:50.358Z","updated_at":"2025-10-08T01:41:20.910Z","avatar_url":"https://github.com/fscm.png","language":"Dockerfile","readme":"# Amazon Linux for Docker\n\nDocker image with Amazon GNU/Linux.\n\n## Synopsis\n\nThis is a set of scripts designed to create Docker images with Amazon\nGNU/Linux.\n\nThe Docker images resulting from these scripts should be the ones used\nto instantiate an Amazon Linux container.\n\n## Getting Started\n\nThere are a couple of things needed for the script to work.\n\n### Prerequisites\n\nDocker, either the Community Edition (CE) or Enterprise Edition (EE),\nneeds to be installed on your local computer.\n\n#### Docker\n\nDocker installation instructions can be found\n[here](https://docs.docker.com/install/).\n\n### Usage\n\nIn order to create a Docker image using this Dockerfiles you need to\nrun the `docker` command with a few options.\n\n```shell\ndocker image build --force-rm --no-cache --progress plain --file \u003cVARIANT\u003e/Dockerfile --tag \u003cUSER\u003e/\u003cIMAGE\u003e:\u003cTAG\u003e \u003cPATH\u003e\n```\n\n- `\u003cUSER\u003e` - *[required]* The user that will own the container image (e.g.: \"johndoe\").\n- `\u003cIMAGE\u003e` - *[required]* The container name (e.g.: \"amazonlinux\").\n- `\u003cTAG\u003e` - *[required]* The container tag (e.g.: \"latest\").\n- `\u003cPATH\u003e` - *[required]* The location of the Dockerfile folder.\n- `\u003cVARIANT\u003e` - *[required]* The variant that is being build (`amazonlinux2`).\n\nA build example:\n\n```shell\ndocker image build --force-rm --no-cache --progress plain --file amazonlinux2/Dockerfile --tag johndoe/my_amazonlinux:2 .\n```\n\nTo clean any _`none`_ image(s) left by the build process the following\ncommand can be used:\n\n```shell\ndocker image rm `docker image ls --filter \"dangling=true\" --quiet`\n```\n\nYou can also use the following command to achieve the same result:\n\n```shell\ndocker image prune -f\n```\n\n### Add Tags to the Docker Image\n\nAdditional tags can be added to the image using the following command:\n\n```shell\ndocker image tag \u003cimage_id\u003e \u003cuser\u003e/\u003cimage\u003e:\u003cextra_tag\u003e\n```\n\n### Push the image to Docker Hub\n\nAfter adding an image to Docker, that image can be pushed to a Docker\nregistry... Like Docker Hub.\n\nMake sure that you are logged in to the service.\n\n```shell\ndocker login\n```\n\nWhen logged in, an image can be pushed using the following command:\n\n```shell\ndocker image push \u003cuser\u003e/\u003cimage\u003e:\u003ctag\u003e\n```\n\nExtra tags can also be pushed.\n\n```shell\ndocker image push \u003cuser\u003e/\u003cimage\u003e:\u003cextra_tag\u003e\n```\n\n## Contributing\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request\n\nPlease read the [CONTRIBUTING.md](CONTRIBUTING.md) file for more details on how\nto contribute to this project.\n\n## Versioning\n\nThis project uses [SemVer](http://semver.org/) for versioning. For the versions\navailable, see the [tags on this repository](https://github.com/fscm/docker-amazonlinux/tags).\n\n## Authors\n\n- **Frederico Martins** - [fscm](https://github.com/fscm)\n\nSee also the list of [contributors](https://github.com/fscm/docker-amazonlinux/contributors)\nwho participated in this project.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE)\nfile for details\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffscm%2Fdocker-amazonlinux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffscm%2Fdocker-amazonlinux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffscm%2Fdocker-amazonlinux/lists"}