Docker image with Docker Compose CLI set up and ready to use. Perfect for your CI system (GitHub Actions or GitLab CI).
Images are published as parisk/compose-cli on GitHub Container Registry.
Images are tagged with corresponding release of Compose CLI as found in: https://github.com/docker/compose-cli/releases, using the latest docker image at the time of the release as base. For each tag there is also the *-aws variant, which adds awscli into the image, for convenience tasks, when you are deploying to ECS. Examples below
ghcr.io/parisk/compose-cli:2.0.0-beta.3: Compose CLI2.0.0-beta.3on Docker 20.10.7ghcr.io/parisk/compose-cli:2.0.0-beta.3-aws: Compose CLI2.0.0-beta.3on Docker 20.10.7 with awscli 1.19.90 installed on top.
Bind the Docker socket and your desired working directory in the container and pick your desired image:
docker run -ti \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $PWD:/usr/src/app \
-w /usr/src/app \
ghcr.io/parisk/compose-cli:2.0.0-beta.3 shUse this as a Docker image step:
jobs:
your_job:
steps:
- name: A step
uses: docker://ghcr.io/parisk/compose-cli:2.0.0-beta.3Put the following in the top directory of your .gitab-ci.yml file:
image: ghcr.io/parisk/compose-cli:2.0.0-beta.3You can clone this repository and build customized builds according to your needs, by tweaking the available build arguments.
COMPOSE_CLI_VERSION: The version of Docker Compose CLI to install (default:v2.0.0-beta.3)AWS_CLI_VERSION: The version of the AWS CLI to install (default:1.19.90)
Built by Paris Kasidiaris and licensed under the MIT License.