An unofficial Dockerfile for CodeBuild combining official Docker (in Docker) and Node environments.
1.2K
An unofficial Dockerfile for CodeBuild, combining the official Docker (in Docker) and Node environments.
Based on AWS' Docker 17.09 and Node 6.3.1 Dockerfiles.
For more information see the official repo.
To use this Dockerfile in your build, create a new CodeBuild project, or update an existing one. Then:
tdmalone/codebuild-docker-nodeThis will run your build with this image, which is built from this current repo.
Then, in your buildspec.yml, somewhere before you run or build a Docker image, make sure you execute this:
nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 --storage-driver=overlay&
timeout 15 sh -c "until docker info; do echo .; sleep 1; done"
(This comes from this AWS CodeBuild sample).
If you want to run without having to build it:
docker run --interactive --privileged --tty tdmalone/codebuild-docker-node bash
That will download and start a container with the pre-built image, running the bash shell.
Otherwise, to build it yourself:
git clone https://github.com/tdmalone/codebuild-docker-node.git to download this repository to your local machine.cd codebuild-docker-node.docker build --tag codebuild-docker-node . to build the Docker image locally.docker run --interactive --privileged --tty codebuild-docker-node bash to start the container in a bash shell.You can see the docker build and docker run references for more.
Based on CodeBuild's Docker 17.09 file, this repo:
libmysqlclient-dev=5.5.58-* due to error E: Version '5.5.58-*' for 'libmysqlclient-dev' was not foundASL.
Content type
Image
Digest
Size
304.8 MB
Last updated
over 8 years ago
docker pull tdmalone/codebuild-docker-node