{"id":24013821,"url":"https://github.com/aidansteele/codebuild","last_synced_at":"2025-04-15T09:43:26.673Z","repository":{"id":84300144,"uuid":"277394634","full_name":"aidansteele/codebuild","owner":"aidansteele","description":"A completely unofficial source of CodeBuild Docker images","archived":false,"fork":false,"pushed_at":"2024-11-27T06:24:16.000Z","size":4,"stargazers_count":7,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-05T22:54:21.475Z","etag":null,"topics":["aws","codebuild","docker"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/glassechidna/codebuild","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aidansteele.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-07-05T22:37:28.000Z","updated_at":"2025-02-22T00:19:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"d94a5c78-5503-41ee-936e-4dcc93f3f195","html_url":"https://github.com/aidansteele/codebuild","commit_stats":null,"previous_names":["aidansteele/codebuild"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aidansteele%2Fcodebuild","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aidansteele%2Fcodebuild/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aidansteele%2Fcodebuild/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aidansteele%2Fcodebuild/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aidansteele","download_url":"https://codeload.github.com/aidansteele/codebuild/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249047321,"owners_count":21204231,"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":["aws","codebuild","docker"],"created_at":"2025-01-08T06:57:24.126Z","updated_at":"2025-04-15T09:43:26.646Z","avatar_url":"https://github.com/aidansteele.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A completely unofficial source of CodeBuild Docker images\n\nAWS CodeBuild has two features that are both super useful:\n\n* [Curated images](https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-available.html) with\n  a **lot** of useful software pre-installed.\n* Custom images: the ability to specify your own Docker image to use as your\n  build environment.\n\nUnfortunately, where it falls down is _combining_ these two features. If you want\nto customise one of the curated images, you _can_ because AWS provides the [Dockerfiles](https://github.com/aws/aws-codebuild-docker-images)\nused to build those images. But you won't want to, for a few reasons:\n\n* Building `aws/codebuild/standard:4.0` takes 25 minutes on a `general1.large`\n* Running a build job on CodeBuild using that custom image takes about 350 seconds\n  on a `general1.small`. That's about five and a half minutes more than the usual\n  20-something seconds. Massive overhead!\n\nThe second issue is because CodeBuild has to download your ~3.7GB image and decompress\nit to ~8.7GB. It has to do all that because your image doesn't share any Docker image\n_layers_ with the curated images.\n\n## Solution\n\nThe solution is to build your custom image and have your Dockerfile build on\ntop of the curated image's layers. AWS doesn't publish these, so I did it myself.\nMore information is available on the usage tab of the ECR Public Gallery listing, but \nyou can use them like so:\n\n```\nFROM public.ecr.aws/aidansteele/codebuild/standard:7.0\nRUN echo 'hello world' \u003e /etc/example.txt\n```\n\nYou can then publish that image to ECR, Docker Hub, anywhere you want. You'll\nstill have to upload (and pay for on ECR) ~4GB to store the entire image, but\nwhen CodeBuild runs your custom image it will incur essentially no overhead.\n\n## How?\n\nThis image is extracted from the CodeBuild environment by \"escaping\" the CodeBuild\nenvironment, retagging the images and pushing them to the ECR Public Gallery. The process\nruns once a day (so that Amazon's changes are automatically reflected in this repo)\nand is open source: see the [GitHub repo](https://github.com/aidansteele/codebuild)\nfor more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faidansteele%2Fcodebuild","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faidansteele%2Fcodebuild","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faidansteele%2Fcodebuild/lists"}