-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding an entrypoint to be able to use the host UID inside the container
- Loading branch information
Showing
3 changed files
with
73 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
cat <<'MSG' | ||
_____ _ _ _ | ||
|_ _| | | (_) | | ||
| | _ __ | |_ ___ __ _ _ __ _| |_ ___ ___ | ||
| | | '_ \| __/ _ \/ _` | '__| | __/ _ \/ _ \ | ||
_| |_| | | | || __/ (_| | | | | || __/ __/ | ||
|_____|_| |_|\__\___|\__, |_| |_|\__\___|\___| | ||
__/ | | ||
|___/ | ||
::::::::::::::::: Thanks for using Integritee's devevelpment environment! ::::::::::::::::: | ||
This comment has been minimized.
Sorry, something went wrong. |
||
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 | ||
MSG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
MYUID="${MYUID:-1000}" | ||
MYGUID="${MYGUID:-1000}" | ||
#echo ${MYUID} | ||
This comment has been minimized.
Sorry, something went wrong.
OverOrion
Contributor
|
||
|
||
u=`id -u ubuntu` | ||
if [ $u != $MYUID ] | ||
then | ||
echo "Setting up permissions, please wait..." | ||
usermod -u ${MYUID} ubuntu | ||
groupmod -g ${MYGUID} ubuntu | ||
chown -R ubuntu.ubuntu /home/ubuntu | ||
fi | ||
#echo $MYUID | ||
This comment has been minimized.
Sorry, something went wrong. |
||
#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 "${@}" |
typo in
development