-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: kpango <[email protected]>
- Loading branch information
Showing
19 changed files
with
194 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,15 +15,13 @@ | |
# limitations under the License. | ||
# | ||
|
||
ARG GO_VERSION=latest | ||
# ARG DISTROLESS_IMAGE=gcr.io/distroless/static | ||
# ARG DISTROLESS_IMAGE_TAG=nonroot | ||
ARG MAINTAINER="vdaas.org vald team <[email protected]>" | ||
|
||
FROM --platform=${BUILDPLATFORM} golang:${GO_VERSION} AS golang | ||
|
||
FROM --platform=${BUILDPLATFORM} ubuntu:devel AS builder | ||
|
||
ARG GO_VERSION | ||
ARG TARGETARCH | ||
ARG TARGETOS | ||
|
||
|
@@ -55,8 +53,16 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ | |
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY --from=golang /usr/local/go $GOROOT | ||
RUN mkdir -p "$GOPATH/src" | ||
WORKDIR /opt | ||
RUN set -x && cd "$(mktemp -d)" \ | ||
&& BIN_NAME="go" \ | ||
&& TAR_NAME="${BIN_NAME}${GO_VERSION}.${TARGETOS}-${TARGETARCH}.tar.gz" \ | ||
&& curl -fsSLO "https://go.dev/dl/${TAR_NAME}" \ | ||
&& tar zxf "${TAR_NAME}" \ | ||
&& rm "${TAR_NAME}" \ | ||
&& mv ${BIN_NAME} ${GOROOT} \ | ||
&& ${BIN_NAME} version \ | ||
&& mkdir -p "${GOPATH}/src" | ||
|
||
WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO}/Makefile.d | ||
COPY Makefile.d . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,17 +15,15 @@ | |
# limitations under the License. | ||
# | ||
|
||
ARG GO_VERSION=latest | ||
ARG DISTROLESS_IMAGE=gcr.io/distroless/static | ||
ARG DISTROLESS_IMAGE_TAG=nonroot | ||
ARG MAINTAINER="vdaas.org vald team <[email protected]>" | ||
|
||
FROM --platform=${BUILDPLATFORM} golang:${GO_VERSION} AS golang | ||
|
||
FROM --platform=${BUILDPLATFORM} ubuntu:devel AS builder | ||
|
||
ARG TARGETARCH | ||
ARG TARGETOS | ||
ARG GO_VERSION | ||
|
||
ENV GO111MODULE on | ||
ENV DEBIAN_FRONTEND noninteractive | ||
|
@@ -57,8 +55,16 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ | |
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY --from=golang /usr/local/go $GOROOT | ||
RUN mkdir -p "$GOPATH/src" | ||
WORKDIR /opt | ||
RUN set -x && cd "$(mktemp -d)" \ | ||
&& BIN_NAME="go" \ | ||
&& TAR_NAME="${BIN_NAME}${GO_VERSION}.${TARGETOS}-${TARGETARCH}.tar.gz" \ | ||
&& curl -fsSLO "https://go.dev/dl/${TAR_NAME}" \ | ||
&& tar zxf "${TAR_NAME}" \ | ||
&& rm "${TAR_NAME}" \ | ||
&& mv ${BIN_NAME} ${GOROOT} \ | ||
&& ${BIN_NAME} version \ | ||
&& mkdir -p "${GOPATH}/src" | ||
|
||
WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO}/Makefile.d | ||
COPY Makefile.d . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,15 +15,13 @@ | |
# limitations under the License. | ||
# | ||
|
||
ARG GO_VERSION=latest | ||
ARG DISTROLESS_IMAGE=gcr.io/distroless/static | ||
ARG DISTROLESS_IMAGE_TAG=nonroot | ||
ARG MAINTAINER="vdaas.org vald team <[email protected]>" | ||
|
||
FROM --platform=${BUILDPLATFORM} golang:${GO_VERSION} AS golang | ||
|
||
FROM --platform=${BUILDPLATFORM} ubuntu:devel AS builder | ||
|
||
ARG GO_VERSION | ||
ARG TARGETARCH | ||
ARG TARGETOS | ||
|
||
|
@@ -50,8 +48,16 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ | |
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY --from=golang /usr/local/go $GOROOT | ||
RUN mkdir -p "$GOPATH/src" | ||
WORKDIR /opt | ||
RUN set -x && cd "$(mktemp -d)" \ | ||
&& BIN_NAME="go" \ | ||
&& TAR_NAME="${BIN_NAME}${GO_VERSION}.${TARGETOS}-${TARGETARCH}.tar.gz" \ | ||
&& curl -fsSLO "https://go.dev/dl/${TAR_NAME}" \ | ||
&& tar zxf "${TAR_NAME}" \ | ||
&& rm "${TAR_NAME}" \ | ||
&& mv ${BIN_NAME} ${GOROOT} \ | ||
&& ${BIN_NAME} version \ | ||
&& mkdir -p "${GOPATH}/src" | ||
|
||
WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO}/Makefile.d | ||
COPY Makefile.d . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,14 +15,12 @@ | |
# limitations under the License. | ||
# | ||
|
||
ARG GO_VERSION=latest | ||
ARG MAINTAINER="vdaas.org vald team <[email protected]>" | ||
|
||
FROM --platform=${BUILDPLATFORM} golang:${GO_VERSION} AS golang | ||
|
||
FROM --platform=${BUILDPLATFORM} ubuntu:devel AS builder | ||
LABEL maintainer="${MAINTAINER}" | ||
|
||
ARG GO_VERSION | ||
ARG TARGETARCH | ||
ARG TARGETOS | ||
|
||
|
@@ -34,10 +32,6 @@ ENV GOROOT /opt/go | |
ENV GOPATH /go | ||
ENV PATH ${PATH}:${GOROOT}/bin:${GOPATH}/bin:/usr/local/bin | ||
|
||
COPY --from=golang /usr/local/go $GOROOT | ||
RUN mkdir -p $GOPATH/src | ||
|
||
|
||
RUN sysctl -w net.ipv6.conf.all.disable_ipv6=1 \ | ||
&& sysctl -w net.ipv6.conf.default.disable_ipv6=1 \ | ||
&& sysctl -w net.ipv6.conf.lo.disable_ipv6=1 | ||
|
@@ -68,6 +62,17 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ | |
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /opt | ||
RUN set -x && cd "$(mktemp -d)" \ | ||
&& BIN_NAME="go" \ | ||
&& TAR_NAME="${BIN_NAME}${GO_VERSION}.${TARGETOS}-${TARGETARCH}.tar.gz" \ | ||
&& curl -fsSLO "https://go.dev/dl/${TAR_NAME}" \ | ||
&& tar zxf "${TAR_NAME}" \ | ||
&& rm "${TAR_NAME}" \ | ||
&& mv ${BIN_NAME} ${GOROOT} \ | ||
&& ${BIN_NAME} version \ | ||
&& mkdir -p "${GOPATH}/src" | ||
|
||
WORKDIR ${GOPATH}/src/github.com/vdaas/vald | ||
|
||
ENV ROOTDIR . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,15 +15,13 @@ | |
# limitations under the License. | ||
# | ||
|
||
ARG GO_VERSION=latest | ||
ARG DISTROLESS_IMAGE=gcr.io/distroless/static | ||
ARG DISTROLESS_IMAGE_TAG=nonroot | ||
ARG MAINTAINER="vdaas.org vald team <[email protected]>" | ||
|
||
FROM --platform=${BUILDPLATFORM} golang:${GO_VERSION} AS golang | ||
|
||
FROM --platform=${BUILDPLATFORM} ubuntu:devel AS builder | ||
|
||
ARG GO_VERSION | ||
ARG TARGETARCH | ||
ARG TARGETOS | ||
|
||
|
@@ -50,8 +48,16 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ | |
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY --from=golang /usr/local/go $GOROOT | ||
RUN mkdir -p "$GOPATH/src" | ||
WORKDIR /opt | ||
RUN set -x && cd "$(mktemp -d)" \ | ||
&& BIN_NAME="go" \ | ||
&& TAR_NAME="${BIN_NAME}${GO_VERSION}.${TARGETOS}-${TARGETARCH}.tar.gz" \ | ||
&& curl -fsSLO "https://go.dev/dl/${TAR_NAME}" \ | ||
&& tar zxf "${TAR_NAME}" \ | ||
&& rm "${TAR_NAME}" \ | ||
&& mv ${BIN_NAME} ${GOROOT} \ | ||
&& ${BIN_NAME} version \ | ||
&& mkdir -p "${GOPATH}/src" | ||
|
||
WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO}/Makefile.d | ||
COPY Makefile.d . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,8 +20,6 @@ ARG DISTROLESS_IMAGE=gcr.io/distroless/static | |
ARG DISTROLESS_IMAGE_TAG=nonroot | ||
ARG MAINTAINER="vdaas.org vald team <[email protected]>" | ||
|
||
FROM --platform=${BUILDPLATFORM} golang:${GO_VERSION} AS golang | ||
|
||
FROM --platform=${BUILDPLATFORM} ubuntu:devel AS builder | ||
|
||
ARG TARGETARCH | ||
|
@@ -49,8 +47,16 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ | |
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY --from=golang /usr/local/go $GOROOT | ||
RUN mkdir -p "$GOPATH/src" | ||
WORKDIR /opt | ||
RUN set -x && cd "$(mktemp -d)" \ | ||
&& BIN_NAME="go" \ | ||
&& TAR_NAME="${BIN_NAME}${GO_VERSION}.${TARGETOS}-${TARGETARCH}.tar.gz" \ | ||
&& curl -fsSLO "https://go.dev/dl/${TAR_NAME}" \ | ||
&& tar zxf "${TAR_NAME}" \ | ||
&& rm "${TAR_NAME}" \ | ||
&& mv ${BIN_NAME} ${GOROOT} \ | ||
&& ${BIN_NAME} version \ | ||
&& mkdir -p "${GOPATH}/src" | ||
|
||
WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO}/Makefile.d | ||
COPY Makefile.d . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,15 +15,13 @@ | |
# limitations under the License. | ||
# | ||
|
||
ARG GO_VERSION=latest | ||
ARG DISTROLESS_IMAGE=gcr.io/distroless/static | ||
ARG DISTROLESS_IMAGE_TAG=nonroot | ||
ARG MAINTAINER="vdaas.org vald team <[email protected]>" | ||
|
||
FROM --platform=${BUILDPLATFORM} golang:${GO_VERSION} AS golang | ||
|
||
FROM --platform=${BUILDPLATFORM} ubuntu:devel AS builder | ||
|
||
ARG GO_VERSION | ||
ARG TARGETARCH | ||
ARG TARGETOS | ||
|
||
|
@@ -49,8 +47,16 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ | |
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY --from=golang /usr/local/go $GOROOT | ||
RUN mkdir -p "$GOPATH/src" | ||
WORKDIR /opt | ||
RUN set -x && cd "$(mktemp -d)" \ | ||
&& BIN_NAME="go" \ | ||
&& TAR_NAME="${BIN_NAME}${GO_VERSION}.${TARGETOS}-${TARGETARCH}.tar.gz" \ | ||
&& curl -fsSLO "https://go.dev/dl/${TAR_NAME}" \ | ||
&& tar zxf "${TAR_NAME}" \ | ||
&& rm "${TAR_NAME}" \ | ||
&& mv ${BIN_NAME} ${GOROOT} \ | ||
&& ${BIN_NAME} version \ | ||
&& mkdir -p "${GOPATH}/src" | ||
|
||
WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO}/Makefile.d | ||
COPY Makefile.d . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,15 +14,13 @@ | |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
ARG GO_VERSION=latest | ||
ARG DISTROLESS_IMAGE=gcr.io/distroless/static | ||
ARG DISTROLESS_IMAGE_TAG=nonroot | ||
ARG MAINTAINER="vdaas.org vald team <[email protected]>" | ||
|
||
FROM --platform=${BUILDPLATFORM} golang:${GO_VERSION} AS golang | ||
|
||
FROM --platform=${BUILDPLATFORM} ubuntu:devel AS builder | ||
|
||
ARG GO_VERSION | ||
ARG TARGETARCH | ||
ARG TARGETOS | ||
|
||
|
@@ -48,8 +46,16 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ | |
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY --from=golang /usr/local/go $GOROOT | ||
RUN mkdir -p "$GOPATH/src" | ||
WORKDIR /opt | ||
RUN set -x && cd "$(mktemp -d)" \ | ||
&& BIN_NAME="go" \ | ||
&& TAR_NAME="${BIN_NAME}${GO_VERSION}.${TARGETOS}-${TARGETARCH}.tar.gz" \ | ||
&& curl -fsSLO "https://go.dev/dl/${TAR_NAME}" \ | ||
&& tar zxf "${TAR_NAME}" \ | ||
&& rm "${TAR_NAME}" \ | ||
&& mv ${BIN_NAME} ${GOROOT} \ | ||
&& ${BIN_NAME} version \ | ||
&& mkdir -p "${GOPATH}/src" | ||
|
||
WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,15 +15,13 @@ | |
# limitations under the License. | ||
# | ||
|
||
ARG GO_VERSION=latest | ||
ARG DISTROLESS_IMAGE=gcr.io/distroless/static | ||
ARG DISTROLESS_IMAGE_TAG=nonroot | ||
ARG MAINTAINER="vdaas.org vald team <[email protected]>" | ||
|
||
FROM --platform=${BUILDPLATFORM} golang:${GO_VERSION} AS golang | ||
|
||
FROM --platform=${BUILDPLATFORM} ubuntu:devel AS builder | ||
|
||
ARG GO_VERSION | ||
ARG TARGETARCH | ||
ARG TARGETOS | ||
|
||
|
@@ -49,8 +47,16 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ | |
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY --from=golang /usr/local/go $GOROOT | ||
RUN mkdir -p "$GOPATH/src" | ||
WORKDIR /opt | ||
RUN set -x && cd "$(mktemp -d)" \ | ||
&& BIN_NAME="go" \ | ||
&& TAR_NAME="${BIN_NAME}${GO_VERSION}.${TARGETOS}-${TARGETARCH}.tar.gz" \ | ||
&& curl -fsSLO "https://go.dev/dl/${TAR_NAME}" \ | ||
&& tar zxf "${TAR_NAME}" \ | ||
&& rm "${TAR_NAME}" \ | ||
&& mv ${BIN_NAME} ${GOROOT} \ | ||
&& ${BIN_NAME} version \ | ||
&& mkdir -p "${GOPATH}/src" | ||
|
||
WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO}/Makefile.d | ||
COPY Makefile.d . | ||
|
Oops, something went wrong.