aws-cdk-autobuild is an autobuild docker image generated and pushed to docker hub on a hourly basis with @pahud/aws-codebuild-patterns running in AWS CodeBuild. Behind the scene a codebuild project just git clone the master branch from aws/aws-cdk and docker build into pahud/aws-cdk-autobuild:latest based on the Dockerfile provided in aws/aws-cdk. Check the buildspec.yml file for the CodeBuild project in use.
pahud/aws-cdk-autobuild:latest
pahud/aws-cdk-autobuild:buildtools
My current practice in the following steps for daily CDK development in the container running in Cloud9:
# update the docker image
image='pahud/aws-cdk-autobuild:buildtools'
docker pull $image
# run a container
container=$(docker run -d --entrypoint='' $image false)
# copy /app from the container to local
docker cp ${container}:/app ./
# delete the container
docker rm -f ${container}
# let's run another container and mount the local ./app into the container:/app
# so we can develop with our favorite IDE outsides the container while we still can build or test it in the container
# enter the shell of the container
docker run -ti --entrypoint='' \
--user $(id -u) \
-v $PWD/app:/app \
-v $HOME/.aws:/app/.aws \
-e PS1='\[\033[01;32m\]${USER}(cdk-docker)\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]$(__git_ps1 " (%s)" 2>/dev/null) $' \
$image bash
# in the container shell
# source the aliases
source /tmp/lr.alias
# (optional) specify the git credential helper cache for git over https protocol
git config --global credential.helper cache
git config --global credential.helper 'cache --timeout=864000'
Content type
Image
Digest
Size
1.4 GB
Last updated
about 6 years ago
docker pull pahud/aws-cdk-autobuild