From be4632cf36e78114a759728ebe8ad12b8e2185af Mon Sep 17 00:00:00 2001 From: Zoltan Mosonyi Date: Fri, 17 Mar 2023 14:14:05 +0100 Subject: [PATCH] fixed typos, removed commented code --- worker/.bashrc | 2 +- worker/Readme.md | 8 ++++---- worker/entrypoint.sh | 14 +------------- 3 files changed, 6 insertions(+), 18 deletions(-) diff --git a/worker/.bashrc b/worker/.bashrc index 046886f..7263e1d 100644 --- a/worker/.bashrc +++ b/worker/.bashrc @@ -8,7 +8,7 @@ cat <<'MSG' __/ | |___/ -::::::::::::::::: Thanks for using Integritee's devevelpment environment! ::::::::::::::::: +::::::::::::::::: Thanks for using Integritee's development environment! ::::::::::::::::: Please be sure you are following the documentation: https://docs.integritee.network/5-nodes-and-infrastructure/5.2-how-to-set-up-and-run-a-sidechain-or-tocw-node/5.2.3-software-requirements/5.2.3.2-docker diff --git a/worker/Readme.md b/worker/Readme.md index 1d3c0d8..d1b367e 100644 --- a/worker/Readme.md +++ b/worker/Readme.md @@ -4,7 +4,7 @@ Usage: ```bash $ git clone git@github.com:integritee-network/worker.git $ cd worker -$ docker run --name integriteeworker -it -v $(pwd):/home/ubuntu/worker -e MYUID=$(id -u) -e MYGUID=$(id -g) integritee/integritee-dev:0.2 /bin/bash +$ docker run --name integritee-dev-worker -it -v $(pwd):/home/ubuntu/worker -e MYUID=$(id -u) -e MYGUID=$(id -g) integritee/integritee-dev:0.2 /bin/bash ``` Inside docker: @@ -12,11 +12,11 @@ Inside docker: ```bash $ cd worker $ make -$ ctrl+d +$ exit ``` -Re-run to the saved session +To continue your saved session: ```bash -$ docker start -a -i integriteeworker +$ docker start -a -i integritee-dev-worker ``` \ No newline at end of file diff --git a/worker/entrypoint.sh b/worker/entrypoint.sh index 05272cd..c68b110 100755 --- a/worker/entrypoint.sh +++ b/worker/entrypoint.sh @@ -3,7 +3,6 @@ set -e MYUID="${MYUID:-1000}" MYGUID="${MYGUID:-1000}" -#echo ${MYUID} u=`id -u ubuntu` if [ $u != $MYUID ] @@ -13,16 +12,5 @@ then groupmod -g ${MYGUID} ubuntu chown -R ubuntu.ubuntu /home/ubuntu fi -#echo $MYUID -#chown -R ubuntu.ubuntu /home/ubuntu -#echo $MYUID -#echo ${@} -# if [ ! -f /tmp/rustup.sh ] -# then -# gosu ubuntu bash -c "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/rustup.sh" -# gosu ubuntu bash -c "chmod +x /tmp/rustup.sh" -# gosu ubuntu bash -c "/tmp/rustup.sh -y" -# fi -#exec gosu ubuntu '/home/ubuntu/.cargo/bin/rustup component add rust-src clippy rust-analysis rustfmt' -#exec gosu ubuntu '/home/ubuntu/.cargo/bin/rustup self update' + exec gosu ubuntu "${@}"