Skip to content

Commit

Permalink
Fixing build issue referenced in #51 (#52)
Browse files Browse the repository at this point in the history
- Only changes base image to fedora:37

Signed-off-by: Vicente Zepeda Mas <[email protected]>
  • Loading branch information
chentex authored Apr 5, 2022
1 parent 11a5671 commit 2eed442
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM registry.access.redhat.com/ubi8:latest
FROM fedora:37

COPY image_resources/centos8-appstream.repo /etc/yum.repos.d/centos8-appstream.repo
RUN dnf install -y --nodocs python3 python3-pip && dnf clean all && \
dnf install -y --nodocs skopeo redis curl --enablerepo=centos8-appstream && dnf clean all && \
COPY image_resources/centos8.repo image_resources/centos8-appstream.repo /etc/yum.repos.d/
RUN dnf install -y --nodocs python3 python3-pip python3-devel gcc && dnf clean all && \
dnf install -y --nodocs skopeo curl redis --enablerepo=centos8-appstream && dnf clean all && \
ln -s /usr/bin/python3 /usr/bin/python
WORKDIR /workdir

Expand All @@ -15,6 +15,7 @@ RUN curl -L -o ocm-load-test-linux.tgz \
chmod 755 /usr/local/bin/ocm-load-test

COPY config.example.yaml /workdir/config.yaml
RUN pip3 install --upgrade pip
RUN pip3 install -r requirements.txt

CMD [ "ocm-load-test", "--config-file", "config.yaml" ]
2 changes: 1 addition & 1 deletion image_resources/centos8-appstream.repo
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[centos8-appstream]
name=CentOS-8-Appstream
baseurl=http://mirror.centos.org/centos/8/AppStream/$basearch/os/
baseurl=http://mirror.centos.org/centos/8-stream/AppStream/$basearch/os/
enabled=0
gpgcheck=0
5 changes: 5 additions & 0 deletions image_resources/centos8.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[centos8]
name=CentOS-8
baseurl=http://mirror.centos.org/centos/8-stream/BaseOS/$basearch/os/
enabled=0
gpgcheck=0

0 comments on commit 2eed442

Please sign in to comment.