-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c8a7a8
commit 3f9d4bd
Showing
3 changed files
with
83 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
backend_container_id=$(docker ps --filter "name=backend" --format "{{.ID}}") | ||
db_container_id=$(docker ps --filter "name=db" --format "{{.ID}}") | ||
frontend_container_id=$(docker ps --filter "name=frontend" --format "{{.ID}}") | ||
gateway_container_id=$(docker ps --filter "name=gateway" --format "{{.ID}}") | ||
|
||
docker commit $frontend_container_id frontend | ||
docker commit $gateway_container_id gateway | ||
docker commit $backend_container_id backend | ||
docker commit $db_container_id db | ||
|
||
docker save frontend gateway backend db > e2e_release_env_images.tar | ||
|
||
# compress the file (to decrease the upload file size) | ||
gzip -c e2e_release_env_images.tar > e2e_release_env_images.tar.gz |
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