Skip to content

Commit

Permalink
fixed typos, removed commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
mosonyi committed Mar 17, 2023
1 parent c08ec2e commit be4632c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
2 changes: 1 addition & 1 deletion worker/.bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions worker/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ 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:

```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
```
14 changes: 1 addition & 13 deletions worker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ set -e

MYUID="${MYUID:-1000}"
MYGUID="${MYGUID:-1000}"
#echo ${MYUID}

u=`id -u ubuntu`
if [ $u != $MYUID ]
Expand All @@ -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 "${@}"

0 comments on commit be4632c

Please sign in to comment.