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

Add option to install a specific JDK

parent 509b8fc5
No related branches found
No related tags found
No related merge requests found
...@@ -23,6 +23,8 @@ TZ=Europe/Paris ...@@ -23,6 +23,8 @@ TZ=Europe/Paris
ANACONDA=true ANACONDA=true
# Install QGIS # Install QGIS
QGIS=true QGIS=true
# Install JAVA tell which jdk ie default-jdk openjdk-8 etc.
JAVA=
# Should the user have sudo rights # Should the user have sudo rights
# **only home is a volume, any modifcation in other FS will be lost** # **only home is a volume, any modifcation in other FS will be lost**
SUDO=false SUDO=false
...@@ -6,8 +6,8 @@ services: ...@@ -6,8 +6,8 @@ services:
args: args:
- QGIS=${QGIS} - QGIS=${QGIS}
- ANACONDA=${ANACONDA} - ANACONDA=${ANACONDA}
image: "webtop-ubuntu-mate:anaconda-${ANACONDA}_QGIS-${QGIS}_SUDO-${SUDO}" - JAVA=${JAVA}
#image: lscr.io/linuxserver/webtop:ubuntu-mate image: "webtop-ubuntu-mate:anaconda-${ANACONDA}_QGIS-${QGIS}_JAVA-${JAVA}_SUDO-${SUDO}"
shm_size: '1gb' shm_size: '1gb'
security_opt: security_opt:
- seccomp:unconfined #optional - seccomp:unconfined #optional
......
...@@ -4,6 +4,7 @@ ENV STARTUPDIR /custom-cont-init.d ...@@ -4,6 +4,7 @@ ENV STARTUPDIR /custom-cont-init.d
ARG QGIS ARG QGIS
ARG ANACONDA ARG ANACONDA
ARG JAVA
ARG ANACONDA_VERS=Anaconda3-2024.02-1 ARG ANACONDA_VERS=Anaconda3-2024.02-1
RUN apt-get update && \ RUN apt-get update && \
...@@ -35,6 +36,11 @@ RUN if [ "$QGIS" = true ] ; then \ ...@@ -35,6 +36,11 @@ RUN if [ "$QGIS" = true ] ; then \
apt-get -y install qgis qgis-plugin-grass; \ apt-get -y install qgis qgis-plugin-grass; \
fi fi
RUN if [ ! -z "$JAVA" ] ; then \
apt-get update; \
apt-get -y install $JAVA-jdk $JAVA-jre; \
fi
COPY custom_startup.sh $STARTUPDIR/custom_startup.sh COPY custom_startup.sh $STARTUPDIR/custom_startup.sh
COPY change_password.sh / COPY change_password.sh /
COPY lecture /etc/sudoers.lecture COPY lecture /etc/sudoers.lecture
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment