Skip to content

Commit

Permalink
Update Plugin SDK (#36)
Browse files Browse the repository at this point in the history
* update sdk

Signed-off-by: Matthew F Leader <[email protected]>

* sdk updates

Signed-off-by: Matthew F Leader <[email protected]>

* use arcaflow plugin base image for dockerfile

Signed-off-by: Matthew F Leader <[email protected]>

* check if tests work

Signed-off-by: Matthew F Leader <[email protected]>

* disable tests in image build

Signed-off-by: Matthew F Leader <[email protected]>

* update indirect dependencies for cves

Signed-off-by: Matthew F Leader <[email protected]>

* update poetry lockfile

Signed-off-by: Matthew F Leader <[email protected]>

* use updated plugin image bases

Signed-off-by: Matthew F Leader <[email protected]>

* rm pyproject cve fixes group dependency

Signed-off-by: Matthew F Leader <[email protected]>

* update lock file

Signed-off-by: Matthew F Leader <[email protected]>

---------

Signed-off-by: Matthew F Leader <[email protected]>
  • Loading branch information
mfleader authored Jul 1, 2024
1 parent 8a12747 commit dd7c879
Show file tree
Hide file tree
Showing 4 changed files with 150 additions and 371 deletions.
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

0 comments on commit dd7c879

Please sign in to comment.