@@ -26,6 +26,7 @@ NPM_UPDATABLE_MODULES = $(shell npm outdated | cut -d' ' -f 1 | sed '1d' | xargs
2626
2727# DOCKER
2828BUILDKIT_PROGRESS =plain
29+ DOCKER_COMPOSE =docker compose
2930
3031.MAIN : test
3132.PHONY : all clean dependencies help list test outdated
@@ -95,35 +96,35 @@ update: dependencies outdated
9596upgrade : update
9697
9798compose/build : env
98- docker-compose --profile lint build
99- docker-compose --profile testing build
100- docker-compose --profile production build
99+ ${DOCKER_COMPOSE} --profile lint build
100+ ${DOCKER_COMPOSE} --profile testing build
101+ ${DOCKER_COMPOSE} --profile production build
101102
102103compose/rebuild : env
103- docker-compose --profile lint build --no-cache
104- docker-compose --profile testing build --no-cache
105- docker-compose --profile production build --no-cache
104+ ${DOCKER_COMPOSE} --profile lint build --no-cache
105+ ${DOCKER_COMPOSE} --profile testing build --no-cache
106+ ${DOCKER_COMPOSE} --profile production build --no-cache
106107
107108compose/lint/markdown : compose/build
108- docker-compose --profile lint build
109- docker-compose --profile lint run --rm algorithm-exercises-ts-lint make lint/markdown
109+ ${DOCKER_COMPOSE} --profile lint build
110+ ${DOCKER_COMPOSE} --profile lint run --rm algorithm-exercises-ts-lint make lint/markdown
110111
111112compose/lint/yaml : compose/build
112- docker-compose --profile lint run --rm algorithm-exercises-ts-lint make lint/yaml
113+ ${DOCKER_COMPOSE} --profile lint run --rm algorithm-exercises-ts-lint make lint/yaml
113114
114115compose/test/styling : compose/build
115- docker-compose --profile lint run --rm algorithm-exercises-ts-lint make test/styling
116+ ${DOCKER_COMPOSE} --profile lint run --rm algorithm-exercises-ts-lint make test/styling
116117
117118compose/test/static : compose/build
118- docker-compose --profile lint run --rm algorithm-exercises-ts-lint make test/static
119+ ${DOCKER_COMPOSE} --profile lint run --rm algorithm-exercises-ts-lint make test/static
119120
120121compose/lint : compose/lint/markdown compose/lint/yaml compose/test/styling compose/test/static
121122
122123compose/test : compose/build
123- docker-compose --profile testing run --rm algorithm-exercises-ts-test make test
124+ ${DOCKER_COMPOSE} --profile testing run --rm algorithm-exercises-ts-test make test
124125
125126compose/run : compose/build
126- docker-compose --profile production run --rm algorithm-exercises-ts make run
127+ ${DOCKER_COMPOSE} --profile production run --rm algorithm-exercises-ts make run
127128
128129all : env dependencies test
129130
0 commit comments