diff --git a/concourse-tools/Dockerfile b/concourse-tools/Dockerfile new file mode 100644 index 00000000..b58d34bc --- /dev/null +++ b/concourse-tools/Dockerfile @@ -0,0 +1,10 @@ +FROM ghcr.io/alphagov/paas/bosh-cli-v2:main + +ENV AWSCLI_VERSION "1.19.112" + +RUN apt-get update && apt-get install -y \ + curl \ + python3 \ + python3-pip \ + && pip3 install \ + awscli==$AWSCLI_VERSION diff --git a/concourse-tools/README.md b/concourse-tools/README.md new file mode 100644 index 00000000..f0656696 --- /dev/null +++ b/concourse-tools/README.md @@ -0,0 +1,16 @@ +# Concourse Tools + +This image is for building a container to run concourse tasks, which require various tools including: bosh-cli, awscli and curl. It uses bosh-cli-v2 as a base image and installs awscli on top using pip, and curl using apt. + +## Build locally + +``` +$ cd concourse-tools +$ docker build -t concourse-tools . +``` + +## Run + +``` +docker run -it concourse-tools /bin/bash -c "bosh --version" +```