Skip to content
Snippets Groups Projects
Commit fe56d3cb authored by Elian Loraux's avatar Elian Loraux
Browse files

reorganisate as dockerlayer

parent f4c6501d
No related branches found
No related tags found
1 merge request!1Reorganisate docker layer
FROM kasmweb/core-ubuntu-jammy:1.15.0
FROM kasmweb/core-ubuntu-noble:1.16.0 as kasmvnc-base
USER root
RUN apt-get update
RUN apt-get upgrade -y
RUN mkdir /install
# === Install anaconda === #
FROM kasmvnc-base as kasmvnc-anaconda
ENV INST_DIR=/install \
INST_SCRIPTS="/install-spyder-ubuntu.sh\
/install-anaconda.sh"
WORKDIR /install
RUN wget https://repo.anaconda.com/archive/Anaconda3-2024.02-1-Linux-x86_64.sh
# Copy install scripts
RUN mkdir $INST_DIR
COPY ./install-script/ $INST_DIR
RUN bash Anaconda3-2024.02-1-Linux-x86_64.sh -b
# Run installations
RUN \
for SCRIPT in $INST_SCRIPTS; do \
bash ${INST_DIR}${SCRIPT} || exit 1; \
done
RUN chmod u+x /home/kasm-user/anaconda3/etc/profile.d/conda.sh
RUN echo "source ~/anaconda3/etc/profile.d/conda.sh" >> /home/kasm-default-profile/.bashrc
RUN echo "conda activate" >> /home/kasm-default-profile/.bashrc
USER 1000
# === Install Spyder === #
FROM kasmvnc-base as kasmvnc-spyder
RUN apt-get install -y python3-spyder
USER 1000
# === Install mathlab === #
FROM kasmvnc-base as kasmvnc-mathlab
RUN apt-get install -y python3-spyder
USER 1000
version: "3"
services:
kasm:
image: kasm-ubuntu
build: ./
build:
context: ./
target: kasmvnc-user
container_name: KasmVNC-ubuntu
volumes:
- ./homedir:/home/kasm_user:rw
......
#!/usr/bin/env bash
wget https://repo.anaconda.com/archive/Anaconda3-2023.09-0-Linux-x86_64.sh
bash Anaconda3-2023.09-0-Linux-x86_64.sh -b
chown kasm-user:kasm-user anaconda3
cat anaconda3/etc/profile.d/conda.sh >> /home/kasm-default-profile/.bashrc
#!/usr/bin/env bash
# Installation de spyder3
apt-get update --fix-missing
apt-get install spyder3 -y
# Ce script resout un problème de Spyder 4.2.1
# La résolution de se problème ressort du poste stack overflow suivant
# https://stackoverflow.com/questions/72114520/error-when-starting-spyder-on-ubuntu-22-04
# Les lignes à commanter dans
# /usr/lib/python3/dist-packages/spyder/plugins/completion/kite/widgets/install.py :
filetochange="/usr/lib/python3/dist-packages/spyder/plugins/completion/kite/widgets/install.py"
# l58
# image = image.scaled(image_width, image_height, Qt.KeepAspectRatio,
# Qt.SmoothTransformation)
sed -i '58,59 s/^/#/' $filetochange
# l145
# install_gif.setScaledSize(QSize(image_width, image_height))
sed -e 's/install_gif\.setScaledSize/# install_gif\.setScaledSize/' -i $filetochange
# l245-l248
# copilot_label.setPixmap(
# copilot_image.scaled(image_width, image_height,
# Qt.KeepAspectRatio,
# Qt.SmoothTransformation))
sed -i '245,248 s/^/#/' $filetochange
#!/usr/bin/env bash
apt-get install spyder -y
version: "3"
services:
kasm:
ports:
- 6901:6901
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment