forked from kubeflow/kfctl
-
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.
* update to reflect v3 * always return a rev version * update to refect changes from kubeflow/kubeflow/bootstrap * add prow which uses ksonnet, argo_client for now * remove workflows e2e which just did run-tests * add tf-operator back
- Loading branch information
1 parent
3ec1c55
commit 17664e3
Showing
51 changed files
with
77,514 additions
and
711 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
#********************************************************************** | ||
# Builder | ||
# | ||
# Create a go runtime suitable for building and testing kfctl | ||
ARG GOLANG_VERSION=1.12.7 | ||
FROM golang:$GOLANG_VERSION as builder | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y git unzip | ||
|
||
# junit report is used to conver go test output to junit for reporting | ||
RUN go get -u github.com/jstemmer/go-junit-report | ||
|
||
# We need gcloud to get gke credentials. | ||
RUN \ | ||
cd /tmp && \ | ||
wget -nv https://dl.google.com/dl/cloudsdk/release/install_google_cloud_sdk.bash && \ | ||
chmod +x install_google_cloud_sdk.bash && \ | ||
./install_google_cloud_sdk.bash --disable-prompts --install-dir=/opt/ | ||
|
||
ENV PATH /go/bin:/usr/local/go/bin:/opt/google-cloud-sdk/bin:${PATH} | ||
|
||
# use go modules | ||
ENV GO111MODULE=on | ||
ENV GOPATH=/go | ||
|
||
# Create kfctl folder | ||
RUN mkdir -p ${GOPATH}/src/github.com/kubeflow/kfctl | ||
WORKDIR ${GOPATH}/src/github.com/kubeflow/kfctl | ||
|
||
# Download dependencies first to optimize Docker caching. | ||
COPY go.mod . | ||
COPY go.sum . | ||
RUN go mod download | ||
# Copy in the source | ||
COPY . . | ||
|
||
#********************************************************************** | ||
# | ||
# kfctl_base | ||
# | ||
FROM builder as kfctl_base | ||
|
||
RUN make build-kfctl | ||
|
||
#********************************************************************** | ||
# | ||
# Final image base | ||
# | ||
|
||
FROM alpine:3.10.1 as barebones_base | ||
RUN mkdir -p /opt/kubeflow | ||
WORKDIR /opt/kubeflow | ||
|
||
#********************************************************************** | ||
# | ||
# kfctl | ||
# | ||
FROM barebones_base as kfctl | ||
|
||
COPY --from=kfctl_base /go/src/github.com/kubeflow/kfctl/bin/kfctl /usr/local/bin | ||
|
||
CMD ["/bin/bash", "-c", "trap : TERM INT; sleep infinity & wait"] |
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
Oops, something went wrong.