-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Starting initial draft commit for building for EL 9
- this is mostly broken, just putting here some tips what we should update, etc...
- Loading branch information
Showing
4 changed files
with
55 additions
and
2 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
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,12 @@ | ||
FROM registry.access.redhat.com/ubi8/ubi:latest | ||
|
||
VOLUME /payload | ||
|
||
ENV DIST_VERSION 8 | ||
|
||
RUN dnf update -y && \ | ||
dnf install -y python3 make git rpm-build python3-devel | ||
#yum install -y python3-pip && \ python3 -m pip install --upgrade pip==20.3.4 | ||
|
||
WORKDIR /payload | ||
ENTRYPOINT make build |
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,35 @@ | ||
FROM registry.access.redhat.com/ubi8/ubi:latest | ||
|
||
VOLUME /payload | ||
|
||
RUN yum update -y && \ | ||
yum install python3 python39 python3-virtualenv make -y && \ | ||
yum -y install python3-pip && \ | ||
python3 -m pip install --upgrade pip==20.3.4 | ||
|
||
WORKDIR /payload | ||
ENTRYPOINT virtualenv testenv -p "/usr/bin/$PYTHON_VENV" && \ | ||
source testenv/bin/activate && \ | ||
pip install -U setuptools && \ | ||
pip install -U funcsigs && \ | ||
pip install -U -r requirements-tests.txt && \ | ||
pip install -U . && \ | ||
export LINTABLES=$(find . -name '*.py' | grep -E -e '^\./leapp\/' -e '^\./tests/scripts/' | sort -u ) && \ | ||
echo '==================================================' && \ | ||
echo '==================================================' && \ | ||
echo '=============== Running pylint ===============' && \ | ||
echo '==================================================' && \ | ||
echo '==================================================' && \ | ||
echo $LINTABLES | xargs pylint && echo '===> pylint PASSED' && \ | ||
echo '==================================================' && \ | ||
echo '==================================================' && \ | ||
echo '=============== Running flake8 ===============' && \ | ||
echo '==================================================' && \ | ||
echo '==================================================' && \ | ||
flake8 $LINTABLES && echo '===> flake8 PASSED' && \ | ||
echo '==================================================' && \ | ||
echo '==================================================' && \ | ||
echo '=============== Running tests ===============' && \ | ||
echo '==================================================' && \ | ||
echo '==================================================' && \ | ||
py.test -vv --cov-report term-missing --cov=leapp tests/scripts/*.py |