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
5ada3a28
Verified
Commit
5ada3a28
authored
2 months ago
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
WIP sudoer
parent
dfa3b9e3
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.env.sample
+3
-0
3 additions, 0 deletions
.env.sample
docker-compose.yml
+1
-0
1 addition, 0 deletions
docker-compose.yml
docker/kasm/Dockerfile
+10
-0
10 additions, 0 deletions
docker/kasm/Dockerfile
docker/kasm/lecture
+9
-0
9 additions, 0 deletions
docker/kasm/lecture
with
23 additions
and
0 deletions
.env.sample
+
3
−
0
View file @
5ada3a28
...
@@ -21,3 +21,6 @@ SPYDER=true
...
@@ -21,3 +21,6 @@ SPYDER=true
ANACONDA=true
ANACONDA=true
# Install QGIS
# Install QGIS
QGIS=true
QGIS=true
# Should the user have sudo rights
# **only home is a volume, any modifcation in other FS will be lost**
SUDO=true
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
1
−
0
View file @
5ada3a28
...
@@ -16,6 +16,7 @@ services:
...
@@ -16,6 +16,7 @@ services:
-
QGIS=${QGIS}
-
QGIS=${QGIS}
-
ANACONDA=${ANACONDA}
-
ANACONDA=${ANACONDA}
-
KASM_USER=${VNC_USER}
-
KASM_USER=${VNC_USER}
-
SUDO=${SUDO}
image
:
"
kasmvnc-ubuntu-noble:spyder-${SPYDER}_anaconda-${ANACONDA}_QGIS-${QGIS}"
image
:
"
kasmvnc-ubuntu-noble:spyder-${SPYDER}_anaconda-${ANACONDA}_QGIS-${QGIS}"
shm_size
:
'
512m'
shm_size
:
'
512m'
volumes
:
volumes
:
...
...
This diff is collapsed.
Click to expand it.
docker/kasm/Dockerfile
+
10
−
0
View file @
5ada3a28
...
@@ -12,6 +12,7 @@ ARG SPYDER
...
@@ -12,6 +12,7 @@ ARG SPYDER
ARG
QGIS
ARG
QGIS
ARG
ANACONDA
ARG
ANACONDA
ARG
ANACONDA_VERS=Anaconda3-2024.02-1
ARG
ANACONDA_VERS=Anaconda3-2024.02-1
ARG
SUDO
ARG
KASM_USER
ARG
KASM_USER
...
@@ -72,6 +73,15 @@ RUN if [ "$QGIS" = true ] ; then \
...
@@ -72,6 +73,15 @@ RUN if [ "$QGIS" = true ] ; then \
COPY
custom_startup.sh $STARTUPDIR/custom_startup.sh
COPY
custom_startup.sh $STARTUPDIR/custom_startup.sh
COPY
change_password.sh /
COPY
change_password.sh /
RUN if
[
"
$SUDO
"
=
true
]
;
then
\
echo
"Defaults lecture_file = /etc/sudoers.lecture"
>
/etc/sudoers.d/kasm
\
echo
"%sudo ALL=(ALL) NOPASSWD: ALL"
>>
/etc/sudoers.d/kasm
;
\
usermod
-a
-G
sudo
$KASM_USER
\
fi
COPY
lecture /etc/sudoers.lecture
######### End Customizations ###########
######### End Customizations ###########
...
...
This diff is collapsed.
Click to expand it.
docker/kasm/lecture
0 → 100644
+
9
−
0
View file @
5ada3a28
################################### WARNING ###################################
Although you have root access, any change to the main file system will be
dropped upon container restart.
If you whish to install new softwares please contact the system administrator
for help.
###############################################################################
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