diff --git a/odh_images/Dockerfile.cacheserver b/odh_images/Dockerfile.cacheserver deleted file mode 100644 index 4e7d3508bd34..000000000000 --- a/odh_images/Dockerfile.cacheserver +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright 2021 The Kubeflow Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Dockerfile for building the source code of cache_server -FROM golang:1.21.7-alpine3.19 as builder - -RUN apk update && apk upgrade && \ - apk add --no-cache bash git openssh gcc musl-dev - -WORKDIR /go/src/github.com/kubeflow/pipelines - -COPY ./go.mod ./ -COPY ./go.sum ./ -COPY ./hack/install-go-licenses.sh ./hack/ - -RUN GO111MODULE=on go mod download -RUN ./hack/install-go-licenses.sh - -COPY . . - -RUN GO111MODULE=on go build -o /bin/cache_server backend/src/cache/*.go - -# Check licenses and comply with license terms. -# First, make sure there's no forbidden license. -RUN go-licenses check ./backend/src/cache -RUN go-licenses csv ./backend/src/cache > /tmp/licenses.csv && \ - diff /tmp/licenses.csv backend/third_party_licenses/cache_server.csv && \ - go-licenses save ./backend/src/cache --save_path /tmp/NOTICES - -FROM alpine:3.19 - -RUN adduser -S appuser -USER appuser - -WORKDIR /bin - -COPY --from=builder /bin/cache_server /bin/cache_server -# Copy licenses and notices. -COPY --from=builder /tmp/licenses.csv /third_party/licenses.csv -COPY --from=builder /tmp/NOTICES /third_party/NOTICES - -ENTRYPOINT [ "/bin/cache_server" ] diff --git a/odh_images/Dockerfile.conformance b/odh_images/Dockerfile.conformance deleted file mode 100644 index 9a2920a580db..000000000000 --- a/odh_images/Dockerfile.conformance +++ /dev/null @@ -1,43 +0,0 @@ -# Copyright 2022 The Kubeflow Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Dockerfile for building the source code of conformance tests -FROM golang:1.21.7-alpine3.19 as builder - -RUN apk update && apk upgrade && \ - apk add --no-cache bash git openssh gcc musl-dev - -WORKDIR /go/src/github.com/kubeflow/pipelines -COPY . . - -# Compile the test -RUN GO111MODULE=on go test -c -o /test/integration/api-test backend/test/integration/*.go -# Add test resources -ADD backend/test/resources /test/resources - -# Add test script. -COPY backend/conformance/run.sh /test/integration -RUN chmod +x /test/integration/run.sh - -# Create a tar ball for all the test assets, to be copied into the final image. -RUN tar -czvf /test.tar.gz /test - - -FROM alpine:3.8 - -COPY --from=builder /test.tar.gz / -RUN tar -xzvf /test.tar.gz -WORKDIR /test/integration - -ENTRYPOINT [ "./run.sh" ] diff --git a/odh_images/Dockerfile.viewercontroller b/odh_images/Dockerfile.viewercontroller deleted file mode 100644 index 73f4fbdb1db4..000000000000 --- a/odh_images/Dockerfile.viewercontroller +++ /dev/null @@ -1,52 +0,0 @@ -# Copyright 2021 The Kubeflow Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -FROM golang:1.21.7-alpine3.19 as builder - -RUN apk update && apk upgrade -RUN apk add --no-cache git gcc musl-dev - -WORKDIR /src/github.com/kubeflow/pipelines - -COPY ./go.mod ./ -COPY ./go.sum ./ -COPY ./hack/install-go-licenses.sh ./hack/ - -RUN GO111MODULE=on go mod download -RUN ./hack/install-go-licenses.sh - -COPY . . - -RUN GO111MODULE=on go build -o /bin/controller backend/src/crd/controller/viewer/*.go -# Check licenses and comply with license terms. -# First, make sure there's no forbidden license. -RUN go-licenses check ./backend/src/crd/controller/viewer -RUN go-licenses csv ./backend/src/crd/controller/viewer > /tmp/licenses.csv && \ - diff /tmp/licenses.csv backend/third_party_licenses/viewer.csv && \ - go-licenses save ./backend/src/crd/controller/viewer --save_path /tmp/NOTICES - -FROM alpine -WORKDIR /bin - -COPY --from=builder /bin/controller /bin/controller -RUN chmod +x /bin/controller - -# Copy licenses and notices. -COPY --from=builder /tmp/licenses.csv /third_party/licenses.csv -COPY --from=builder /tmp/NOTICES /third_party/NOTICES - -ENV MAX_NUM_VIEWERS "50" -ENV NAMESPACE "kubeflow" - -CMD /bin/controller -logtostderr=true -max_num_viewers=${MAX_NUM_VIEWERS} --namespace=${NAMESPACE} diff --git a/odh_images/Dockerfile.visualization b/odh_images/Dockerfile.visualization deleted file mode 100644 index f1e0d8d0d13a..000000000000 --- a/odh_images/Dockerfile.visualization +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright 2019-2021 The Kubeflow Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# This docker file starts server.py (located at src/apiserver/visualization) -# which accepts a post request that resolves to html that depicts a specified -# visualization. More details about this process can be found in the server.py -# and exporter.py files in the directory specified above. - -# This image should be in sync with image in backend/src/apiserver/visualization/update_requirements.sh. -FROM tensorflow/tensorflow:2.10.1 - -RUN apt-get update \ - && apt-get install -y wget curl tar openssl - -RUN curl https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz > /tmp/google-cloud-sdk.tar.gz -RUN mkdir -p /usr/local/gcloud -RUN tar -C /usr/local/gcloud -xf /tmp/google-cloud-sdk.tar.gz -RUN /usr/local/gcloud/google-cloud-sdk/install.sh -ENV PATH $PATH:/usr/local/gcloud/google-cloud-sdk/bin - -WORKDIR /src - -COPY backend/src/apiserver/visualization/requirements.txt /src - -RUN python3 -m pip install -r requirements.txt --no-cache-dir - -COPY backend/src/apiserver/visualization /src - -ENTRYPOINT [ "python3", "server.py" ]