# This CodeBuild project is run using the docker:stable-dind container # Docker daemon start-up script was taken from the following URL: # https://docs.aws.amazon.com/codebuild/latest/userguide/sample-docker-custom-image.html version: 0.2 phases: install: commands: - nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://127.0.0.1:2375 --storage-driver=overlay2& - timeout 15 sh -c "until docker info; do echo .; sleep 1; done" pre_build: commands: # Add AWSCLI and bash - (apk add --update python3 python3-dev py-pip build-base bash && pip install awscli --upgrade) build: commands: # Build new integration test container - (IMG=$INTEGRATION_CONTAINER_REPOSITORY bash codebuild/scripts/build_deploy_integration_container.sh)