@@ -5,12 +5,42 @@ RUN apt update -y && apt install munge vim build-essential git wget -y
55
66ARG DEBIAN_FRONTEND=noninteractive
77
8- RUN apt install slurm-client -y
9- RUN apt install curl dirmngr apt-transport-https lsb-release ca-certificates -y
10- RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
11- RUN apt install sudo -y && apt install python3.9 python3-pip -y && useradd -m admin -s /usr/bin/bash -d /home/admin && echo "admin:admin" | chpasswd && adduser admin sudo && echo "admin ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
12-
13- RUN apt update -y && apt install nodejs -y && npm install -g configurable-http-proxy && pip3 install jupyterlab==2.1.2
8+ SHELL [ "/bin/bash" , "-c" ]
9+
10+
11+ # Install common dependencies with DEBIAN_FRONTEND=noninteractive
12+ RUN apt-get update -qq --fix-missing && \
13+ apt-get upgrade -y && \
14+ apt-get install -y --no-install-recommends \
15+ apt-clone \
16+ build-essential \
17+ bzip2 \
18+ ca-certificates \
19+ cmake \
20+ curl \
21+ git \
22+ graphviz \
23+ pkg-config \
24+ sudo \
25+ unzip \
26+ vim \
27+ wget \
28+ pip \
29+ slurm-client \
30+ && \
31+ sudo apt-get -o Dpkg::Options::="--force-confmiss" install --reinstall -y netbase && \
32+ apt-get -y autoclean && \
33+ apt-get -y autoremove && \
34+ rm -rf /root/.cache && \
35+ rm -rf /var/lib/apt/lists/*
36+
37+
38+ # RUN apt install slurm-client curl -y
39+
40+ # RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
41+ RUN useradd -m admin -s /usr/bin/bash -d /home/admin && echo "admin:admin" | chpasswd && adduser admin sudo && echo "admin ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
42+
43+ RUN pip install jupyterlab
1444
1545COPY slurm.conf /etc/slurm-llnl/
1646COPY cgroup.conf /etc/slurm-llnl/
@@ -23,6 +53,7 @@ EXPOSE 8888
2353ENV USER admin
2454ENV SHELL bash
2555
26- RUN apt install libopenmpi-dev -y && pip3 install mpi4py && pip3 install jupyterlab_slurm
56+ # RUN apt install libopenmpi-dev -y && pip install mpi4py && pip install jupyterlab_slurm
57+ RUN pip install jupyterlab_slurm
2758
2859ENTRYPOINT ["/etc/slurm-llnl/docker-entrypoint.sh" ]
0 commit comments