Skip to content

Commit

Permalink
remove mamba
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-l-p committed Apr 10, 2024
1 parent 3f70d1e commit 97cfb8e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,29 @@ RUN cd /etc/yum.repos.d/ && \

# Development tools including compilers
RUN yum groupinstall "Development Tools" -y --nogpgcheck && \
yum install -y --nogpgcheck mesa-libGL libXt libXt-devel wget gcc-gfortran lapack vim tmux && \
yum install -y --nogpgcheck mesa-libGL libXt libXt-devel wget gcc-gfortran lapack vim tmux python3 && \
yum clean all

# Install Mamba
# Swapped from Conda to Mamba due to Github runner memory constraint
RUN wget --no-check-certificate https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh -O /mamba.sh && \
chmod +x /mamba.sh && \
/mamba.sh -b -p /mamba/ && \
rm /mamba.sh && hash -r
# RUN wget --no-check-certificate https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh -O /mamba.sh && \
# chmod +x /mamba.sh && \
# /mamba.sh -b -p /mamba/ && \
# rm /mamba.sh && hash -r

ADD / /sharpy_dir/

# Update mamba and make it run with no user interaction
# Cleanup mamba installation
RUN mamba init bash
# RUN mamba init bash
# RUN mamba config --set always_yes yes --set changeps1 no
RUN mamba update -q conda
# RUN mamba update -q conda
# RUN mamba config --set auto_activate_base false
RUN mamba env create -f /sharpy_dir/utils/environment.yml
# RUN mamba env create -f /sharpy_dir/utils/environment.yml
#RUN mamba clean -afy
RUN find /mamba/ -follow -type f -name '*.a' -delete
RUN find /mamba/ -follow -type f -name '*.pyc' -delete
RUN find /mamba/ -follow -type f -name '*.js.map' -delete
# RUN find /mamba/ -follow -type f -name '*.a' -delete
# RUN find /mamba/ -follow -type f -name '*.pyc' -delete
# RUN find /mamba/ -follow -type f -name '*.js.map' -delete

#COPY /utils/docker/* /root/
RUN ln -s /sharpy_dir/utils/docker/* /root/
Expand Down

0 comments on commit 97cfb8e

Please sign in to comment.