Skip to content

Commit

Permalink
Handle syntax change in dnf config-manager in Fedora
Browse files Browse the repository at this point in the history
  • Loading branch information
highperformancecoder committed Jan 11, 2025
1 parent 9e7f428 commit 83c2af4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ecolab
Submodule ecolab updated 1 files
+1 −1 classdesc
17 changes: 14 additions & 3 deletions obsCheck/Dockerfile-fedora
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,22 @@ ARG version=36
FROM fedora:$version
ARG project=minsky
ARG version
ARG repo=https://download.opensuse.org/repositories/home:/hpcoder1/Fedora_$version/home:hpcoder1.repo
ADD . /root
#RUN dnf install -y 'dnf-command(config-manager)' util-linux
RUN dnf install -y yum-config-manager util-linux
RUN dnf install -y 'dnf-command(config-manager)' util-linux
#RUN dnf install -y yum-config-manager util-linux
#RUN dnf config-manager add-repo --from-repofile=https://download.opensuse.org/repositories/home:/hpcoder1/Fedora_$version/home:hpcoder1.repo
RUN yum-config-manager --add-repo=https://download.opensuse.org/repositories/home:/hpcoder1/Fedora_$version/home:hpcoder1.repo
#RUN yum-config-manager --add-repo=https://download.opensuse.org/repositories/home:/hpcoder1/Fedora_$version/home:hpcoder1.repo

# handle dnf syntax change
RUN <<EOF
if [ $version -le 40 ]; then
dnf config-manager --add-repo $repo
else
dnf config-manager addrepo --from-repofile=$repo
fi
EOF

RUN dnf install -y $project
RUN useradd -m minsky
RUN su - minsky -c "minsky --version --no-sandbox"
Expand Down

0 comments on commit 83c2af4

Please sign in to comment.