misantamaria commited on
Commit
8fc1cff
·
1 Parent(s): 1c83f38

trying to find username

Browse files
Files changed (2) hide show
  1. Dockerfile +4 -2
  2. docker/entrypoint-rstudio.sh +1 -1
Dockerfile CHANGED
@@ -48,6 +48,8 @@ ENV HOME /home/$USER
48
  ENV ENV_PREFIX $HOME/env
49
 
50
  RUN echo "---> Make sudo & setup sudoers"
 
 
51
  RUN adduser $USER sudo
52
  RUN echo "$USER ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
53
  RUN chown -R $USER:$GID $HOME
@@ -82,9 +84,9 @@ RUN # make non-activate conda commands available
82
  ENV PATH=${RETICULATE_MINICONDA_PATH}/bin:${PATH}
83
  RUN echo "--> Permissions"
84
  RUN chown $USER:$GID /home/$USER/.bashrc
85
- RUN chmod 644 /home/$USER/.bashrc
86
 
87
  RUN chown $USER:$GID /home/$USER/.bash_profile
88
- RUN chmod 644 /home/$USER/.bash_profile
89
  RUN echo "--> Go!"
90
 
 
48
  ENV ENV_PREFIX $HOME/env
49
 
50
  RUN echo "---> Make sudo & setup sudoers"
51
+ RUN echo "$(id)"
52
+
53
  RUN adduser $USER sudo
54
  RUN echo "$USER ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
55
  RUN chown -R $USER:$GID $HOME
 
84
  ENV PATH=${RETICULATE_MINICONDA_PATH}/bin:${PATH}
85
  RUN echo "--> Permissions"
86
  RUN chown $USER:$GID /home/$USER/.bashrc
87
+ RUN chmod +777 /home/$USER/.bashrc
88
 
89
  RUN chown $USER:$GID /home/$USER/.bash_profile
90
+ RUN chmod +777 /home/$USER/.bash_profile
91
  RUN echo "--> Go!"
92
 
docker/entrypoint-rstudio.sh CHANGED
@@ -6,7 +6,7 @@ gid=$(id -g)
6
 
7
 
8
  echo "uid $uid gid $gid "
9
- echo "$(id)"
10
 
11
  echo "--> Setup miniconda3"
12
 
 
6
 
7
 
8
  echo "uid $uid gid $gid "
9
+ echo "$(id )"
10
 
11
  echo "--> Setup miniconda3"
12