Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
siaimes authored Oct 13, 2022
1 parent 692344b commit 0e3c441
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
FROM nginx AS builder

RUN apt update && apt install wget

RUN mkdir -p /usr/share/nginx/html/k8s-share/containernetworking/plugins/releases/download/v0.8.1
RUN curl https://github.com/containernetworking/plugins/releases/download/v0.8.1/cni-plugins-linux-amd64-v0.8.1.tgz \
-o /usr/share/nginx/html/k8s-share/containernetworking/plugins/releases/download/v0.8.1/cni-plugins-linux-amd64-v0.8.1.tgz
RUN wget https://github.com/containernetworking/plugins/releases/download/v0.8.1/cni-plugins-linux-amd64-v0.8.1.tgz \
-O /usr/share/nginx/html/k8s-share/containernetworking/plugins/releases/download/v0.8.1/cni-plugins-linux-amd64-v0.8.1.tgz

RUN mkdir -p /usr/share/nginx/html/k8s-share/kubernetes-release/release/v1.15.11/bin/linux/amd64
RUN curl https://storage.googleapis.com/kubernetes-release/release/v1.15.11/bin/linux/amd64/hyperkube \
-o /usr/share/nginx/html/k8s-share/kubernetes-release/release/v1.15.11/bin/linux/amd64/hyperkube
RUN curl https://storage.googleapis.com/kubernetes-release/release/v1.15.11/bin/linux/amd64/kubeadm \
-o /usr/share/nginx/html/k8s-share/kubernetes-release/release/v1.15.11/bin/linux/amd64/kubeadm
RUN wget https://storage.googleapis.com/kubernetes-release/release/v1.15.11/bin/linux/amd64/hyperkube \
-O /usr/share/nginx/html/k8s-share/kubernetes-release/release/v1.15.11/bin/linux/amd64/hyperkube
RUN wget https://storage.googleapis.com/kubernetes-release/release/v1.15.11/bin/linux/amd64/kubeadm \
-O /usr/share/nginx/html/k8s-share/kubernetes-release/release/v1.15.11/bin/linux/amd64/kubeadm

RUN mkdir -p /usr/share/nginx/html/k8s-share/projectcalico/calicoctl/releases/download/v3.7.3
RUN curl https://github.com/projectcalico/calicoctl/releases/download/v3.7.3/calicoctl-linux-amd64 \
-o /usr/share/nginx/html/k8s-share/projectcalico/calicoctl/releases/download/v3.7.3/calicoctl-linux-amd64
RUN wget https://github.com/projectcalico/calicoctl/releases/download/v3.7.3/calicoctl-linux-amd64 \
-O /usr/share/nginx/html/k8s-share/projectcalico/calicoctl/releases/download/v3.7.3/calicoctl-linux-amd64

RUN mkdir -p /usr/share/nginx/html/k8s-share/NVIDIA/k8s-device-plugin/1.0.0-beta4
RUN curl https://raw.githubusercontent.com/NVIDIA/k8s-device-plugin/1.0.0-beta4/nvidia-device-plugin.yml \
-o /usr/share/nginx/html/k8s-share/NVIDIA/k8s-device-plugin/1.0.0-beta4/nvidia-device-plugin.yml
RUN wget https://raw.githubusercontent.com/NVIDIA/k8s-device-plugin/1.0.0-beta4/nvidia-device-plugin.yml \
-O /usr/share/nginx/html/k8s-share/NVIDIA/k8s-device-plugin/1.0.0-beta4/nvidia-device-plugin.yml

FROM nginx

Expand Down

0 comments on commit 0e3c441

Please sign in to comment.