From 5364de9785d9cf60add7ace98c975d768f21233f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20OUDOT?= Date: Mon, 30 Dec 2024 15:37:33 +0100 Subject: [PATCH] Update packaging instructions --- packaging/README.md | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/packaging/README.md b/packaging/README.md index 1317074..370dc9e 100644 --- a/packaging/README.md +++ b/packaging/README.md @@ -103,8 +103,29 @@ rpm --addsign RPMS/noarch/service-desk* ## 4 - Docker -From current directory, do: +Pre-requisites: + +* docker / podman +* if docker: a version with buildkit (included by default in Docker Engine + as of version 23.0, but can be enabled in previous versions with + DOCKER_BUILDKIT=1 in build command line) + +From "packaging" directory, do: + +``` +DOCKER_BUILDKIT=1 docker build -t service-desk -f ./docker/Dockerfile ../ +``` + +You can also build with podman: + +``` +podman build --no-cache -t service-desk -f ./docker/Dockerfile ../ +``` + +Tag the `latest` image with the major and minor version, for example: ``` -docker build -t service-desk -f ./docker/Dockerfile ../ +docker tag service-desk:latest ltbproject/service-desk:1.6.1 +docker tag service-desk:latest ltbproject/service-desk:1.6 +docker tag service-desk:latest ltbproject/service-desk:latest ```