Я хочу собрать kubeflow из исходного кода и развернуть его в контейнере.
Здесь я использовал инструкции по установке: https://www.kubeflow.org/docs/started/getting-started/
Мой получившийся контейнер докера выглядит следующим образом:
FROM ubuntu:16.04
ARG DOCKER_HOST=tcp://localhost:2375
RUN apt-get update
RUN apt-get install sudo
RUN sudo apt-get install -y curl gnupg apt-transport-https ca-certificates software-properties-common curl git bash make python wget autoconf
COPY . /usr/src/app
WORKDIR /usr/src/app
RUN ls
RUN wget https://dl.google.com/go/go1.11.1.linux-amd64.tar.gz && tar xvfz go1.11.1.linux-amd64.tar.gz && sudo chown -R root:root ./go && sudo mv go /usr/local && . env/.profile && . env/.bash_profile
RUN cd .. && chmod -R +x app && cd app
RUN make && sudo make install
RUN bash
RUN ./scripts/kfctl.sh init kfapp_config --platform none
RUN ./scripts/kfctl.sh generate k8s
RUN ./scripts/kfctl.sh apply k8s
Все работает, кроме части «RUN make && sudo make install».Сбой при:
(...)
Boilerplate header is wrong for: /usr/src/app/bootstrap/cmd/bootstrap/app/options/options.go
Boilerplate header is wrong for: /usr/src/app/bootstrap/version/version.go
Makefile:17: recipe for target 'presubmit' failed
make: *** [presubmit] Error 1
The command '/bin/sh -c make && sudo make install' returned a non-zero code: 2
ERROR: Job failed: error executing remote command: command terminated with non-zero exit code: Error executing in Docker Container: 1
Если я пропущу создание источника, я столкнусь со следующей ошибкой в части "RUN ./scripts/kfctl.sh init kfapp_config --platform none":
(...)
+ check_install ks
+ which ks
+ echo 'You don'\''t have ks installed. Please install ks.'
You don't have ks installed. Please install ks.
+ exit 1
The command '/bin/sh -c ./scripts/kfctl.sh init kfapp_config --platform none' returned a non-zero code: 1
ERROR: Job failed: error executing remote command: command terminated with non-zero exit code: Error executing in Docker Container: 1
У кого-нибудь есть идеи, как решить эту проблему?
Большое спасибо:)