Skip to content
Snippets Groups Projects
Commit 58601e4e authored by alice grosch's avatar alice grosch
Browse files

First rocky linux version

parent 7faeb9a2
Branches
Tags
1 merge request!2restructure User Images
Pipeline #165041 passed
# 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
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
#!/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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment