From 41cff7343f5cf765ec3f3ab25c5679657d0cb2d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Henning?= <soeren.henning@email.uni-kiel.de> Date: Tue, 2 Mar 2021 17:00:27 +0100 Subject: [PATCH] Restructure Dockerfile --- .../infrastructure/random-scheduler/Dockerfile | 15 +++++---------- .../infrastructure/random-scheduler/README.md | 2 +- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/execution/infrastructure/random-scheduler/Dockerfile b/execution/infrastructure/random-scheduler/Dockerfile index 9619d0bac..9798aef96 100644 --- a/execution/infrastructure/random-scheduler/Dockerfile +++ b/execution/infrastructure/random-scheduler/Dockerfile @@ -1,15 +1,10 @@ FROM alpine:3.12 -RUN apk update - -RUN apk add curl jq bash - -RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl - -RUN chmod +x ./kubectl - -RUN mv ./kubectl /usr/local/bin/kubectl +RUN apk update && apk add curl jq bash +RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl \ + && chmod +x ./kubectl \ + && mv ./kubectl /usr/local/bin/kubectl ADD schedule.sh /bin/schedule -CMD /bin/schedule \ No newline at end of file +CMD /bin/schedule diff --git a/execution/infrastructure/random-scheduler/README.md b/execution/infrastructure/random-scheduler/README.md index cc30cf095..2d8da30a3 100644 --- a/execution/infrastructure/random-scheduler/README.md +++ b/execution/infrastructure/random-scheduler/README.md @@ -1,5 +1,5 @@ # Theodolite Random Scheduler -This directory contains the theodolite random scheduler that schedules pods on random nodes. +This directory contains the Theodolite Random Scheduler that schedules pods on random nodes. ## Build and Push Run the following commands -- GitLab