5cf0b2327c
This adds Ansible playbooks to install kubernetes using minikube and then assert that airshipctl is able to communicate with the cluster. Change-Id: Ice5cf3de8d9192d508c79c68caf8f5a61896da9c Signed-off-by: Pete Birley <pete@port.direct>
23 lines
593 B
Docker
23 lines
593 B
Docker
ARG GO_IMAGE=docker.io/golang:1.12.6-stretch
|
|
ARG RELEASE_IMAGE=scratch
|
|
FROM ${GO_IMAGE} as builder
|
|
|
|
SHELL [ "/bin/bash", "-cex" ]
|
|
ADD . /usr/src/airshipctl
|
|
WORKDIR /usr/src/airshipctl
|
|
ENV GO111MODULE=on
|
|
|
|
RUN make get-modules
|
|
|
|
ARG MAKE_TARGET=build
|
|
RUN make ${MAKE_TARGET} && \
|
|
if [[ "${MAKE_TARGET}" == 'lint' ]]; then \
|
|
mkdir -p /usr/src/airshipctl/bin; \
|
|
touch /usr/src/airshipctl/bin/airshipctl; \
|
|
fi
|
|
|
|
FROM ${RELEASE_IMAGE} as release
|
|
COPY --from=builder /usr/src/airshipctl/bin/airshipctl /usr/local/bin/airshipctl
|
|
USER 65534
|
|
ENTRYPOINT [ "/usr/local/bin/airshipctl" ]
|