See TeamCity Build Agent Image
This repository holds Dockerfiles of official AWS CodeBuild curated Docker images. Please refer to the AWS CodeBuild User Guide for list of environments supported by AWS CodeBuild.
Steps to build aws-docker-1.13.1 image
- Run
git clone https://github.com/swarmnyc/aws-codebuild-docker-images.git
to download this repository to your local machine - Run
cd ubuntu/docker/1.13.1
to change the directory in your local workspace. This is the location of aws-docker-1.13.1 Dockerfile with Ubuntu base. - Run
./build.sh
to build Docker image locally and push to Docker Hub. - Once succeeded, your can run
docker run --privileged -it swarmnyc/aws-docker:1.13.1 /bin/bash
to start container runningbash
shell with the aws-docker-1.13.1 image. - In bash shell, run
nohup /usr/local/bin/dockerd --host=unix:https:///var/run/docker.sock --host=tcp:https://0.0.0.0:2375 --storage-driver=overlay&
to start the docker server. See Sample buildspec.yml
$ git clone https://github.com/swarmnyc/aws-codebuild-docker-images.git
$ cd aws-codebuild-docker-images
$ cd ubuntu/docker/1.13.1
$ docker build -t swarmnyc/aws-docker:1.13.1 .
$ docker run --privileged -it swarmnyc/aws-docker:1.13.1 /bin/bash
(in bash run below to start docker server)
# nohup /usr/local/bin/dockerd --host=unix:https:///var/run/docker.sock --host=tcp:https://0.0.0.0:2375 --storage-driver=overlay&
- AWS CodeBuild: Build projet
- Environment: How to build
- Environment images: Specify a Docker image
- Environment type: Linux
- Custom image type: Other
- Custom image ID: docker.io/swarmnyc/aws-docker:1.13.1
- Advanced settings
- Privileged
- Environment: How to build