Skip to content

Commit

Permalink
Update yum setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
riga committed Nov 5, 2023
1 parent 3c695ae commit 35afa5c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions docker/Dockerfile_alma9_py37
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,12 @@ COPY bashrc /root/.bashrc
WORKDIR /root/install

# prepare yum
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && \
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
RUN sed -i -r 's/^(override_install_langs=.+)/#\1/' /etc/yum.conf
RUN yum -y update; yum clean all
RUN yum -y install yum-utils epel-release curl wget bzip2; yum clean all
RUN yum -y install yum-utils epel-release curl wget bzip2 --allowerasing; yum clean all

# setup mamba
env MAMBA_ROOT_PREFIX "${LAW_MAMBA_ROOT}"
env MAMBA_EXE "${MAMBA_ROOT_PREFIX}/bin/micromamba"
ENV MAMBA_ROOT_PREFIX "${LAW_MAMBA_ROOT}"
ENV MAMBA_EXE "${MAMBA_ROOT_PREFIX}/bin/micromamba"
ENV PATH "${MAMBA_ROOT_PREFIX}/bin:${PATH}"
RUN case "${TARGETPLATFORM}" in \
"linux/amd64") MAMBA_PLATFORM="linux-64" ;; \
Expand Down

0 comments on commit 35afa5c

Please sign in to comment.