Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
code server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Sebastian Schuch
code server
Commits
d4f9faa8
Commit
d4f9faa8
authored
8 months ago
by
Sebastian Schuch
Browse files
Options
Downloads
Patches
Plain Diff
Add Karims feedback
parent
7484fb2e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+52
-5
52 additions, 5 deletions
Dockerfile
with
52 additions
and
5 deletions
Dockerfile
+
52
−
5
View file @
d4f9faa8
FROM
ghcr.io/linuxserver/baseimage-ubuntu:jammy
ENV
NVARCH x86_64
ENV
NVIDIA_REQUIRE_CUDA "cuda>=11.8 brand=tesla,driver>=470,driver<471 brand=unknown,driver>=470,driver<471 brand=nvidia,driver>=470,driver<471 brand=nvidiartx,driver>=470,driver<471 brand=geforce,driver>=470,driver<471 brand=geforcertx,driver>=470,driver<471 brand=quadro,driver>=470,driver<471 brand=quadrortx,driver>=470,driver<471 brand=titan,driver>=470,driver<471 brand=titanrtx,driver>=470,driver<471"
ENV
NV_CUDA_CUDART_VERSION 11.8.89-1
ENV
NV_CUDA_COMPAT_PACKAGE cuda-compat-11-8
ENV
NVIDIA_REQUIRE_CUDA "cuda>=11.8"
ENV
NV_CUDA_CUDART_VERSION 11.8.89-1
RUN
apt-get update
&&
apt-get
install
-y
--no-install-recommends
\
gnupg2 curl ca-certificates
&&
\
curl
-fsSLO
https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/
${
NVARCH
}
/cuda-keyring_1.0-1_all.deb
&&
\
dpkg
-i
cuda-keyring_1.0-1_all.deb
&&
\
apt-get purge
--autoremove
-y
curl
\
&&
rm
-rf
/var/lib/apt/lists/
*
ENV
CUDA_VERSION 11.8.0
# For libraries in the cuda-compat-* package: https://docs.nvidia.com/cuda/eula/index.html#attachment-a
RUN
apt-get update
&&
apt-get
install
-y
--no-install-recommends
\
cuda-cudart-11-8
=
${
NV_CUDA_CUDART_VERSION
}
\
${
NV_CUDA_COMPAT_PACKAGE
}
\
&&
rm
-rf
/var/lib/apt/lists/
*
# Required for nvidia-docker v1
RUN
echo
"/usr/local/nvidia/lib"
>>
/etc/ld.so.conf.d/nvidia.conf
\
&&
echo
"/usr/local/nvidia/lib64"
>>
/etc/ld.so.conf.d/nvidia.conf
ENV
PATH /usr/local/nvidia/bin:/usr/local/cuda/bin:${PATH}
ENV
LD_LIBRARY_PATH /usr/local/nvidia/lib:/usr/local/nvidia/lib64
# nvidia-container-runtime
ENV
NVIDIA_VISIBLE_DEVICES all
ENV
NVIDIA_DRIVER_CAPABILITIES compute,utility
# set version label
ARG
BUILD_DATE
ARG
VERSION
ARG
CODE_RELEASE
ARG
SQLITE_VERSION
ARG
DUCKDB_VERSION
ARG
BUILD_DATE
=
ARG
VERSION
=
ARG
CODE_RELEASE
=
ARG
SQLITE_VERSION
=
ARG
DUCKDB_VERSION
=
LABEL
build_version="TWM vscode server:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL
maintainer="sebastian.schuch@h-da.de"
# environment settings
ARG
DEBIAN_FRONTEND="noninteractive"
ENV
HOME="/config"
RUN
apt-get update
-yq
RUN
apt-get
install
curl
-yq
RUN
\
echo
"**** install runtime dependencies ****"
&&
\
...
...
@@ -89,3 +125,14 @@ COPY /root /
# ports and volumes
EXPOSE
8443
RUN
apt-get update
&&
apt-get
install
-yq
xfce4 xfce4-terminal fonts-firacode fonts-noto-color-emoji autocutsel
RUN
apt-get update
&&
apt-get
install
-yq
dialog apt-utils tigervnc-standalone-server tigervnc-common tigervnc-tools
RUN
apt-get
install
-yq
r-base
RUN
apt-get
install
-yq
gdebi-core
RUN
cd
/opt/
&&
wget https://download2.rstudio.org/server/jammy/amd64/rstudio-server-2024.09.0-375-amd64.deb
RUN
cd
/opt/
&&
gdebi
-n
rstudio-server-2024.09.0-375-amd64.deb
RUN
pip3
install
jupyterlab
&&
pip3
install
notebook
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