Skip to content

Commit a8f7c83

Browse files
authored
Simplified setup.sh
Removed root user check and assume installation as default user.
1 parent 1cd334d commit a8f7c83

1 file changed

Lines changed: 3 additions & 21 deletions

File tree

.devcontainer/setup.sh

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#!/bin/bash
22

33
echo 'Please wait for setup to finish ...'
4-
5-
micromamba shell init --shell bash --root-prefix=~/micromamba
4+
eval "$(micromamba shell hook --shell bash)"
65

76
# get repo
87

@@ -21,27 +20,10 @@ else
2120

2221
fi
2322

24-
# install python
25-
26-
if [ "$(whoami)" = "root" ];
27-
then
28-
29-
apk update
30-
apk add coreutils
31-
32-
micromamba create -p base python -c conda-forge -y
33-
export PATH="/opt/conda/envs/base/bin:$PATH"
34-
35-
eval "$(micromamba shell hook -s bash )"
36-
micromamba activate base
37-
38-
else
39-
23+
micromamba activate
4024
micromamba install python -c conda-forge -y
4125

42-
fi
43-
4426
# project dependencies installed via package.json
4527
# and postinstall script
4628

47-
npm install
29+
npm install

0 commit comments

Comments
 (0)