Skip to content

Commit

Permalink
Up: docker-compose -> docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
seawolf committed Dec 23, 2024
1 parent 8320796 commit da8ddc3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,25 @@
all: clean run

build: config.yml
@ docker-compose build
@ docker compose build

build_fresh: config.yml
@ docker-compose build --no-cache
@ docker compose build --no-cache

config.yml:
@ [ -f config.yml ] || touch config.yml

run: config.yml
@ docker-compose run --rm --service-ports app
@ docker compose run --rm --service-ports app

shell: config.yml
@ docker-compose run --rm --service-ports --entrypoint=/bin/bash app
@ docker compose run --rm --service-ports --entrypoint=/bin/bash app

clean:
@ docker-compose down
@ docker-compose down --volumes
@ docker-compose down --rmi local
@ docker compose down
@ docker compose down --volumes
@ docker compose down --rmi local
@ rm -f config.yml

vacuum: clean
@ (docker images | grep gcr.io/google.com/cloudsdktool/cloud-sdk 1> /dev/null && docker-compose down --rmi all) || true
@ (docker images | grep gcr.io/google.com/cloudsdktool/cloud-sdk 1> /dev/null && docker compose down --rmi all) || true

0 comments on commit da8ddc3

Please sign in to comment.