Skip to content

Commit 90aa172

Browse files
authored
Merge pull request #436 from sir-gon/develop
[REFACTOR] [CONFIG] [DOCKER] docker-compose calls replaced by new "do…
2 parents 02ae48e + c55e663 commit 90aa172

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

Makefile

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ NPM_UPDATABLE_MODULES = $(shell npm outdated | cut -d' ' -f 1 | sed '1d' | xargs
2626

2727
# DOCKER
2828
BUILDKIT_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
9596
upgrade: update
9697

9798
compose/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

102103
compose/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

107108
compose/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

111112
compose/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

114115
compose/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

117118
compose/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

120121
compose/lint: compose/lint/markdown compose/lint/yaml compose/test/styling compose/test/static
121122

122123
compose/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

125126
compose/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

128129
all: env dependencies test
129130

0 commit comments

Comments
 (0)