-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(controller): make runtime dockerizing be a job (#2651)
- Loading branch information
Showing
33 changed files
with
763 additions
and
853 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
ARG BASE_IMAGE=starwhaleai/base:latest | ||
FROM gcr.io/kaniko-project/executor:v1.14.0 AS kaniko | ||
FROM ${BASE_IMAGE} | ||
|
||
ARG PYTHON_VERSION | ||
ARG SW_VERSION | ||
|
||
ENV SW_RUNTIME_PYTHON_VERSION=${PYTHON_VERSION:-3.10} | ||
ENV SW_VERSION=${SW_VERSION:-0.5.8} | ||
COPY --from=kaniko /kaniko/executor /kaniko/executor | ||
COPY --from=kaniko /kaniko/docker-credential-gcr /kaniko/docker-credential-gcr | ||
COPY --from=kaniko /kaniko/docker-credential-ecr-login /kaniko/docker-credential-ecr-login | ||
COPY --from=kaniko /kaniko/docker-credential-acr-env /kaniko/docker-credential-acr-env | ||
COPY --from=kaniko /kaniko/.docker /kaniko/.docker | ||
COPY --from=kaniko /kaniko/ssl/certs/ /kaniko/ssl/certs/ | ||
COPY --from=kaniko /etc/nsswitch.conf /etc/nsswitch.conf | ||
RUN /opt/starwhale.bin/base-entrypoint set_environment || true | ||
|
||
ENV SW_USER_RUNTIME_RESTORED=1 | ||
ENV PATH $PATH:/usr/local/bin:/kaniko | ||
ENV SSL_CERT_DIR=/kaniko/ssl/certs | ||
ENV DOCKER_CONFIG /kaniko/.docker/ | ||
ENV DOCKER_CREDENTIAL_GCR_CONFIG /kaniko/.config/gcloud/docker_credential_gcr_config.json | ||
ENTRYPOINT ["/kaniko/executor"] |
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
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
62 changes: 0 additions & 62 deletions
62
...roller/src/main/java/ai/starwhale/mlops/configuration/security/RuntimeTokenValidator.java
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
Oops, something went wrong.