Option to export the production container to a tarball
This commit is contained in:
parent
881b732388
commit
1887836c6e
2 changed files with 18 additions and 0 deletions
10
.gitignore
vendored
10
.gitignore
vendored
|
@ -40,3 +40,13 @@ dist/
|
|||
*.suo
|
||||
*.user
|
||||
|
||||
*.gz
|
||||
*.xz
|
||||
*.tar
|
||||
*.zip
|
||||
*.rar
|
||||
*.7z
|
||||
*.bak
|
||||
|
||||
|
||||
|
||||
|
|
8
Justfile
8
Justfile
|
@ -12,6 +12,14 @@ start-release: build-container-release remove-podman-containers
|
|||
remove-podman-containers:
|
||||
podman container rm -f ttime
|
||||
|
||||
# Saves the release container to a tarball, pigz is just gzip but multithreaded
|
||||
save-release: build-container-release
|
||||
podman save --format=oci-archive ttime-server | pigz -9 > ttime-server-pigz.tar.gz
|
||||
|
||||
# Loads the release container from a tarball
|
||||
load-release file:
|
||||
podman load --input {{file}}
|
||||
|
||||
# Cleans up everything related to the project
|
||||
clean: remove-podman-containers
|
||||
podman image rm -f ttime-server
|
||||
|
|
Loading…
Reference in a new issue