Skip to content

TeamCity Build Agent image, AWS CodeBuild repository for managed Docker images

License

Notifications You must be signed in to change notification settings

swarmnyc/aws-codebuild-docker-images

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TeamCity Build Agent Docker image

See TeamCity Build Agent Image

AWS CodeBuild curated Docker images

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.

How to build Docker images

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 running bash 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&

Use out-of-box docker images

  • 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

Some documnets about Docker-in-Docker

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%