-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding ability to push self hoisting staging docker compose serice (#…
…1157) Creates a self hoisting docker-compose image and enables command to push that to a target sandbox for staging deployment.
- Loading branch information
Showing
9 changed files
with
59 additions
and
359 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM docker:cli | ||
|
||
ARG SBX_PROJECT | ||
ENV SBX_PROJECT=${SBX_PROJECT} | ||
|
||
RUN mkdir /app | ||
WORKDIR /app | ||
|
||
COPY .env /app/ | ||
COPY docker-compose.yml /app/ | ||
COPY docker-compose.staging.yml /app/ | ||
# Can't reset these values with overlay unfortunately | ||
RUN grep -v 'context: .' /app/docker-compose.yml | grep -v 'build:' > /app/docker-compose.yml.2 | ||
RUN mv /app/docker-compose.yml.2 /app/docker-compose.yml | ||
|
||
ENTRYPOINT ["/usr/local/bin/docker", "compose", "-f", "/app/docker-compose.yml", "-f", "docker-compose.staging.yml"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.