diff --git a/Sentinel-dVPN-node/Dockerfile b/Sentinel-dVPN-node/Dockerfile index ff604b47..98c43958 100644 --- a/Sentinel-dVPN-node/Dockerfile +++ b/Sentinel-dVPN-node/Dockerfile @@ -40,8 +40,11 @@ RUN git clone https://github.com/sentinel-official/dvpn-node && \ git checkout v0.7.1 && \ make install && \ rm -rf /tmp/* - +ADD https://github.com/krallin/tini/releases/download/v0.19.0/tini /tini +RUN chmod +x /tini # Copy the main script and set CMD COPY ./main.sh / RUN sed -i 's/\r//' /main.sh && chmod +x /main.sh -CMD ["/main.sh"] +ENTRYPOINT ["/tini", "--", "/main.sh"] +CMD ["tail", "-f", "/dev/null"] + diff --git a/Sentinel-dVPN-node/main.sh b/Sentinel-dVPN-node/main.sh index 3f7e8ba7..a9dfe0cf 100644 --- a/Sentinel-dVPN-node/main.sh +++ b/Sentinel-dVPN-node/main.sh @@ -9,7 +9,7 @@ check_var() { if [[ -z ${!var_name} ]]; then echo "$error_message" echo "For example: $example" - sleep infinity + exec "$@" fi } update_config() { diff --git a/bitcoin/deploy.yml b/bitcoin/deploy.yml index 31bca5a7..552a8b4c 100644 --- a/bitcoin/deploy.yml +++ b/bitcoin/deploy.yml @@ -15,7 +15,8 @@ services: args: - 'apt-get update && apt-get upgrade -y ; apt-get install -y curl ; - curl https://raw.githubusercontent.com/akash-network/awesome-akash/master/bitcoin/main.sh | bash' + curl https://raw.githubusercontent.com/akash-network/awesome-akash/master/bitcoin/main.sh | bash; + tail -f /dev/null' #params: # storage: # data: diff --git a/bitcoin/main.sh b/bitcoin/main.sh index aff70da8..82dc8446 100644 --- a/bitcoin/main.sh +++ b/bitcoin/main.sh @@ -38,4 +38,4 @@ ln -s /root/bitcoin /etc/service ln -s /var/log/bitcoin/current /LOG echo = Установка завершена, логи ноды доступны командой [tail -f /var/log/bitcoin/current] = echo == Installation complete, node logs available with [tail -f /var/log/bitcoin/current] = -sleep infinity +exec "$@" diff --git a/cryptodredge-c11/Dockerfile b/cryptodredge-c11/Dockerfile index a56a628f..fced1839 100644 --- a/cryptodredge-c11/Dockerfile +++ b/cryptodredge-c11/Dockerfile @@ -23,4 +23,5 @@ RUN ls -la COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh -ENTRYPOINT /entrypoint.sh +ENTRYPOINT ["/tini", "--", "/entrypoint.sh"] +CMD ["tail", "-f", "/dev/null"] diff --git a/cryptodredge-c11/entrypoint.sh b/cryptodredge-c11/entrypoint.sh index f9404768..ff34d649 100644 --- a/cryptodredge-c11/entrypoint.sh +++ b/cryptodredge-c11/entrypoint.sh @@ -15,5 +15,5 @@ OPTIONS=$(remove_quotes "$OPTIONS") export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/root -sleep infinity +exec "$@" /root/CryptoDredge -a $ALGO -o $POOL -u $WALLET_ADDRESS -p $PASSWORD $OPTIONS diff --git a/semantra/deploy.yaml b/semantra/deploy.yaml index 4657360c..0fdfdc20 100644 --- a/semantra/deploy.yaml +++ b/semantra/deploy.yaml @@ -3,7 +3,7 @@ version: "2.0" services: app: - image: ubuntu:latest + image: ubuntu:22.04 command: - "bash" @@ -21,7 +21,7 @@ services: wget https://github.com/freedmand/semantra/raw/main/docs/example_docs/us_inaugural_speeches.zip; unzip * ; /root/.local/bin/semantra --transformer-model Muennighoff/SGPT-1.3B-weightedmean-msmarco-specb-bitfit us_inaugural_speeches/*; - sleep infinity ;' + tail -f /dev/null ;' # your files can be in txt or pdf # installation may take a while since models are large @@ -65,4 +65,4 @@ deployment: app: akash: profile: app - count: 1 \ No newline at end of file + count: 1 diff --git a/softether-vpn/Dockerfile b/softether-vpn/Dockerfile index f10c1c8c..1a0338e9 100644 --- a/softether-vpn/Dockerfile +++ b/softether-vpn/Dockerfile @@ -13,4 +13,6 @@ RUN apt-get -y install make gcc openssl unzip goxkcdpwgen WORKDIR /opt/softether/vpnserver RUN make COPY launch / -CMD /launch +ENTRYPOINT ["/tini", "--", "/launch"] + +CMD ["tail", "-f", "/dev/null"] diff --git a/softether-vpn/launch b/softether-vpn/launch index 0a7ff063..330015a8 100755 --- a/softether-vpn/launch +++ b/softether-vpn/launch @@ -97,4 +97,4 @@ echo "Connect to VPN DEFAULT Hub: ./vpncmd /SERVER /HUB:DEFAULT " echo "Enjoy SoftEther VPN!" -sleep infinity +exec "$@"