Skip to content

Commit

Permalink
added generic docker image for concourse tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
jackjoy-gds committed Sep 26, 2023
1 parent b556830 commit d9514fc
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/image_concourse-tools.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: "Image: concourse-tools"
permissions:
actions: write # so 'cancel-workflow-action' can function

on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
workflows:
uses: ./.github/workflows/build-image-base.yml
with:
image: concourse-tools
secrets: inherit
10 changes: 10 additions & 0 deletions concourse-tools/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
16 changes: 16 additions & 0 deletions concourse-tools/README.md
Original file line number Diff line number Diff line change
@@ -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"
```

0 comments on commit d9514fc

Please sign in to comment.