-
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.
refactor docker and change buildkit-syft-scanner reference to ghcr.io
Signed-off-by: kpango <[email protected]>
- Loading branch information
Showing
36 changed files
with
126 additions
and
331 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 |
---|---|---|
|
@@ -16,16 +16,12 @@ | |
# | ||
|
||
# DO_NOT_EDIT this Dockerfile is generated by hack/docker/gen/main.go | ||
|
||
ARG UPX_OPTIONS=-9 | ||
# skipcq: DOK-DL3026,DOK-DL3007 | ||
FROM ghcr.io/vdaas/vald/vald-buildbase:nightly AS builder | ||
ARG MAINTAINER="vdaas.org vald team <[email protected]>" | ||
LABEL maintainer="${MAINTAINER}" | ||
|
||
LABEL maintainer="vdaas.org vald team <[email protected]>" | ||
# skipcq: DOK-DL3002 | ||
USER root:root | ||
|
||
ARG TARGETARCH | ||
ARG TARGETOS | ||
ARG GO_VERSION | ||
|
@@ -46,7 +42,6 @@ ENV USER=root | |
ENV RUSTUP_HOME=${RUST_HOME}/rustup | ||
ENV CARGO_HOME=${RUST_HOME}/cargo | ||
ENV PATH=${CARGO_HOME}/bin:${RUSTUP_HOME}/bin:/usr/local/bin:${PATH} | ||
|
||
WORKDIR ${HOME}/rust/src/github.com/${ORG}/${REPO} | ||
SHELL ["/bin/bash", "-o", "pipefail", "-c"] | ||
#skipcq: DOK-W1001, DOK-SC2046, DOK-SC2086, DOK-DL3008 | ||
|
@@ -92,12 +87,8 @@ RUN --mount=type=bind,target=.,rw \ | |
&& rm -rf rust/target | ||
# skipcq: DOK-DL3026,DOK-DL3007 | ||
FROM gcr.io/distroless/cc-debian12:nonroot | ||
ARG MAINTAINER="vdaas.org vald team <[email protected]>" | ||
LABEL maintainer="${MAINTAINER}" | ||
|
||
ENV APP_NAME=agent | ||
|
||
COPY --from=builder /usr/bin/${APP_NAME} /usr/bin/${APP_NAME} | ||
LABEL maintainer="vdaas.org vald team <[email protected]>" | ||
COPY --from=builder /usr/bin/agent /usr/bin/agent | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/agent"] |
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 |
---|---|---|
|
@@ -16,16 +16,12 @@ | |
# | ||
|
||
# DO_NOT_EDIT this Dockerfile is generated by hack/docker/gen/main.go | ||
|
||
ARG UPX_OPTIONS=-9 | ||
# skipcq: DOK-DL3026,DOK-DL3007 | ||
FROM ghcr.io/vdaas/vald/vald-buildbase:nightly AS builder | ||
ARG MAINTAINER="vdaas.org vald team <[email protected]>" | ||
LABEL maintainer="${MAINTAINER}" | ||
|
||
LABEL maintainer="vdaas.org vald team <[email protected]>" | ||
# skipcq: DOK-DL3002 | ||
USER root:root | ||
|
||
ARG TARGETARCH | ||
ARG TARGETOS | ||
ARG GO_VERSION | ||
|
@@ -46,7 +42,6 @@ ENV REPO=vald | |
ENV TZ=Etc/UTC | ||
ENV USER=root | ||
ENV PATH=${GOPATH}/bin:${GOROOT}/bin:/usr/local/bin:${PATH} | ||
|
||
WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO} | ||
SHELL ["/bin/bash", "-o", "pipefail", "-c"] | ||
#skipcq: DOK-W1001, DOK-SC2046, DOK-SC2086, DOK-DL3008 | ||
|
@@ -93,12 +88,8 @@ RUN --mount=type=bind,target=.,rw \ | |
&& mv "cmd/${PKG}/${APP_NAME}" "/usr/bin/${APP_NAME}" | ||
# skipcq: DOK-DL3026,DOK-DL3007 | ||
FROM gcr.io/distroless/static:nonroot | ||
ARG MAINTAINER="vdaas.org vald team <[email protected]>" | ||
LABEL maintainer="${MAINTAINER}" | ||
|
||
ENV APP_NAME=faiss | ||
|
||
COPY --from=builder /usr/bin/${APP_NAME} /usr/bin/${APP_NAME} | ||
LABEL maintainer="vdaas.org vald team <[email protected]>" | ||
COPY --from=builder /usr/bin/faiss /usr/bin/faiss | ||
COPY cmd/agent/core/faiss/sample.yaml /etc/server/config.yaml | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
|
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 |
---|---|---|
|
@@ -16,16 +16,12 @@ | |
# | ||
|
||
# DO_NOT_EDIT this Dockerfile is generated by hack/docker/gen/main.go | ||
|
||
ARG UPX_OPTIONS=-9 | ||
# skipcq: DOK-DL3026,DOK-DL3007 | ||
FROM ghcr.io/vdaas/vald/vald-buildbase:nightly AS builder | ||
ARG MAINTAINER="vdaas.org vald team <[email protected]>" | ||
LABEL maintainer="${MAINTAINER}" | ||
|
||
LABEL maintainer="vdaas.org vald team <[email protected]>" | ||
# skipcq: DOK-DL3002 | ||
USER root:root | ||
|
||
ARG TARGETARCH | ||
ARG TARGETOS | ||
ARG GO_VERSION | ||
|
@@ -46,7 +42,6 @@ ENV REPO=vald | |
ENV TZ=Etc/UTC | ||
ENV USER=root | ||
ENV PATH=${GOPATH}/bin:${GOROOT}/bin:/usr/local/bin:${PATH} | ||
|
||
WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO} | ||
SHELL ["/bin/bash", "-o", "pipefail", "-c"] | ||
#skipcq: DOK-W1001, DOK-SC2046, DOK-SC2086, DOK-DL3008 | ||
|
@@ -92,12 +87,8 @@ RUN --mount=type=bind,target=.,rw \ | |
&& mv "cmd/${PKG}/${APP_NAME}" "/usr/bin/${APP_NAME}" | ||
# skipcq: DOK-DL3026,DOK-DL3007 | ||
FROM gcr.io/distroless/static:nonroot | ||
ARG MAINTAINER="vdaas.org vald team <[email protected]>" | ||
LABEL maintainer="${MAINTAINER}" | ||
|
||
ENV APP_NAME=ngt | ||
|
||
COPY --from=builder /usr/bin/${APP_NAME} /usr/bin/${APP_NAME} | ||
LABEL maintainer="vdaas.org vald team <[email protected]>" | ||
COPY --from=builder /usr/bin/ngt /usr/bin/ngt | ||
COPY cmd/agent/core/ngt/sample.yaml /etc/server/config.yaml | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
|
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 |
---|---|---|
|
@@ -16,16 +16,12 @@ | |
# | ||
|
||
# DO_NOT_EDIT this Dockerfile is generated by hack/docker/gen/main.go | ||
|
||
ARG UPX_OPTIONS=-9 | ||
# skipcq: DOK-DL3026,DOK-DL3007 | ||
FROM ghcr.io/vdaas/vald/vald-buildbase:nightly AS builder | ||
ARG MAINTAINER="vdaas.org vald team <[email protected]>" | ||
LABEL maintainer="${MAINTAINER}" | ||
|
||
LABEL maintainer="vdaas.org vald team <[email protected]>" | ||
# skipcq: DOK-DL3002 | ||
USER root:root | ||
|
||
ARG TARGETARCH | ||
ARG TARGETOS | ||
ARG GO_VERSION | ||
|
@@ -46,7 +42,6 @@ ENV REPO=vald | |
ENV TZ=Etc/UTC | ||
ENV USER=root | ||
ENV PATH=${GOPATH}/bin:${GOROOT}/bin:/usr/local/bin:${PATH} | ||
|
||
WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO} | ||
SHELL ["/bin/bash", "-o", "pipefail", "-c"] | ||
#skipcq: DOK-W1001, DOK-SC2046, DOK-SC2086, DOK-DL3008 | ||
|
@@ -83,12 +78,8 @@ RUN --mount=type=bind,target=.,rw \ | |
&& mv "cmd/${PKG}/${APP_NAME}" "/usr/bin/${APP_NAME}" | ||
# skipcq: DOK-DL3026,DOK-DL3007 | ||
FROM gcr.io/distroless/static:nonroot | ||
ARG MAINTAINER="vdaas.org vald team <[email protected]>" | ||
LABEL maintainer="${MAINTAINER}" | ||
|
||
ENV APP_NAME=sidecar | ||
|
||
COPY --from=builder /usr/bin/${APP_NAME} /usr/bin/${APP_NAME} | ||
LABEL maintainer="vdaas.org vald team <[email protected]>" | ||
COPY --from=builder /usr/bin/sidecar /usr/bin/sidecar | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/sidecar"] |
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
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 |
---|---|---|
|
@@ -16,16 +16,12 @@ | |
# | ||
|
||
# DO_NOT_EDIT this Dockerfile is generated by hack/docker/gen/main.go | ||
|
||
ARG UPX_OPTIONS=-9 | ||
# skipcq: DOK-DL3026,DOK-DL3007 | ||
FROM ghcr.io/vdaas/vald/vald-buildbase:nightly | ||
ARG MAINTAINER="vdaas.org vald team <[email protected]>" | ||
LABEL maintainer="${MAINTAINER}" | ||
|
||
LABEL maintainer="vdaas.org vald team <[email protected]>" | ||
# skipcq: DOK-DL3002 | ||
USER root:root | ||
|
||
ARG TARGETARCH | ||
ARG TARGETOS | ||
ARG GO_VERSION | ||
|
@@ -51,7 +47,6 @@ ENV USER=root | |
ENV RUSTUP_HOME=${RUST_HOME}/rustup | ||
ENV CARGO_HOME=${RUST_HOME}/cargo | ||
ENV PATH=${CARGO_HOME}/bin:${GOPATH}/bin:${GOROOT}/bin:${RUSTUP_HOME}/bin:/usr/local/bin:${PATH} | ||
|
||
WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO} | ||
SHELL ["/bin/bash", "-o", "pipefail", "-c"] | ||
#skipcq: DOK-W1001, DOK-SC2046, DOK-SC2086, DOK-DL3008 | ||
|
Oops, something went wrong.