From a409fca5892e6257bfa343d1d9513f4bee571a4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix-Antoine=20Fortin?= Date: Wed, 8 Mar 2023 13:12:11 -0500 Subject: [PATCH] Add podman commands --- site/profile/manifests/userportal.pp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/site/profile/manifests/userportal.pp b/site/profile/manifests/userportal.pp index a156748dc..98220b013 100644 --- a/site/profile/manifests/userportal.pp +++ b/site/profile/manifests/userportal.pp @@ -228,3 +228,11 @@ require => [Exec['userportal_venv']], } } + +# podman command to run it in a container +podman run --network=host IMAGE_ID +podman cp 99-local.py CONTAINER_ID:/tbt/userportal/settings/99-local.py +# podman exec CONTAINER_ID /tbt/manage.py migrate +podman cp CONTAINER_ID:/tbt/static/custom.js /var/www/userportal-static/ +podman cp CONTAINER_ID:/tbt/static/dashboard.css /var/www/userportal-static/ +podman restart CONTAINER_ID