From 0bf0ba7bb1d94f9580646b248928895c85a63ce0 Mon Sep 17 00:00:00 2001 From: Ernest Pietryka <164904886+ePietry@users.noreply.github.com> Date: Tue, 26 Mar 2024 19:02:07 +0100 Subject: [PATCH] Update README.MD --- ansible/README.MD | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/ansible/README.MD b/ansible/README.MD index 4c5762a..94bdb10 100644 --- a/ansible/README.MD +++ b/ansible/README.MD @@ -45,6 +45,31 @@ appstream baseos ``` +## Create the container image + +Install podman and buildah. + +```sh +sudo dnf install -y podman buildah +``` + +Define the target image properties. + +```sh +REGISTRY="quay.io" +IMAGE_NAME="nmasse_itix/kiosk-app" +IMAGE_TAG="latest" +``` + +Build and push the image to the registry. + +```sh +cd "$GIT_REPO_CLONE/application" +podman build -t localhost/kiosk-app:latest . +podman login "$REGISTRY" +podman tag localhost/kiosk-app:latest "$REGISTRY/$IMAGE_NAME:$IMAGE_TAG" +podman push "$REGISTRY/$IMAGE_NAME:$IMAGE_TAG" +``` ## Nginx configuration