-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
12 additions
and
17 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,16 +1,15 @@ | ||
FROM python:3.6-slim | ||
FROM registry.access.redhat.com/ubi8/python-38 | ||
|
||
# Directories for model codes and secrets | ||
USER root | ||
RUN mkdir /app | ||
|
||
# Install curl and kubectl | ||
RUN apt-get update | ||
RUN apt-get install -y curl gnupg | ||
RUN apt-get install -y apt-transport-https | ||
RUN curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - | ||
RUN echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | tee -a /etc/apt/sources.list.d/kubernetes.list | ||
RUN apt-get update | ||
RUN apt-get install -y kubectl | ||
# Install kubectl | ||
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" | ||
RUN curl -LO "https://dl.k8s.io/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl.sha256" | ||
RUN echo "$(cat kubectl.sha256) kubectl" | sha256sum --check | ||
RUN install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl | ||
|
||
USER default | ||
# Directory for secrets | ||
COPY src/config.py /app |
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