From 1887836c6e316c74c800bdaeb30bd2370d0c9dfb Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Mon, 12 Feb 2024 18:35:16 +0100 Subject: [PATCH] Option to export the production container to a tarball --- .gitignore | 10 ++++++++++ Justfile | 8 ++++++++ 2 files changed, 18 insertions(+) diff --git a/.gitignore b/.gitignore index cd09b0b..063a7e7 100644 --- a/.gitignore +++ b/.gitignore @@ -40,3 +40,13 @@ dist/ *.suo *.user +*.gz +*.xz +*.tar +*.zip +*.rar +*.7z +*.bak + + + diff --git a/Justfile b/Justfile index 797473e..86fbfb5 100644 --- a/Justfile +++ b/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