-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: move sync-nb-server-to-ironic into python package
Moved the sync-nb-server-to-ironic code into the our workflows python package. This required fixing up some places to craft the necessary entry points as well as setting dependencies. Removed the building of the container for the old directory and create a new container with these pieces.
- Loading branch information
Showing
25 changed files
with
397 additions
and
289 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
8 changes: 0 additions & 8 deletions
8
argo-workflows/sync-nb-server-to-ironic/code/port_configuration.py
This file was deleted.
Oops, something went wrong.
100 changes: 0 additions & 100 deletions
100
argo-workflows/sync-nb-server-to-ironic/code/synchronize-obm-creds.py
This file was deleted.
Oops, something went wrong.
89 changes: 0 additions & 89 deletions
89
argo-workflows/sync-nb-server-to-ironic/code/synchronize-server.py
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
argo-workflows/sync-nb-server-to-ironic/containers/Dockerfile.ironic
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
argo-workflows/sync-nb-server-to-ironic/containers/requirements.txt
This file was deleted.
Oops, something went wrong.
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
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,27 @@ | ||
ARG BASE=ghcr.io/rackerlabs/understack/argo-python3.11.8-alpine3.19:latest | ||
|
||
FROM ${BASE} AS builder | ||
ARG APP_PATH=/app | ||
ARG APP_USER=appuser | ||
ARG APP_GROUP=appgroup | ||
ARG APP_USER_UID=1000 | ||
ARG APP_GROUP_GID=1000 | ||
RUN --mount=type=cache,target=/var/cache/apk apk add --virtual build-deps gcc python3-dev musl-dev linux-headers | ||
RUN --mount=type=cache,target=/root/.cache/.pip /opt/venv/bin/pip install 'build==1.2.1' 'wheel==0.43.0' | ||
|
||
# copy in the code | ||
COPY --chown=${APP_USER}:${APP_GROUP} python/understack-workflows /app | ||
# build wheels | ||
RUN --mount=type=cache,target=/root/.cache/.pip cd /app && /opt/venv/bin/python -m build --wheel | ||
# need netifaces built as a wheel | ||
RUN --mount=type=cache,target=/root/.cache/.pip cd /app/dist && /opt/venv/bin/pip wheel netifaces | ||
|
||
FROM ${BASE} AS prod | ||
|
||
WORKDIR /app | ||
|
||
COPY --from=builder /app/dist/*.whl /opt/venv/wheels/ | ||
|
||
USER $APP_USER | ||
|
||
RUN /opt/venv/bin/pip install --no-cache-dir --find-links /opt/venv/wheels/ understack-workflows |
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
Oops, something went wrong.