diff --git a/java/buildconf/manager-developer-build.properties.example b/java/buildconf/manager-developer-build.properties.example index a5782b96d86d..d915951ae667 100644 --- a/java/buildconf/manager-developer-build.properties.example +++ b/java/buildconf/manager-developer-build.properties.example @@ -10,3 +10,15 @@ deploy.host = d52.suse.de # Uncomment to get javascript sourcemaps in Reactjs pages #javascript.devel = true +# Define the way to deploy. Possible values: +# +# local : deploy to local instance of uyuni +# remote (default) : deploy to remote instance of uyuni defined in deploy.host through ssh connection. +# container : use mgrctl to deploy to a containerized server. The deploy.host will be ignored. +# remote-container : use SSH to connect to deploy.host, then run mgrctl on the remote system and deploy to +# a containerized server +#deploy.mode = remote + +# Backend to be used by mgrctl when deploying in container and remote-container mode. By default, mgrctl tries to +# autodetect the correct backend. Possible values can be looked up by checking mgrctl documentation. +#container.backend = podman diff --git a/java/manager-build.xml b/java/manager-build.xml index ab4e4f9184b3..81cca5e4ec9f 100644 --- a/java/manager-build.xml +++ b/java/manager-build.xml @@ -19,6 +19,7 @@ + @@ -44,19 +45,108 @@ - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -188,32 +278,31 @@ - - - - - + + + + + + + + + - - - - + + + - - - + + + - - - - - - - - - - + + + @@ -233,8 +322,8 @@ - + @@ -244,195 +333,90 @@ - - - - + + - + + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - + - + - - - + - + - - + + - - mgrctl is not in the PATH. Please install mgrctl first. - - - - - - - + + + - - - - - - - - - - - - - - - - + + + + + + + - - - + - - - - - - - - - - - - - - - - + + + - - - + + - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -442,11 +426,7 @@ - + @@ -467,7 +447,7 @@ - + @@ -497,25 +477,26 @@ - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + @@ -610,47 +591,17 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + diff --git a/testsuite/podman_runner/09_build_server_code.sh b/testsuite/podman_runner/09_build_server_code.sh index 2417388405f3..2c0c5e5464dc 100755 --- a/testsuite/podman_runner/09_build_server_code.sh +++ b/testsuite/podman_runner/09_build_server_code.sh @@ -30,7 +30,7 @@ sudo -i podman exec server bash -c "[ -d /usr/share/susemanager/www/tomcat/webap # to try again and hope it succeeds. sudo -i podman exec server bash -c "cd /java && ant -f manager-build.xml ivy || ant -f manager-build.xml ivy || ant -f manager-build.xml ivy" -sudo -i podman exec server bash -c "cd /java && ant -f manager-build.xml refresh-branding-jar deploy-local" +sudo -i podman exec server bash -c "cd /java && ant -f manager-build.xml -Ddeploy.mode=local refresh-branding-jar deploy" sudo -i podman exec server bash -c "set -xe;cd /web/html/src;[ -d dist ] || mkdir dist;yarn install --force --ignore-optional --production=true --frozen-lockfile;yarn autoclean --force;yarn build:novalidate; rsync -a dist/ /usr/share/susemanager/www/htdocs/" sudo -i podman exec server bash -c "rctomcat restart" sudo -i podman exec server bash -c "rctaskomatic restart"