forked from kubeflow/trainer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Manage kube-delivery image from training-operator and update it (kube…
…flow#1909) * Create Dockerfile * Update Dockerfile * Create deliver-kubectl.sh * Update publish-core-images.yaml * Using kubeflow kubectl-delivery * Delete scripts/kubectl-delivery/deliver-kubectl.sh * Refactor Dockerfile * Create Dockerfile * Update Dockerfile * Create deliver-kubectl.sh * Update publish-core-images.yaml * Using kubeflow kubectl-delivery * Delete scripts/kubectl-delivery/deliver-kubectl.sh * Refactor Dockerfile --------- Co-authored-by: ULBRICR <robert.ulbrich@mercedes-benz.com>
- Loading branch information
1 parent
12eefea
commit afba76b
Showing
3 changed files
with
19 additions
and
1 deletion.
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,16 @@ | ||
FROM alpine:3.17 AS build | ||
|
||
# Install kubectl. | ||
ENV K8S_VERSION v1.27.5 | ||
|
||
RUN apk add --no-cache wget | ||
RUN wget -q https://storage.googleapis.com/kubernetes-release/release/${K8S_VERSION}/bin/linux/amd64/kubectl | ||
RUN chmod +x ./kubectl | ||
RUN mv ./kubectl /bin/kubectl | ||
|
||
FROM alpine:3.17 | ||
COPY --from=build /bin/kubectl /bin/kubectl | ||
RUN apk add --no-cache bash | ||
|
||
ENTRYPOINT ["/bin/sh", "-c"] | ||
CMD ["cp /bin/kubectl /opt/kube/kubectl"] |
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