Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
user-jupyterlab
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
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
jupyterjsc
k8s
images
user-jupyterlab
Commits
58601e4e
Commit
58601e4e
authored
1 year ago
by
alice grosch
Browse files
Options
Downloads
Patches
Plain Diff
First rocky linux version
parent
7faeb9a2
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!2
restructure User Images
Pipeline
#165041
passed
1 year ago
Stage: build
Stage: build-lmod
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
lmod/Dockerfile
+9
-17
9 additions, 17 deletions
lmod/Dockerfile
lmod/files/apt_packages.txt
+0
-27
0 additions, 27 deletions
lmod/files/apt_packages.txt
lmod/install_files/lmod/install_lmod_8.7.sh
+2
-2
2 additions, 2 deletions
lmod/install_files/lmod/install_lmod_8.7.sh
with
11 additions
and
46 deletions
lmod/Dockerfile
+
9
−
17
View file @
58601e4e
# Ubuntu 20.04 (focal)
ARG
ROOT_CONTAINER=rockylinux:8.8.20230518
# https://hub.docker.com/_/ubuntu/?tab=tags&name=focal
# OS/ARCH: linux/amd64
ARG
ROOT_CONTAINER=ubuntu:focal-20220801
#ARG ROOT_CONTAINER=ubuntu:jammy-20220801
ARG
BASE_CONTAINER=$ROOT_CONTAINER
ARG
BASE_CONTAINER=$ROOT_CONTAINER
FROM
$BASE_CONTAINER
FROM
$BASE_CONTAINER
...
@@ -15,12 +10,11 @@ ARG NB_GID="100"
...
@@ -15,12 +10,11 @@ ARG NB_GID="100"
# Install global packages.
# Install global packages.
USER
root
USER
root
ENV
DEBIAN_FRONTEND noninteractive
RUN
dnf
-y
update
&&
\
COPY
files/apt_packages.txt /tmp/apt_packages.txt
# Needed for davfs2
RUN
apt-get update
&&
\
dnf -y install epel-release && \
cat
/tmp/apt_packages.txt | xargs apt
install
-yq
&&
\
dnf -y install bzip2 davfs2 findutils gcc make procps rsync sudo tcl-devel wget && \
apt-get clean
&&
rm
-rf
/var/lib/apt/lists/
*
dnf clean all
# Copy a script that we will use to correct permissions after running certain commands
# Copy a script that we will use to correct permissions after running certain commands
COPY
files/fix-permissions /usr/local/bin/fix-permissions
COPY
files/fix-permissions /usr/local/bin/fix-permissions
RUN
chmod
a+rx /usr/local/bin/fix-permissions
RUN
chmod
a+rx /usr/local/bin/fix-permissions
...
@@ -40,17 +34,14 @@ RUN echo "auth requisite pam_deny.so" >> /etc/pam.d/su && \
...
@@ -40,17 +34,14 @@ RUN echo "auth requisite pam_deny.so" >> /etc/pam.d/su && \
# Download lua and lmod
# Download lua and lmod
RUN
mkdir
-p
/opt/apps/install
RUN
mkdir
-p
/opt/apps/install
RUN
wget
-O
/opt/apps/install/lua-5.1.4.9.tar.bz2 https://sourceforge.net/projects/lmod/files/lua-5.1.4.9.tar.bz2/download
RUN
wget
-O
/opt/apps/install/lua-5.1.4.9.tar.bz2 https://sourceforge.net/projects/lmod/files/lua-5.1.4.9.tar.bz2/download
RUN
wget
-O
/opt/apps/install/lmod-8.
4
.tar.bz2 https://sourceforge.net/projects/lmod/files/Lmod-8.
4
.tar.bz2/download
RUN
wget
-O
/opt/apps/install/lmod-8.
7
.tar.bz2 https://sourceforge.net/projects/lmod/files/Lmod-8.
7
.tar.bz2/download
# Install lua
# Install lua
COPY
--chown=root:root ./install_files/lua /opt/apps/install/lua
COPY
--chown=root:root ./install_files/lua /opt/apps/install/lua
RUN
/bin/bash /opt/apps/install/lua/install_lua_5.1.4.9.sh
RUN
/bin/bash /opt/apps/install/lua/install_lua_5.1.4.9.sh
# Install lmod
# Install lmod
COPY
--chown=root:root ./install_files/lmod /opt/apps/install/lmod
COPY
--chown=root:root ./install_files/lmod /opt/apps/install/lmod
RUN
/bin/bash /opt/apps/install/lmod/install_lmod_8.4.sh
RUN
/bin/bash /opt/apps/install/lmod/install_lmod_8.7.sh
RUN
curl
-sL
https://deb.nodesource.com/setup_14.x | bash -
&&
apt
install
-y
gcc g++ nodejs
RUN
wget
-O
/tmp/libssl1.0.0.deb http://security.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5.13_amd64.deb
&&
apt
install
/tmp/libssl1.0.0.deb
WORKDIR
/home/$NB_USER
WORKDIR
/home/$NB_USER
COPY
files/bash.bashrc /etc/bash.bashrc
COPY
files/bash.bashrc /etc/bash.bashrc
...
@@ -58,3 +49,4 @@ COPY files/mnt.sh /tmp/mnt.sh
...
@@ -58,3 +49,4 @@ COPY files/mnt.sh /tmp/mnt.sh
RUN
/bin/bash /tmp/mnt.sh
&&
rm
/tmp/mnt.sh
RUN
/bin/bash /tmp/mnt.sh
&&
rm
/tmp/mnt.sh
USER
jovyan
USER
jovyan
ENTRYPOINT
["/bin/bash", "/tmp/custom/load_jupyter_version.sh", "&&", "/bin/bash", "/tmp/custom/load_jupyter_modules.sh"]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
lmod/files/apt_packages.txt
deleted
100644 → 0
+
0
−
27
View file @
7faeb9a2
build-essential
ca-certificates
curl
curlftpfs
davfs2
fio
fonts-liberation
fuse
git
htop
iperf
less
libncurses5-dev
libncursesw5-dev
locales
make
netcat
python3.8
python3.8-dev
python3.8-distutils
python3.8-venv
rsync
run-one
sudo
tcl-dev
vim
wget
This diff is collapsed.
Click to expand it.
lmod/install_files/lmod/install_lmod_8.
4
.sh
→
lmod/install_files/lmod/install_lmod_8.
7
.sh
+
2
−
2
View file @
58601e4e
#!/bin/bash
#!/bin/bash
cd
/opt/apps/install
cd
/opt/apps/install
tar
xf lmod-8.
4
.tar.bz2
tar
xf lmod-8.
7
.tar.bz2
cd
/opt/apps/install/Lmod-8.
4
cd
/opt/apps/install/Lmod-8.
7
./configure
--prefix
/opt/apps
./configure
--prefix
/opt/apps
make
install
make
install
ln
-s
/opt/apps/lmod/lmod/init/profile /etc/profile.d/z00_lmod.sh
ln
-s
/opt/apps/lmod/lmod/init/profile /etc/profile.d/z00_lmod.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