Skip to content

Commit 71a70b6

Browse files
committed
Update Docker syntax.
1 parent 974397d commit 71a70b6

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@ ifeq ($(origin .RECIPEPREFIX), undefined)
1212
endif
1313
.RECIPEPREFIX = >
1414

15-
compose_command = docker-compose run -u $(id -u ${USER}):$(id -g ${USER}) --rm php81
15+
compose_command = docker compose run -u $(id -u ${USER}):$(id -g ${USER}) --rm php81
1616

1717
build: tmp/.docker-built
1818

1919
tmp/.docker-built: docker-compose.yml docker/php/81/Dockerfile
2020
> mkdir -p $(@D) # Makes the tmp directory
21-
> docker-compose build
21+
> docker compose build
2222
> touch $@ # Touches the file that is this target.
2323

2424
shell: build
2525
> $(compose_command) bash
2626
.PHONY: shell
2727

2828
destroy:
29-
> docker-compose down -v
29+
> docker compose down -v
3030
> rm -rf tmp
3131
.PHONY: destroy
3232

docker-compose.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
# Run "docker-compose down -v" to fully wipe everything and start over.
66
# Run "docker-compose run -u $(id -u ${USER}):$(id -g ${USER}) --rm php80 bash" to log into the container to run tests selectively.
77

8-
version: "3"
98
services:
109
php81:
1110
build: ./docker/php/81

0 commit comments

Comments
 (0)