Skip to content
Snippets Groups Projects
Verified Commit dfa3b9e3 authored by David Beniamine's avatar David Beniamine
Browse files

Install conda in user space

parent 3aa19b05
No related branches found
No related tags found
No related merge requests found
...@@ -60,12 +60,6 @@ RUN if [ "$SPYDER" = true ] ; then apt-get install -y python3-spyder; fi ...@@ -60,12 +60,6 @@ RUN if [ "$SPYDER" = true ] ; then apt-get install -y python3-spyder; fi
# === Install anaconda === # # === Install anaconda === #
RUN if [ "$ANACONDA" = true ] ; then \ RUN if [ "$ANACONDA" = true ] ; then \
wget https://repo.anaconda.com/archive/${ANACONDA_VERS}-Linux-x86_64.sh; \ wget https://repo.anaconda.com/archive/${ANACONDA_VERS}-Linux-x86_64.sh; \
bash ${ANACONDA_VERS}-Linux-x86_64.sh -b; \
chmod u+x $HOME/anaconda3/etc/profile.d/conda.sh; \
echo "source ~/anaconda3/etc/profile.d/conda.sh" >> /home/kasm-user/.bashrc; \
echo "conda activate" >> /home/kasm-user/.bashrc; \
rm -rf $HOME/.cache; \
rm ${ANACONDA_VERS}-Linux-x86_64.sh; \
fi fi
# === Install QGIS === # # === Install QGIS === #
......
#!/bin/bash #!/bin/bash
VNC_HOME=/home/kasm-user VNC_HOME=/home/kasm-user
sed -i -e "s@kasm-default-profile@kasm-user@g" ~/anaconda3/etc/profile.d/conda.sh
# Add changepassword icon # Add changepassword icon
mkdir -p $VNC_HOME/Desktop mkdir -p $VNC_HOME/Desktop
cat <<EOF > $VNC_HOME/Desktop/users.desktop cat <<EOF > $VNC_HOME/Desktop/users.desktop
...@@ -23,6 +21,11 @@ Terminal=true ...@@ -23,6 +21,11 @@ Terminal=true
Icon=$VNC_HOME/anaconda3/lib/python3.8/site-packages/anaconda_navigator/static/images/anaconda.png Icon=$VNC_HOME/anaconda3/lib/python3.8/site-packages/anaconda_navigator/static/images/anaconda.png
Exec=$VNC_HOME/anaconda3/bin/anaconda-navigator Exec=$VNC_HOME/anaconda3/bin/anaconda-navigator
eof eof
if [ -z "$(grep 'conda init' $VNC_HOME/.bashrc)" ]; then
bash /install/Anaconda3-*.sh -b
$VNC_HOME/anaconda3/bin/conda init
fi
fi fi
if [ $SPYDER == 'true' ]; then if [ $SPYDER == 'true' ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment