Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Viacheslav Ostroukh
research-docker
Commits
09f7ed80
Commit
09f7ed80
authored
Mar 31, 2018
by
Rafal Skolasinski
Browse files
set conda environment and package folder from inside startup.sh script
parent
54b96024
Changes
2
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
09f7ed80
...
...
@@ -107,10 +107,6 @@ RUN fix-permissions /opt/conda
# Cleanup all downloaded conda files
RUN
conda clean
--yes
--all
# Set the conda environment folder in the home folder
RUN
conda config
--system
--add
envs_dirs /home/tinkerer/.conda/envs
RUN
conda config
--system
--add
pkgs_dirs /home/tinkerer/.conda/pkgs
# copy startup.sh script and set start-up command
COPY
startup.sh /usr/local/bin
CMD
["startup.sh"]
...
...
startup.sh
View file @
09f7ed80
...
...
@@ -8,6 +8,10 @@
chown
$NB_UID
:
$NB_GID
/home/
$NB_USER
cd
/home/
$NB_USER
# make sure that we're in the right place
# Set the conda environment and package folder in the home folder
conda config
--system
--add
envs_dirs /home/
$NB_USER
/.conda/envs
conda config
--system
--add
pkgs_dirs /home/
$NB_USER
/.conda/pkgs
## launch daemonized SSHD
mkdir
-p
/var/run/sshd
/usr/sbin/sshd
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment