diff options
author | Andreas Fankhauser hiddenalpha.ch | 2023-10-17 02:17:53 +0200 |
---|---|---|
committer | Andreas Fankhauser hiddenalpha.ch | 2023-10-17 02:17:53 +0200 |
commit | fcb84f32536c5577307c440d07484d77f95df3cc (patch) | |
tree | 5ddaf1b88ff65c5957467ae1733afd82b775f64e | |
parent | 52b257d55141ce498f890b49b5092caccc256e6d (diff) | |
download | UnspecifiedGarbage-fcb84f32536c5577307c440d07484d77f95df3cc.zip UnspecifiedGarbage-fcb84f32536c5577307c440d07484d77f95df3cc.tar.gz |
(qemu) Cleanup, Test new Gateleen build env
-rw-r--r-- | doc/note/qemu/build-gateleen.txt | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/doc/note/qemu/build-gateleen.txt b/doc/note/qemu/build-gateleen.txt index 77dcab8..5e71c05 100644 --- a/doc/note/qemu/build-gateleen.txt +++ b/doc/note/qemu/build-gateleen.txt @@ -7,6 +7,9 @@ true \ && PKGINIT=true \ && PKGADD="$SUDO apk add" \ && PKGCLEAN=true \ + && mkdir -p "${HOME:?}/.local/bin" \ + && printf '%s\n' '#!/bin/sh' 'printf "Sudo "' 'su root -c "$(echo "$@")"' > "${HOME:?}/.local/bin/mysudo" \ + && chmod u+x "${HOME:?}/.local/bin/mysudo" \ && true @@ -53,9 +56,11 @@ true \ & sleep 3 \ ) \ && (cd "${WORKDIR:?}/gateleen" && mvn deploy -PuploadStaticFiles) \ - && pkill -TERM java && pkill -INT redis-server \ + && (pkill -INT java || sleep 3 && pkill -TERM java || sleep 3 && pkill -9 java) \ + && pkill -INT redis-server \ && $PKGDEL $PKGS_TO_DEL \ && $PKGCLEAN \ + && sleep 3 \ && printf '\n DONE\n\n' \ && true @@ -63,7 +68,11 @@ true \ ### Run true \ && ip a | grep inet \ - && (cd "${WORKDIR:?}/redis-state" && redis-server "${WORKDIR:?}/etc/redis.conf") \ - & java -cp "${WORKDIR:?}/classpath/"'*' org.swisspush.gateleen.playground.Server \ + && (true \ + && (cd "${WORKDIR:?}/redis-state" && redis-server "${WORKDIR:?}/etc/redis.conf") \ + & true \ + && cd ~ \ + && java -cp "${WORKDIR:?}/classpath/"'*' org.swisspush.gateleen.playground.Server \ + ) \ && true |