Skip to content
This repository has been archived by the owner on Dec 20, 2022. It is now read-only.

Common configuration repo practices

Andrew Ang edited this page May 31, 2019 · 1 revision

Entrypoint shortcut for ecs-utils CLI execution

Setting up a bash script as an entrypoint to the ecs-utils CLI can be used to shorten the command to invoke an ecs-utils action via docker.

Create a bin/deploy file in the configuration repo:

#!/usr/bin/env bash

docker-compose run --rm deploy "$@"

Ensure this file has the appropriate permissions for execution, e.g. chmod a+x bin/deploy.

After setting up this file, ecs-utils can be run with the following syntax from the top-level configuration repo directory:

# bin/deploy [ecs-utils command] [args] [keyword args]

bin/deploy build --tag 1.0.1

as compared to the syntax without the shortcut: docker-compose run --rm deploy build --tag 1.0.1

Clone this wiki locally