From 988a46e44800021bd3f75f540e7bc78e8fe37f99 Mon Sep 17 00:00:00 2001 From: Yolanda Robla Date: Thu, 29 Aug 2019 12:52:37 +0200 Subject: [PATCH] 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 --- images/Dockerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 images/Dockerfile 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 -- 2.16.6