Can one use concourse's docker resource to fetch containers to be used in a docker compose in a task? Currently I am just fetching the containers for my integration tests from my private docker registry, but doing this the connections/resources does not show up in the concourse UI. Any ideas?
Here is my task currently:
---
platform: linux
inputs:
- name: devops-repo
- name:client-repo
params:
RUNNER_IMG:
CLIENT_IMG:
SERVER_IMG:
run:
path: sh
args:
- -exc
- |
# "E2E testing:"
- |
# Export map the parameters to the dockerfile env.
export docker-registry-protractor=${RUNNER_IMG}
export docker-registry-client-dist=${CLIENT_IMG}
export docker-registry-server-dist=${SERVER_IMG}
export HOME=/protractor
# Move to the Protractor test project folder
mkdir $HOME
# Get the docker compose file:
cp devops-repo/my-pipeline/templates/e2e/docker-compose.yml $HOME/docker-compose.yml
# Get the tests:
cp client-repo/test/e2e/** $HOME
cd $HOME
# https://github.com/concourse/concourse/issues/324
# Spin up the stack as described in docker-compose:
docker daemon &
docker-compose up
The Dockerfile use containers that are being constructed and uploaded to a private docker registry in the previous step of the pipeline.