c9262419fd
In [0] we added a build-arg for the deprecaeted --allow-priv option. This arg needs to be defined after the FROM line in the dockerfile. Note, other systems like podman can use the arg even before the FROM statement. Docker needs it after. [0] I2935d34ace08800c805028f1673bc515f2f577e6 story: 2005124 Change-Id: I34af2451e92962b835ac0f1a1e49dfcbfd477830 Signed-off-by: Spyros Trigazis <spyridon.trigazis@cern.ch>
26 lines
952 B
Docker
26 lines
952 B
Docker
ARG KUBE_VERSION=v1.13.0
|
|
FROM gcr.io/google-containers/kube-scheduler-amd64:${KUBE_VERSION}
|
|
ARG ADD_KUBE_ALLOW_PRIV=false
|
|
ENV container=docker
|
|
|
|
ENV NAME=kubernetes-scheduler VERSION=0.1 RELEASE=8 ARCH=x86_64
|
|
LABEL bzcomponent="$NAME" \
|
|
name="$FGC/$NAME" \
|
|
version="$VERSION" \
|
|
release="$RELEASE.$DISTTAG" \
|
|
architecture="$ARCH" \
|
|
atomic.type='system' \
|
|
maintainer="Jason Brooks <jbrooks@redhat.com>"
|
|
|
|
COPY launch.sh /usr/bin/kube-scheduler-docker.sh
|
|
|
|
COPY service.template config.json.template /exports/
|
|
|
|
COPY scheduler config /etc/kubernetes/
|
|
RUN [ "$ADD_KUBE_ALLOW_PRIV" = "true" ] && echo "KUBE_ALLOW_PRIV=\"--allow-privileged=false\"" >> /etc/kubernetes/config || true
|
|
RUN mkdir -p /exports/hostfs/etc/kubernetes && \
|
|
cp /etc/kubernetes/config /exports/hostfs/etc/kubernetes/ && \
|
|
cp /etc/kubernetes/scheduler /exports/hostfs/etc/kubernetes/
|
|
|
|
ENTRYPOINT ["/usr/bin/kube-scheduler-docker.sh"]
|