-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
136 additions
and
52 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,35 @@ | ||
FROM registry.access.redhat.com/ubi9/ubi:latest | ||
|
||
VOLUME /payload | ||
|
||
RUN dnf update -y && \ | ||
dnf install python3 python312 python3-pip make -y && \ | ||
python3 -m pip install --upgrade pip==20.3.4 | ||
|
||
RUN pip install virtualenv | ||
|
||
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 && \ | ||
# NOTE(mmatuska): The pytest ver defined in requirements-tests is too old \ | ||
# for Python 3.12 (missing imp module), there do an update here until we \ | ||
# bump that. Similarly for six. \ | ||
pip install -U pytest && \ | ||
pip install -U six && \ | ||
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' |
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,28 @@ | ||
FROM registry.access.redhat.com/ubi7/ubi:7.9 | ||
|
||
VOLUME /payload | ||
|
||
RUN yum -y install python27-python-pip && \ | ||
scl enable python27 -- pip install -U --target /usr/lib/python2.7/site-packages/ pip==20.3.0 && \ | ||
python -m pip install --ignore-installed pip==20.3.4 virtualenv | ||
|
||
WORKDIR /payload | ||
ENTRYPOINT virtualenv testenv && \ | ||
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 --py3k && echo '===> pylint PASSED' && \ | ||
echo '==================================================' && \ | ||
echo '==================================================' && \ | ||
echo '=============== Running flake8 ===============' && \ | ||
echo '==================================================' && \ | ||
echo '==================================================' && \ | ||
flake8 $LINTABLES && echo '===> flake8 PASSED' |
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,31 @@ | ||
FROM registry.access.redhat.com/ubi8/ubi:latest | ||
|
||
VOLUME /payload | ||
|
||
ENV PYTHON_VENV "python3.6" | ||
|
||
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' |
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,30 @@ | ||
FROM registry.access.redhat.com/ubi9/ubi:latest | ||
|
||
VOLUME /payload | ||
|
||
RUN dnf update -y && \ | ||
dnf install python3 python39 make python3-pip -y && \ | ||
python3 -m pip install --upgrade pip==20.3.4 | ||
|
||
RUN pip install virtualenv | ||
|
||
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' |