Create a github action that accepts any command with args and runs it in a container that is prepared with all the dependencies for koji (hub, builder, command line), so all tests, like pylint or unit tests can run in it.
21 lines
402 B
Docker
21 lines
402 B
Docker
FROM docker.io/library/fedora:latest
|
|
|
|
RUN dnf -y upgrade \
|
|
&& dnf -y \
|
|
--setopt=fastestmirror=True \
|
|
--setopt=install_weak_deps=False \
|
|
install \
|
|
koji-builder \
|
|
koji-hub \
|
|
koji-utils \
|
|
koji \
|
|
postgresql \
|
|
pylint \
|
|
python3-flexmock \
|
|
python3-jsonschema \
|
|
python3-koji \
|
|
&& dnf clean all
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|