@@ -4,12 +4,9 @@ FROM ubuntu:24.04
4
4
ENV DEBIAN_FRONTEND=noninteractive
5
5
6
6
# Create non-root user for running the container
7
- # /__w is a folder to be used by the github runner
8
7
RUN groupadd -r user && useradd -r -g user -m -s /bin/bash user && \
9
8
mkdir -p /omni && \
10
- mkdir -p /__w/_temp && \
11
9
chown -R user:user /omni && \
12
- chown -R user:user /__w/_temp && \
13
10
mkdir -p /opt/easybuild && \
14
11
chown -R user:user /opt/easybuild && \
15
12
chmod 755 /root
@@ -33,17 +30,17 @@ RUN apt-get update && apt-get install -y \
33
30
python3-venv
34
31
35
32
# Install Miniconda (snakemake needs the conda binary)
36
- RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /tmp/miniconda.sh && \
37
- bash /tmp/miniconda.sh -b -p /opt/conda && \
38
- rm /tmp/miniconda.sh && \
39
- /opt/conda/bin/conda clean -tipy && \
40
- ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \
41
- echo ". /opt/conda/etc/profile.d/conda.sh" >> /etc/bash.bashrc && \
42
- echo "conda activate base" >> /etc/bash.bashrc && \
43
- chown -R user:user /opt/conda
33
+ # RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /tmp/miniconda.sh && \
34
+ # bash /tmp/miniconda.sh -b -p /opt/conda && \
35
+ # rm /tmp/miniconda.sh && \
36
+ # /opt/conda/bin/conda clean -tipy && \
37
+ # ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \
38
+ # echo ". /opt/conda/etc/profile.d/conda.sh" >> /etc/bash.bashrc && \
39
+ # echo "conda activate base" >> /etc/bash.bashrc && \
40
+ # chown -R user:user /opt/conda
44
41
45
42
# Add conda to PATH
46
- ENV PATH="/opt/conda/bin:$PATH"
43
+ # ENV PATH="/opt/conda/bin:$PATH"
47
44
48
45
# Install apptainer and dependencies
49
46
RUN apt-get update && add-apt-repository -y ppa:apptainer/ppa \
@@ -67,6 +64,7 @@ RUN apt-get update && apt-get install -y \
67
64
&& rm -rf /var/lib/apt/lists/*
68
65
69
66
# Initialize Lmod for both interactive and non-interactive shells
67
+ # TODO: copy to user dir
70
68
RUN echo 'source /etc/profile.d/lmod.sh' >> ~/.bashrc && \
71
69
# Create a .profile that sources modules for non-interactive shells
72
70
echo 'source /etc/profile.d/lmod.sh' > ~/.profile && \
0 commit comments