Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Plugin SDK #36

Merged
merged 10 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 10 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# build poetry
FROM quay.io/centos/centos:stream8 as poetry
RUN dnf -y module install python39 && dnf -y install python39 python39-pip
FROM quay.io/arcalot/arcaflow-plugin-baseimage-python-buildbase:0.4.2 as build

WORKDIR /app

COPY poetry.lock pyproject.toml /app/
Expand All @@ -15,21 +15,19 @@ RUN python3.9 -m pip install poetry \
&& python3.9 -m poetry export -f requirements.txt --output requirements.txt --without-hashes

# run tests
COPY tests /app/tests

# FIXME -- Tests do not currently pass
#RUN mkdir /htmlcov
# FIXME cannot execute tests without injecting the cluster kubeconfig
#COPY tests /app/tests
#RUN pip3 install coverage
#RUN python3 -m coverage run tests/test_arcaflow_plugin_kill_pod.py
#RUN python3 -m coverage html -d /htmlcov --omit=/usr/local/*
#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/centos/centos:stream8
RUN dnf -y module install python39 && dnf -y install python39 python39-pip
FROM quay.io/arcalot/arcaflow-plugin-baseimage-python-osbase:0.4.2

WORKDIR /app

COPY --from=poetry /app/requirements.txt /app/
#COPY --from=poetry /htmlcov /htmlcov/
COPY --from=build /app/requirements.txt /app/
COPY --from=build /htmlcov /htmlcov/
COPY LICENSE /app/
COPY README.md /app/
COPY arcaflow_plugin_kill_pod.py /app
Expand Down
Loading
Loading