Option to export the production container to a tarball

This commit is contained in:
Imbus 2024-02-12 18:35:16 +01:00
parent 881b732388
commit 1887836c6e
2 changed files with 18 additions and 0 deletions

10
.gitignore vendored
View file

@ -40,3 +40,13 @@ dist/
*.suo
*.user
*.gz
*.xz
*.tar
*.zip
*.rar
*.7z
*.bak

View file

@ -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