Skip to content

Commit

Permalink
disable tests in image build
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew F Leader <[email protected]>
  • Loading branch information
mfleader committed Jun 10, 2024
1 parent 8059948 commit f7894a2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ RUN python3.9 -m pip install poetry \
&& python3.9 -m poetry export -f requirements.txt --output requirements.txt --without-hashes

# run tests
# FIXME cannot execute tests without a kind cluster
COPY tests /app/tests
RUN pip3 install coverage
RUN python3.9 -m coverage run tests/test_arcaflow_plugin_kill_pod.py
RUN python3.9 -m coverage html -d /htmlcov --omit=/usr/local/*
# FIXME cannot execute tests without injecting the cluster kubeconfig
#COPY tests /app/tests
#RUN pip3 install coverage
#RUN python3.9 -m coverage run tests/test_arcaflow_plugin_kill_pod.py
#RUN python3.9 -m coverage html -d /htmlcov --omit=/usr/local/*

#final image
FROM quay.io/arcalot/arcaflow-plugin-baseimage-python-osbase:0.4.0
Expand All @@ -34,7 +34,7 @@ COPY arcaflow_plugin_kill_pod.py /app

RUN python3.9 -m pip install -r requirements.txt

#ENTRYPOINT ["python3", "arcaflow_plugin_kill_pod.py"]
ENTRYPOINT ["python3", "arcaflow_plugin_kill_pod.py"]
CMD []

LABEL org.opencontainers.image.source="https://github.com/redhat-chaos/arcaflow-plugin-kill-pod"
Expand Down

0 comments on commit f7894a2

Please sign in to comment.