Skip to content

Commit 08eac26

Browse files
author
Gonzalo Diaz
committed
[REFACTOR] [CONFIG] [DOCKER] docker-compose calls replaced by new "docker compose".
- Command not found: docker-compose after docker 4.32.0 update: https://stackoverflow.com/a/78788716/6366150
1 parent e2e253e commit 08eac26

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Makefile

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -128,34 +128,34 @@ clean:
128128
find ${TEST_PROJECT_DIRECTORY} -path "*/obj/*" -print -exec rm -vfr {} ';' || true
129129

130130
compose/build: env
131-
docker-compose --profile lint build
132-
docker-compose --profile testing build
133-
docker-compose --profile production build
131+
${DOCKER_COMPOSE} --profile lint build
132+
${DOCKER_COMPOSE} --profile testing build
133+
${DOCKER_COMPOSE} --profile production build
134134

135135
compose/rebuild: env
136-
docker-compose --profile lint build --no-cache
137-
docker-compose --profile testing build --no-cache
138-
docker-compose --profile production build --no-cache
136+
${DOCKER_COMPOSE} --profile lint build --no-cache
137+
${DOCKER_COMPOSE} --profile testing build --no-cache
138+
${DOCKER_COMPOSE} --profile production build --no-cache
139139

140140
compose/lint/markdown: compose/build
141-
docker-compose --profile lint run --rm algorithm-exercises-csharp-lint make lint/markdown
141+
${DOCKER_COMPOSE} --profile lint run --rm algorithm-exercises-csharp-lint make lint/markdown
142142

143143
compose/lint/yaml: compose/build
144-
docker-compose --profile lint run --rm algorithm-exercises-csharp-lint make lint/yaml
144+
${DOCKER_COMPOSE} --profile lint run --rm algorithm-exercises-csharp-lint make lint/yaml
145145

146146
compose/test/styling: compose/build
147-
docker-compose --profile lint run --rm algorithm-exercises-csharp-lint make test/styling
147+
${DOCKER_COMPOSE} --profile lint run --rm algorithm-exercises-csharp-lint make test/styling
148148

149149
compose/test/static: compose/build
150-
docker-compose --profile lint run --rm algorithm-exercises-csharp-lint make test/static
150+
${DOCKER_COMPOSE} --profile lint run --rm algorithm-exercises-csharp-lint make test/static
151151

152152
compose/lint: compose/lint/markdown compose/lint/yaml compose/test/styling compose/test/static
153153

154154
compose/test: compose/build
155-
docker-compose --profile testing run --rm algorithm-exercises-csharp-test make test
155+
${DOCKER_COMPOSE} --profile testing run --rm algorithm-exercises-csharp-test make test
156156

157157
compose/run: compose/build
158-
docker-compose --profile production run --rm algorithm-exercises-csharp make run
158+
${DOCKER_COMPOSE} --profile production run --rm algorithm-exercises-csharp make run
159159

160160
all: lint coverage
161161

0 commit comments

Comments
 (0)