From: Yolanda Robla Date: Thu, 29 Aug 2019 10:52:37 +0000 (+0200) Subject: Add dockerfile to build an image with knictl X-Git-Tag: akraino_r2~27 X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=988a46e44800021bd3f75f540e7bc78e8fe37f99;p=kni%2Finstaller.git Add dockerfile to build an image with knictl In order to run it inside a pod, we need to have the knictl binary. Create an image that contains the latest version of it, ready to use. Signed-off-by: Yolanda Robla Change-Id: I5430699c041f7afc51b74040803e841b29adf608 --- diff --git a/images/Dockerfile b/images/Dockerfile new file mode 100644 index 0000000..d49c28a --- /dev/null +++ b/images/Dockerfile @@ -0,0 +1,14 @@ +FROM registry.redhat.io/rhel8/go-toolset +USER root +LABEL maintainer="Yolanda Robla " + +# install knictl +ENV GOPATH=$HOME/.. +RUN mkdir -p gerrit.akraino.org/kni +WORKDIR $HOME/gerrit.akraino.org/kni +RUN git clone https://gerrit.akraino.org/r/kni/installer +WORKDIR $HOME/gerrit.akraino.org/kni/installer +RUN make build +RUN chmod a+x knictl +RUN mv knictl /usr/local/bin/ +WORKDIR $HOME