Skip to content

Commit

Permalink
Update the Makefile to use docker compose
Browse files Browse the repository at this point in the history
Docker has moved to a compose plugin for the docker command instead of
the standalone docker-compose package. As of
cisagov/ansible-role-docker#60 this newer syntax is required.
  • Loading branch information
mcdonnnj committed Jun 8, 2022
1 parent 8c17f9d commit 45a756f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ install-config:
cp -n src/config/config.sample.json src/config/config.json || :

dev-build:
docker-compose build
docker compose build

dev-start:
docker-compose up -d
docker compose up -d

dev-shell:
# Use $$ to properly escape $ for makefile
Expand All @@ -40,14 +40,14 @@ dev-logs:
dev-rebuild: dev-clean dev-build

dev-stop:
docker-compose down
docker compose down

dev-clean:
docker-compose down -v --rmi local
docker compose down -v --rmi local

docker-web-server:
# create the dist directory
docker-compose run --rm client make build
docker compose run --rm client make build
# copy the dist director into a docker image
docker build -t ncats/cyhy-web-server -f ./Dockerfile_dist .

Expand Down

0 comments on commit 45a756f

Please sign in to comment.