override command for intermediate containers to prevent execution of the container if command is defined

This commit is contained in:
Ulf Gebhardt 2023-02-24 00:20:32 +01:00
parent e045bc96f9
commit d284f7b122
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -7,6 +7,7 @@ services:
dockerfile: ../webapp/Dockerfile dockerfile: ../webapp/Dockerfile
context: ../webapp context: ../webapp
target: base target: base
command: sleep 0
webapp-code: webapp-code:
image: ocelotsocialnetwork/webapp:local-code image: ocelotsocialnetwork/webapp:local-code
@ -14,6 +15,7 @@ services:
dockerfile: ../webapp/Dockerfile dockerfile: ../webapp/Dockerfile
context: ../webapp context: ../webapp
target: code target: code
command: sleep 0
webapp: webapp:
image: ocelotsocialnetwork/webapp-branded:local-${CONFIGURATION} image: ocelotsocialnetwork/webapp-branded:local-${CONFIGURATION}
@ -51,6 +53,7 @@ services:
dockerfile: ../backend/Dockerfile dockerfile: ../backend/Dockerfile
context: ../backend context: ../backend
target: base target: base
command: sleep 0
backend-code: backend-code:
image: ocelotsocialnetwork/backend:local-code image: ocelotsocialnetwork/backend:local-code
@ -58,6 +61,7 @@ services:
dockerfile: ../backend/Dockerfile dockerfile: ../backend/Dockerfile
context: ../backend context: ../backend
target: code target: code
command: sleep 0
backend: backend:
image: ocelotsocialnetwork/backend-branded:local-${CONFIGURATION} image: ocelotsocialnetwork/backend-branded:local-${CONFIGURATION}
@ -106,6 +110,7 @@ services:
dockerfile: ../webapp/Dockerfile.maintenance dockerfile: ../webapp/Dockerfile.maintenance
context: ../webapp context: ../webapp
target: base target: base
command: sleep 0
maintenance-code: maintenance-code:
image: ocelotsocialnetwork/maintenance:local-code image: ocelotsocialnetwork/maintenance:local-code
@ -113,6 +118,7 @@ services:
dockerfile: ../webapp/Dockerfile.maintenance dockerfile: ../webapp/Dockerfile.maintenance
context: ../webapp context: ../webapp
target: code target: code
command: sleep 0
maintenance: maintenance:
# name the image so that it cannot be found in a DockerHub repository, otherwise it will not be built locally from the 'dockerfile' but pulled from there # name the image so that it cannot be found in a DockerHub repository, otherwise it will not be built locally from the 'dockerfile' but pulled from there