
This adds Zuul configuration for CI gates and Ansible playbooks describing the tasks those gates should perform. It also adds a Dockerfile and several related Makefile targets to create a repeatable environment for both developers and CI gates. Change-Id: Icb4541dc1fd9d80c706c9bdc6fad12c049af809b
19 lines
507 B
Docker
19 lines
507 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/kubernetes-entrypoint
|
|
WORKDIR /usr/src/kubernetes-entrypoint
|
|
ENV GO111MODULE=on
|
|
|
|
RUN make get-modules
|
|
|
|
ARG MAKE_TARGET=build
|
|
RUN make ${MAKE_TARGET}
|
|
|
|
FROM ${RELEASE_IMAGE} as release
|
|
COPY --from=builder /usr/src/kubernetes-entrypoint/bin/kubernetes-entrypoint /usr/local/bin/kubernetes-entrypoint
|
|
USER 65534
|
|
ENTRYPOINT [ "/usr/local/bin/kubernetes-entrypoint" ]
|