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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NoCloud
docker
KasmVNC
Commits
3aa19b05
Verified
Commit
3aa19b05
authored
3 months ago
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
Add several applications
parent
ddafaf8f
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.env.sample
+2
-0
2 additions, 0 deletions
.env.sample
docker-compose.yml
+3
-1
3 additions, 1 deletion
docker-compose.yml
docker/kasm/Dockerfile
+33
-6
33 additions, 6 deletions
docker/kasm/Dockerfile
with
38 additions
and
7 deletions
.env.sample
+
2
−
0
View file @
3aa19b05
...
...
@@ -19,3 +19,5 @@ PORT=6901
SPYDER=true
# Install anaconda (distribution platform for Python and R)
ANACONDA=true
# Install QGIS
QGIS=true
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
3
−
1
View file @
3aa19b05
...
...
@@ -13,9 +13,11 @@ services:
target
:
kasmvnc-base
args
:
-
SPYDER=${SPYDER}
-
QGIS=${QGIS}
-
ANACONDA=${ANACONDA}
-
KASM_USER=${VNC_USER}
image
:
"
kasmvnc-ubuntu-noble:spyder-${SPYDER}_anaconda-${ANACONDA}"
image
:
"
kasmvnc-ubuntu-noble:spyder-${SPYDER}_anaconda-${ANACONDA}_QGIS-${QGIS}"
shm_size
:
'
512m'
volumes
:
-
homedir:/home/:rw
environment
:
...
...
This diff is collapsed.
Click to expand it.
docker/kasm/Dockerfile
+
33
−
6
View file @
3aa19b05
...
...
@@ -9,6 +9,7 @@ WORKDIR $HOME
######### Customize Container Here ###########
ARG
SPYDER
ARG
QGIS
ARG
ANACONDA
ARG
ANACONDA_VERS=Anaconda3-2024.02-1
ARG
KASM_USER
...
...
@@ -16,17 +17,29 @@ ARG KASM_USER
COPY
firefox-deb-nosnap /etc/apt/preferences.d/firefox-deb-nosnap
RUN
sudo
add-apt-repository ppa:mozillateam/ppa
RUN
apt-get update
&&
\
RUN
sudo
add-apt-repository ppa:mozillateam/ppa
&&
\
apt-get update && \
apt-get purge -y language-pack-* && \
apt-get -y dist-upgrade && \
apt-get install -y \
autoconf \
build-essential \
evince \
firefox \
gedit \
git \
git-cola \
gnupg \
htop \
inotify-tools \
language-pack-en \
language-pack-en-base \
language-pack-fr \
language-pack-fr-base \
language-pack-en
\
language-pack-en-base
&&
\
libreoffice \
software-properties-common \
vim-nox \
wget && \
locale-gen --purge fr_FR.UTF-8 en_US.UTF-8
RUN
mkdir
/install
...
...
@@ -35,6 +48,11 @@ RUN usermod -l $KASM_USER kasm-user; \
for
f
in
/dockerstartup/
*
.sh
;
do
sed
-i
-e
"s/kasm_user/
$KASM_USER
/g"
$f
;
done
WORKDIR
/install
RUN
wget https://dbeaver.io/files/dbeaver-ce_latest_amd64.deb
&&
\
dpkg
-i
dbeaver-ce_latest_amd64.deb
&&
\
rm
dbeaver-ce_latest_amd64.deb
# === Install Spyder === #
RUN if
[
"
$SPYDER
"
=
true
]
;
then
apt-get
install
-y
python3-spyder
;
fi
...
...
@@ -44,9 +62,18 @@ RUN if [ "$ANACONDA" = true ] ; then \
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-
default-profile
/.bashrc
;
\
echo
"conda activate"
>>
/home/kasm-
default-profile
/.bashrc
;
\
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
# === Install QGIS === #
RUN if
[
"
$QGIS
"
=
true
]
;
then
\
wget
-O
/etc/apt/keyrings/qgis-archive-keyring.gpg https://download.qgis.org/downloads/qgis-archive-keyring.gpg
;
\
echo
"Types: deb deb-src
\n
URIs: https://qgis.org/debian
\n
Suites:
$(
lsb_release
-cs
)
\n
Architectures: amd64
\n
Components: main
\n
Signed-By: /etc/apt/keyrings/qgis-archive-keyring.gpg"
>
/etc/apt/sources.list.d/qgis.sources
;
\
apt-get update
;
\
apt-get
-y
install
qgis qgis-plugin-grass
;
\
fi
COPY
custom_startup.sh $STARTUPDIR/custom_startup.sh
...
...
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