Files
pezkuwi-subxt/docker/scripts/dc.sh
T
Cecile Tonglet 516ad523c1 Move Docker scripts (#138)
Just reorganizing
2020-07-16 07:46:03 +02:00

10 lines
302 B
Bash

#!/usr/bin/env bash
# helper function to run docker-compose using the docker/docker-compose.yml file while
# retaining a context from the root of the repository
set -e
dc () {
cd "$(cd "$(dirname "$0")" && git rev-parse --show-toplevel)"
docker-compose -f - "$@" < docker/docker-compose.yml
}