-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add RHEL9 container for building and testing
Adding RHEL 9 containers so we can start to test & build packages in RHEL 9 environemnt. Since `python3-virtualenv` package is not available in the RHEL 9 UBI, a workaround is introduced `make install-deps-fedora`, which is used by the testing containers. If not able to install the package, `pip install virtualenv` is used as a fallback as this is working in the image. The relatively recent Python version used in the container means there is also a relative recent Pylint verision, which introduces 2+ new checks.
- Loading branch information
1 parent
8701243
commit 953bfb1
Showing
3 changed files
with
51 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM registry.access.redhat.com/ubi9/ubi:latest | ||
|
||
VOLUME /repo | ||
|
||
RUN dnf update -y && \ | ||
dnf install -y python3-devel rpm-build make git | ||
|
||
WORKDIR /repo | ||
ENV DIST_VERSION 9 | ||
ENTRYPOINT make _build_local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM registry.access.redhat.com/ubi9/ubi:latest | ||
|
||
VOLUME /repo | ||
|
||
RUN dnf update -y && \ | ||
dnf install -y python3-setuptools python3-pip make git rsync | ||
|
||
ENV PYTHON_VENV python3.9 | ||
|
||
COPY . /repocopy | ||
|
||
WORKDIR /repocopy | ||
|
||
RUN rm -rf tut* | ||
|
||
RUN make clean && make install-deps-fedora | ||
|
||
WORKDIR / |