chore: Remove pip requirements from docker files (#5064)
* Remove pip requirements from docker files * Fix consistency and failing builds * fixup arena requirements.txt * Update KFserving to 0.4.1 * Remove pip requirements from docker files * Fix consistency and failing builds * fixup arena requirements.txt * small fixup
This commit is contained in:
parent
03147b0dba
commit
fe18a296da
|
|
@ -12,7 +12,7 @@ FROM python:3.7 as compiler
|
||||||
RUN apt-get update -y && apt-get install --no-install-recommends -y -q default-jdk python3-setuptools python3-dev jq
|
RUN apt-get update -y && apt-get install --no-install-recommends -y -q default-jdk python3-setuptools python3-dev jq
|
||||||
RUN wget https://bootstrap.pypa.io/get-pip.py && python3 get-pip.py
|
RUN wget https://bootstrap.pypa.io/get-pip.py && python3 get-pip.py
|
||||||
COPY backend/requirements.txt .
|
COPY backend/requirements.txt .
|
||||||
RUN python3 -m pip install -r requirements.txt
|
RUN python3 -m pip install -r requirements.txt --no-cache-dir
|
||||||
|
|
||||||
# Downloading Argo CLI so that the samples are validated
|
# Downloading Argo CLI so that the samples are validated
|
||||||
#ADD https://github.com/argoproj/argo/releases/download/v2.7.5/argo-linux-amd64 /usr/local/bin/argo
|
#ADD https://github.com/argoproj/argo/releases/download/v2.7.5/argo-linux-amd64 /usr/local/bin/argo
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ WORKDIR /src
|
||||||
|
|
||||||
COPY backend/src/apiserver/visualization/requirements.txt /src
|
COPY backend/src/apiserver/visualization/requirements.txt /src
|
||||||
|
|
||||||
RUN pip3 install -r requirements.txt
|
RUN python3 -m pip install -r requirements.txt --no-cache-dir
|
||||||
|
|
||||||
COPY backend/src/apiserver/visualization /src
|
COPY backend/src/apiserver/visualization /src
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
requests
|
requests==2.18.4
|
||||||
six
|
six==1.11.0
|
||||||
pyyaml
|
pyyaml==3.12
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
wget patch \
|
wget patch \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
RUN pip install apache-beam[gcp]
|
COPY requirements.txt .
|
||||||
RUN pip install pandas
|
RUN python3 -m pip install -r \
|
||||||
|
requirements.txt --quiet --no-cache-dir \
|
||||||
|
&& rm -f requirements.txt
|
||||||
|
|
||||||
ADD build /ml
|
ADD build /ml
|
||||||
WORKDIR /ml
|
WORKDIR /ml
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
apache-beam[gcp]
|
||||||
|
pandas
|
||||||
|
|
@ -1,6 +1,9 @@
|
||||||
FROM python:3.6-slim
|
FROM python:3.6-slim
|
||||||
|
|
||||||
RUN pip install kubernetes Flask flask-cors requests
|
COPY requirements.txt .
|
||||||
|
RUN python3 -m pip install -r \
|
||||||
|
requirements.txt --quiet --no-cache-dir \
|
||||||
|
&& rm -f requirements.txt
|
||||||
|
|
||||||
ENV APP_HOME /app
|
ENV APP_HOME /app
|
||||||
COPY src $APP_HOME
|
COPY src $APP_HOME
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
kubernetes
|
||||||
|
Flask
|
||||||
|
flask-cors
|
||||||
|
requests
|
||||||
|
|
@ -1,6 +1,9 @@
|
||||||
FROM python:3.6-slim
|
FROM python:3.6-slim
|
||||||
|
|
||||||
RUN pip install boto3 ruamel.yaml requests
|
COPY requirements.txt .
|
||||||
|
RUN python3 -m pip install -r \
|
||||||
|
requirements.txt --quiet --no-cache-dir \
|
||||||
|
&& rm -f requirements.txt
|
||||||
|
|
||||||
ENV APP_HOME /app
|
ENV APP_HOME /app
|
||||||
COPY src $APP_HOME
|
COPY src $APP_HOME
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
boto3
|
||||||
|
ruamel.yaml
|
||||||
|
requests
|
||||||
|
|
@ -5,7 +5,10 @@ RUN mkdir /app
|
||||||
RUN mkdir /app/secrets
|
RUN mkdir /app/secrets
|
||||||
|
|
||||||
# Watson studio and machine learning python client
|
# Watson studio and machine learning python client
|
||||||
RUN pip install watson-machine-learning-client-V4>=1.0.110 minio
|
COPY requirements.txt .
|
||||||
|
RUN python3 -m pip install -r \
|
||||||
|
requirements.txt --quiet --no-cache-dir \
|
||||||
|
&& rm -f requirements.txt
|
||||||
|
|
||||||
# Python functions with endpoints to Watson Machine Learning
|
# Python functions with endpoints to Watson Machine Learning
|
||||||
COPY src/wml-deploy.py /app
|
COPY src/wml-deploy.py /app
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
watson-machine-learning-client-V4>=1.0.110
|
||||||
|
minio
|
||||||
|
|
@ -5,7 +5,10 @@ RUN mkdir /app
|
||||||
RUN mkdir /app/secrets
|
RUN mkdir /app/secrets
|
||||||
|
|
||||||
# Watson studio and machine learning python client
|
# Watson studio and machine learning python client
|
||||||
RUN pip install watson-machine-learning-client-V4>=1.0.110 minio
|
COPY requirements.txt .
|
||||||
|
RUN python3 -m pip install -r \
|
||||||
|
requirements.txt --quiet --no-cache-dir \
|
||||||
|
&& rm -f requirements.txt
|
||||||
|
|
||||||
# Python functions with endpoints to Watson Machine Learning
|
# Python functions with endpoints to Watson Machine Learning
|
||||||
COPY src/wml-store.py /app
|
COPY src/wml-store.py /app
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
watson-machine-learning-client-V4>=1.0.110
|
||||||
|
minio
|
||||||
|
|
@ -5,7 +5,10 @@ RUN mkdir /app
|
||||||
RUN mkdir /app/secrets
|
RUN mkdir /app/secrets
|
||||||
|
|
||||||
# Watson studio and machine learning python client
|
# Watson studio and machine learning python client
|
||||||
RUN pip install watson-machine-learning-client-V4>=1.0.110 minio
|
COPY requirements.txt .
|
||||||
|
RUN python3 -m pip install -r \
|
||||||
|
requirements.txt --quiet --no-cache-dir \
|
||||||
|
&& rm -f requirements.txt
|
||||||
|
|
||||||
# Python functions with endpoints to Watson Machine Learning
|
# Python functions with endpoints to Watson Machine Learning
|
||||||
COPY src/wml-train.py /app
|
COPY src/wml-train.py /app
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
watson-machine-learning-client-V4>=1.0.110
|
||||||
|
minio
|
||||||
|
|
@ -15,9 +15,10 @@
|
||||||
ARG TF_TAG
|
ARG TF_TAG
|
||||||
FROM tensorflow/tensorflow:$TF_TAG
|
FROM tensorflow/tensorflow:$TF_TAG
|
||||||
|
|
||||||
RUN pip install pyyaml==3.12 six==1.11.0 \
|
COPY requirements.txt .
|
||||||
tensorflow-transform==0.23.0 \
|
RUN python3 -m pip install -r \
|
||||||
tensorflow-model-analysis==0.23.0
|
requirements.txt --quiet --no-cache-dir \
|
||||||
|
&& rm -f requirements.txt
|
||||||
|
|
||||||
ADD build /ml
|
ADD build /ml
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
pyyaml==3.12
|
||||||
|
six==1.11.0
|
||||||
|
tensorflow-transform==0.23.0
|
||||||
|
tensorflow-model-analysis==0.23.0
|
||||||
|
|
@ -1,6 +1,9 @@
|
||||||
FROM python:3.6-slim
|
FROM python:3.6-slim
|
||||||
|
|
||||||
RUN pip3 install kubernetes==10.0.1 kfserving==0.4.1 requests==2.22.0 Flask==1.1.1 flask-cors==3.0.8
|
COPY requirements.txt .
|
||||||
|
RUN python3 -m pip install -r \
|
||||||
|
requirements.txt --quiet --no-cache-dir \
|
||||||
|
&& rm -f requirements.txt
|
||||||
|
|
||||||
ENV APP_HOME /app
|
ENV APP_HOME /app
|
||||||
COPY src $APP_HOME
|
COPY src $APP_HOME
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
kubernetes==10.0.1
|
||||||
|
kfserving==0.4.1
|
||||||
|
requests==2.22.0
|
||||||
|
Flask==1.1.1
|
||||||
|
flask-cors==3.0.8
|
||||||
|
|
@ -14,7 +14,10 @@
|
||||||
|
|
||||||
FROM python:3.6
|
FROM python:3.6
|
||||||
|
|
||||||
RUN pip install --no-cache-dir pyyaml kubernetes
|
COPY requirements.txt .
|
||||||
|
RUN python3 -m pip install -r \
|
||||||
|
requirements.txt --quiet --no-cache-dir \
|
||||||
|
&& rm -f requirements.txt
|
||||||
|
|
||||||
ADD build /ml
|
ADD build /ml
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
pyyaml
|
||||||
|
kubernetes
|
||||||
|
|
@ -14,9 +14,9 @@
|
||||||
|
|
||||||
FROM python:3.7
|
FROM python:3.7
|
||||||
|
|
||||||
RUN pip install --no-cache-dir pandas==0.24.2
|
COPY requirements.txt .
|
||||||
RUN pip install --no-cache-dir scikit-learn==0.21.2
|
RUN python3 -m pip install -r \
|
||||||
RUN pip install --no-cache-dir scipy==1.4.1
|
requirements.txt --quiet --no-cache-dir \
|
||||||
RUN pip install --no-cache-dir tensorflow==2.2.0
|
&& rm -f requirements.txt
|
||||||
|
|
||||||
ADD build /ml
|
ADD build /ml
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
pandas==0.24.2
|
||||||
|
scikit-learn==0.21.2
|
||||||
|
scipy==1.4.1
|
||||||
|
tensorflow==2.2.0
|
||||||
|
|
@ -12,6 +12,9 @@
|
||||||
|
|
||||||
FROM python:3.7
|
FROM python:3.7
|
||||||
|
|
||||||
RUN python3 -m pip install pyhive[presto]
|
COPY requirements.txt .
|
||||||
|
RUN python3 -m pip install -r \
|
||||||
|
requirements.txt --quiet --no-cache-dir \
|
||||||
|
&& rm -f requirements.txt
|
||||||
|
|
||||||
COPY ./src /pipelines/component/src
|
COPY ./src /pipelines/component/src
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
pyhive[presto]
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
ARG BASE_IMAGE_TAG=1.12.0-py3
|
ARG BASE_IMAGE_TAG=1.12.0-py3
|
||||||
FROM tensorflow/tensorflow:$BASE_IMAGE_TAG
|
FROM tensorflow/tensorflow:$BASE_IMAGE_TAG
|
||||||
RUN python3 -m pip install keras
|
COPY requirements.txt .
|
||||||
|
RUN python3 -m pip install -r \
|
||||||
|
requirements.txt --quiet --no-cache-dir \
|
||||||
|
&& rm -f requirements.txt
|
||||||
COPY ./src /pipelines/component/src
|
COPY ./src /pipelines/component/src
|
||||||
ENTRYPOINT python3 /pipelines/component/src/train.py
|
ENTRYPOINT python3 /pipelines/component/src/train.py
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
keras
|
||||||
|
|
@ -16,7 +16,10 @@
|
||||||
FROM gcr.io/inverting-proxy/agent@sha256:2e3c5ecd1a55b32056f3ce0c4aaac05e31b85c361d501bf3f8a81bec14c4fe87
|
FROM gcr.io/inverting-proxy/agent@sha256:2e3c5ecd1a55b32056f3ce0c4aaac05e31b85c361d501bf3f8a81bec14c4fe87
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y curl jq python-pip
|
RUN apt-get update && apt-get install -y curl jq python-pip
|
||||||
RUN pip install requests
|
COPY requirements.txt .
|
||||||
|
RUN python2 -m pip install -r \
|
||||||
|
requirements.txt --quiet --no-cache-dir \
|
||||||
|
&& rm -f requirements.txt
|
||||||
|
|
||||||
# Install gcloud SDK
|
# Install gcloud SDK
|
||||||
RUN curl https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz > /tmp/google-cloud-sdk.tar.gz
|
RUN curl https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz > /tmp/google-cloud-sdk.tar.gz
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
requests
|
||||||
|
|
@ -14,7 +14,11 @@
|
||||||
|
|
||||||
FROM nvcr.io/nvidia/tensorflow:19.03-py3
|
FROM nvcr.io/nvidia/tensorflow:19.03-py3
|
||||||
|
|
||||||
RUN pip install keras
|
COPY requirements.txt .
|
||||||
|
RUN python3 -m pip install -r \
|
||||||
|
requirements.txt --quiet --no-cache-dir \
|
||||||
|
&& rm -f requirements.txt
|
||||||
|
|
||||||
ADD src /workspace
|
ADD src /workspace
|
||||||
WORKDIR /workspace
|
WORKDIR /workspace
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
keras
|
||||||
|
|
@ -14,7 +14,11 @@
|
||||||
|
|
||||||
FROM nvcr.io/nvidia/tensorflow:19.03-py3
|
FROM nvcr.io/nvidia/tensorflow:19.03-py3
|
||||||
|
|
||||||
RUN pip install keras
|
COPY requirements.txt .
|
||||||
|
RUN python3 -m pip install -r \
|
||||||
|
requirements.txt --quiet --no-cache-dir \
|
||||||
|
&& rm -f requirements.txt
|
||||||
|
|
||||||
ADD src /workspace
|
ADD src /workspace
|
||||||
WORKDIR /workspace
|
WORKDIR /workspace
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
keras
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
FROM python:3.7
|
FROM python:3.7
|
||||||
ENV KAGGLE_USERNAME=[YOUR KAGGLE USERNAME] \
|
ENV KAGGLE_USERNAME=[YOUR KAGGLE USERNAME] \
|
||||||
KAGGLE_KEY=[YOUR KAGGLE KEY]
|
KAGGLE_KEY=[YOUR KAGGLE KEY]
|
||||||
RUN pip install kaggle
|
COPY requirements.txt .
|
||||||
RUN pip install google-cloud-storage
|
RUN python3 -m pip install -r \
|
||||||
|
requirements.txt --quiet --no-cache-dir \
|
||||||
|
&& rm -f requirements.txt
|
||||||
COPY ./download_data.py .
|
COPY ./download_data.py .
|
||||||
CMD ["python", "download_data.py"]
|
CMD ["python", "download_data.py"]
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
kaggle
|
||||||
|
google-cloud-storage
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
FROM python:3.7
|
FROM python:3.7
|
||||||
ENV KAGGLE_USERNAME=[YOUR KAGGLE USERNAME] \
|
ENV KAGGLE_USERNAME=[YOUR KAGGLE USERNAME] \
|
||||||
KAGGLE_KEY=[YOUR KAGGLE KEY]
|
KAGGLE_KEY=[YOUR KAGGLE KEY]
|
||||||
RUN pip install kaggle
|
COPY requirements.txt .
|
||||||
RUN pip install gcsfs
|
RUN python3 -m pip install -r \
|
||||||
|
requirements.txt --quiet --no-cache-dir \
|
||||||
|
&& rm -f requirements.txt
|
||||||
COPY ./submit_result.py .
|
COPY ./submit_result.py .
|
||||||
CMD ["python", "submit_result.py"]
|
CMD ["python", "submit_result.py"]
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
kaggle
|
||||||
|
gcsfs
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
FROM python:3.7
|
FROM python:3.7
|
||||||
COPY ./train.py .
|
COPY ./train.py .
|
||||||
RUN pip install pandas==0.25.1
|
COPY requirements.txt .
|
||||||
RUN pip install gcsfs numpy matplotlib seaborn sklearn
|
RUN python3 -m pip install -r \
|
||||||
|
requirements.txt --quiet --no-cache-dir \
|
||||||
|
&& rm -f requirements.txt
|
||||||
CMD ["python", "train.py"]
|
CMD ["python", "train.py"]
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
pandas==0.25.1
|
||||||
|
gcsfs
|
||||||
|
numpy
|
||||||
|
matplotlib
|
||||||
|
seaborn
|
||||||
|
sklearn
|
||||||
|
|
@ -1,4 +1,7 @@
|
||||||
FROM tensorflow/tensorflow:2.0.0-py3
|
FROM tensorflow/tensorflow:2.0.0-py3
|
||||||
RUN pip install gcsfs pandas matplotlib seaborn
|
COPY requirements.txt .
|
||||||
|
RUN python3 -m pip install -r \
|
||||||
|
requirements.txt --quiet --no-cache-dir \
|
||||||
|
&& rm -f requirements.txt
|
||||||
COPY ./visualize.py .
|
COPY ./visualize.py .
|
||||||
CMD ["python", 'visualize.py']
|
CMD ["python", 'visualize.py']
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
gcsfs
|
||||||
|
pandas
|
||||||
|
matplotlib
|
||||||
|
seaborn
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
FROM python:3.7
|
FROM python:3.7
|
||||||
RUN pip install gcsfs
|
COPY requirements.txt .
|
||||||
RUN pip install pandas
|
RUN python3 -m pip install -r \
|
||||||
|
requirements.txt --quiet --no-cache-dir \
|
||||||
|
&& rm -f requirements.txt
|
||||||
COPY ./visualize.py .
|
COPY ./visualize.py .
|
||||||
CMD ["python", 'visualize.py']
|
CMD ["python", 'visualize.py']
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
gcsfs
|
||||||
|
pandas
|
||||||
Loading…
Reference in New Issue