Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
KasmVNC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NoCloud
docker
KasmVNC
Commits
fdc4e3b5
Commit
fdc4e3b5
authored
3 months ago
by
Elian Loraux
Browse files
Options
Downloads
Patches
Plain Diff
add condition to install spyder and anaconda if variable is define at true in .env
parent
7e18366c
No related branches found
No related tags found
1 merge request
!1
Reorganisate docker layer
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.env.sample
+14
-1
14 additions, 1 deletion
.env.sample
Dockerfile
+14
-22
14 additions, 22 deletions
Dockerfile
docker-compose.yml
+4
-1
4 additions, 1 deletion
docker-compose.yml
with
32 additions
and
24 deletions
.env.sample
+
14
−
1
View file @
fdc4e3b5
#COMPOSE_FILE=docker-compose.yml:traefik.yml
COMPOSE_FILE=docker-compose.yml:ports.yml
PASS=MON_SUPER_MOT_DE_PASSE
PASS=MON_SUPER_MOT_DE_PASSE
NAME=kasmVNC
HOST=kasmVNC.tetras-lab.io
# === install module === #
#
# Put variable at true to install
# Put variable at false to do not install
#
# ====================== #
# Install Spyder (python IDE)
SPYDER=true
# Install anaconda (distribution platform for Python and R)
ANACONDA=true
This diff is collapsed.
Click to expand it.
Dockerfile
+
14
−
22
View file @
fdc4e3b5
FROM
kasmweb/core-ubuntu-noble:1.16.0
as
kasmvnc-base
ARG
SPYDER
ARG
ANACONDA
USER
root
RUN
apt-get update
RUN
mkdir
/install
# === Install anaconda === #
FROM
kasmvnc-base
as
kasmvnc-anaconda
WORKDIR
/install
RUN
wget https://repo.anaconda.com/archive/Anaconda3-2024.02-1-Linux-x86_64.sh
RUN
bash Anaconda3-2024.02-1-Linux-x86_64.sh
-b
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 if
[
"
$SPYDER
"
=
true
]
;
then
apt-get
install
-y
python3-spyder
;
fi
RUN
apt-get
install
-y
python3-spyder
# === Install anaconda === #
RUN if
[
"
$ANACONDA
"
=
true
]
;
then
\
wget https://repo.anaconda.com/archive/Anaconda3-2024.02-1-Linux-x86_64.sh
;
\
bash Anaconda3-2024.02-1-Linux-x86_64.sh
-b
;
\
chmod
u+x /home/kasm-user/anaconda3/etc/profile.d/conda.sh
;
\
echo
"source ~/anaconda3/etc/profile.d/conda.sh"
>>
/home/kasm-default-profile/.bashrc
;
\
echo
"conda activate"
>>
/home/kasm-default-profile/.bashrc
;
\
fi
WORKDIR
/home/kasm-user
USER
1000
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
4
−
1
View file @
fdc4e3b5
...
...
@@ -4,12 +4,15 @@ services:
build
:
context
:
./
target
:
kasmvnc-base
args
:
-
SPYDER=${SPYDER}
-
ANACONDA=${ANACONDA}
container_name
:
KasmVNC-ubuntu
volumes
:
-
./homedir:/home/kasm_user:rw
environment
:
-
VNC_PW=${PASS}
volumes
:
homedir
:
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment