Skip to content

Commit

Permalink
Switch to UBI image
Browse files Browse the repository at this point in the history
  • Loading branch information
jbusche committed Jun 15, 2022
1 parent e03a34a commit 5d10fad
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 17 deletions.
17 changes: 8 additions & 9 deletions component-samples/create-secret/Dockerfile
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
2 changes: 1 addition & 1 deletion component-samples/dax-to-dlf/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.7-slim
FROM registry.access.redhat.com/ubi8/python-38

RUN pip3 install PyYaml exchange-metadata-converter==0.0.9

Expand Down
2 changes: 1 addition & 1 deletion component-samples/dlf/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.6-slim
FROM registry.access.redhat.com/ubi8/python-38

RUN pip3 install kubernetes==10.0.1 requests==2.22.0

Expand Down
2 changes: 1 addition & 1 deletion component-samples/kube-model-deployment/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.6-slim
FROM registry.access.redhat.com/ubi8/python-38

RUN pip install kubernetes Flask flask-cors requests

Expand Down
6 changes: 1 addition & 5 deletions component-samples/model-config/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
FROM python:3.6-slim

RUN apt-get update
RUN apt-get install -y curl gnupg
RUN apt-get install -y apt-transport-https
FROM registry.access.redhat.com/ubi8/python-38

RUN pip install kubernetes Flask flask-cors requests ruamel.yaml

Expand Down

0 comments on commit 5d10fad

Please sign in to comment.