-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74 from CiscoDevNet/ccp-v3-api
Ccp v3 api
- Loading branch information
Showing
61 changed files
with
2,425 additions
and
1,560 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 |
---|---|---|
@@ -1,56 +1,43 @@ | ||
# Use an official Python runtime as a parent image | ||
FROM python:3.7-slim | ||
|
||
# Set ENV VARS | ||
ENV FLASK_ENV=development | ||
ENV PYTHONUNBUFFERED=0 | ||
ENV PLATFORM=linux | ||
ENV K8SVERSION=1.14.0 | ||
ENV KS_VERSION=0.13.1 | ||
ENV KF_VERSION=0.5.1 | ||
|
||
# Set the working directory to /app | ||
WORKDIR /app | ||
|
||
|
||
# Install for ssh-keygen | ||
RUN apt-get update && apt-get install -y \ | ||
curl \ | ||
wget \ | ||
openssh-client | ||
|
||
# Install needed executables | ||
RUN wget https://storage.googleapis.com/kubernetes-release/release/v${K8SVERSION}/bin/${PLATFORM}/amd64/kubectl | ||
RUN chmod +x ./kubectl | ||
RUN mv ./kubectl /usr/local/bin/ | ||
|
||
RUN wget https://github.com/ksonnet/ksonnet/releases/download/v${KS_VERSION}/ks_${KS_VERSION}_${PLATFORM}_amd64.tar.gz | ||
RUN tar -xvf ks_${KS_VERSION}_${PLATFORM}_amd64.tar.gz | ||
RUN rm ks_${KS_VERSION}_${PLATFORM}_amd64.tar.gz | ||
RUN chmod +x ks_${KS_VERSION}_${PLATFORM}_amd64/ks | ||
RUN mv ks_${KS_VERSION}_${PLATFORM}_amd64/ks /usr/local/bin/ | ||
RUN rm -rf ks_${KS_VERSION}_${PLATFORM}_amd64/ | ||
|
||
RUN wget https://github.com/kubeflow/kubeflow/releases/download/v${KF_VERSION}/kfctl_v${KF_VERSION}_${PLATFORM}.tar.gz | ||
RUN tar -xvf kfctl_v${KF_VERSION}_${PLATFORM}.tar.gz | ||
RUN rm kfctl_v${KF_VERSION}_${PLATFORM}.tar.gz | ||
RUN chmod +x ./kfctl | ||
RUN mv ./kfctl /usr/local/bin/ | ||
|
||
|
||
|
||
# Copy the current directory contents into the container at /app | ||
COPY . /app | ||
|
||
|
||
# Install any needed packages specified in requirements.txt | ||
RUN pip install --trusted-host pypi.python.org -r requirements.txt | ||
|
||
WORKDIR /app/mla_app_code | ||
RUN chmod +x helmInstall.sh | ||
RUN ./helmInstall.sh | ||
|
||
|
||
# Run amla_core_code.py when the container launches | ||
CMD python "./mla_core_code.py" | ||
|
||
# Use an official Python runtime as a parent image | ||
FROM python:3.7-slim | ||
|
||
# Set ENV VARS | ||
ENV FLASK_ENV=development | ||
ENV PYTHONUNBUFFERED=0 | ||
ENV PLATFORM=linux | ||
ENV K8SVERSION=1.14.0 | ||
|
||
# Set the working directory to /app | ||
WORKDIR /app | ||
|
||
|
||
# Install for ssh-keygen | ||
RUN apt-get update && apt-get install -y \ | ||
curl \ | ||
wget | ||
|
||
|
||
# Install kubectl | ||
RUN wget https://storage.googleapis.com/kubernetes-release/release/v${K8SVERSION}/bin/${PLATFORM}/amd64/kubectl | ||
RUN chmod +x ./kubectl | ||
RUN mv ./kubectl /usr/local/bin/ | ||
|
||
|
||
#Upgrade pip | ||
RUN pip install --upgrade pip | ||
|
||
|
||
# Copy the current directory contents into the container at /app | ||
COPY . /app | ||
|
||
|
||
# Install any needed packages specified in requirements.txt | ||
RUN pip install --trusted-host pypi.python.org -r requirements.txt | ||
|
||
|
||
WORKDIR /app/mla_app_code | ||
|
||
|
||
# Run amla_core_code.py when the container launches | ||
CMD python "./mla_core_code.py" | ||
|
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.