-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor dockerfiles and update gitattributes (#2743)
* refactor dockerfiles and update gitattributes Signed-off-by: kpango <[email protected]> * Update .gitattributes Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: Yusuke Kato <[email protected]> --------- Signed-off-by: kpango <[email protected]> Signed-off-by: Yusuke Kato <[email protected]> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
- Loading branch information
Showing
29 changed files
with
105 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -93,4 +94,4 @@ 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"] | ||
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -95,4 +96,4 @@ 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 | ||
ENTRYPOINT ["/usr/bin/faiss"] | ||
ENTRYPOINT ["/usr/bin/faiss"] |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -94,4 +95,4 @@ 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 | ||
ENTRYPOINT ["/usr/bin/ngt"] | ||
ENTRYPOINT ["/usr/bin/ngt"] |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -84,4 +85,4 @@ 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"] | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -16,4 +17,4 @@ | |
# | ||
|
||
# DO_NOT_EDIT this Dockerfile is generated by https://github.com/vdaas/vald/blob/main/hack/docker/gen/main.go | ||
FROM tonistiigi/binfmt:master AS builder | ||
FROM tonistiigi/binfmt:master AS builder |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -16,4 +17,4 @@ | |
# | ||
|
||
# DO_NOT_EDIT this Dockerfile is generated by https://github.com/vdaas/vald/blob/main/hack/docker/gen/main.go | ||
FROM ubuntu:devel AS builder | ||
FROM ubuntu:devel AS builder |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -16,4 +17,4 @@ | |
# | ||
|
||
# DO_NOT_EDIT this Dockerfile is generated by https://github.com/vdaas/vald/blob/main/hack/docker/gen/main.go | ||
FROM moby/buildkit:master AS builder | ||
FROM moby/buildkit:master AS builder |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -16,4 +17,4 @@ | |
# | ||
|
||
# DO_NOT_EDIT this Dockerfile is generated by https://github.com/vdaas/vald/blob/main/hack/docker/gen/main.go | ||
FROM docker/buildkit-syft-scanner:edge AS scanner | ||
FROM docker/buildkit-syft-scanner:edge AS scanner |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -127,4 +128,4 @@ RUN --mount=type=bind,target=.,rw \ | |
&& rm -rf ${GOPATH}/src/github.com/${ORG}/${REPO}/* | ||
# skipcq: DOK-DL3002 | ||
USER root:root | ||
ENTRYPOINT ["/bin/bash"] | ||
ENTRYPOINT ["/bin/bash"] |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -145,4 +146,4 @@ RUN --mount=type=bind,target=.,rw \ | |
&& make faiss/install \ | ||
&& rm -rf ${GOPATH}/src/github.com/${ORG}/${REPO}/* | ||
# skipcq: DOK-DL3002 | ||
USER root:root | ||
USER root:root |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -85,4 +86,4 @@ COPY --from=builder /usr/bin/discoverer /usr/bin/discoverer | |
COPY cmd/discoverer/k8s/sample.yaml /etc/server/config.yaml | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/discoverer"] | ||
ENTRYPOINT ["/usr/bin/discoverer"] |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -92,4 +93,4 @@ LABEL maintainer="vdaas.org vald team <[email protected]>" | |
COPY --from=builder /usr/bin/client /usr/bin/client | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/client"] | ||
ENTRYPOINT ["/usr/bin/client"] |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -85,4 +86,4 @@ COPY --from=builder /usr/bin/filter /usr/bin/filter | |
COPY cmd/gateway/filter/sample.yaml /etc/server/config.yaml | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/filter"] | ||
ENTRYPOINT ["/usr/bin/filter"] |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -85,4 +86,4 @@ COPY --from=builder /usr/bin/lb /usr/bin/lb | |
COPY cmd/gateway/lb/sample.yaml /etc/server/config.yaml | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/lb"] | ||
ENTRYPOINT ["/usr/bin/lb"] |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -85,4 +86,4 @@ COPY --from=builder /usr/bin/mirror /usr/bin/mirror | |
COPY cmd/gateway/mirror/sample.yaml /etc/server/config.yaml | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/mirror"] | ||
ENTRYPOINT ["/usr/bin/mirror"] |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -85,4 +86,4 @@ COPY --from=builder /usr/bin/index-correction /usr/bin/index-correction | |
COPY cmd/index/job/correction/sample.yaml /etc/server/config.yaml | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/index-correction"] | ||
ENTRYPOINT ["/usr/bin/index-correction"] |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -85,4 +86,4 @@ COPY --from=builder /usr/bin/index-creation /usr/bin/index-creation | |
COPY cmd/index/job/creation/sample.yaml /etc/server/config.yaml | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/index-creation"] | ||
ENTRYPOINT ["/usr/bin/index-creation"] |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -85,4 +86,4 @@ COPY --from=builder /usr/bin/index-deletion /usr/bin/index-deletion | |
COPY cmd/index/job/deletion/sample.yaml /etc/server/config.yaml | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/index-deletion"] | ||
ENTRYPOINT ["/usr/bin/index-deletion"] |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -85,4 +86,4 @@ COPY --from=builder /usr/bin/readreplica-rotate /usr/bin/readreplica-rotate | |
COPY cmd/index/job/readreplica/rotate/sample.yaml /etc/server/config.yaml | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/readreplica-rotate"] | ||
ENTRYPOINT ["/usr/bin/readreplica-rotate"] |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -85,4 +86,4 @@ COPY --from=builder /usr/bin/index-save /usr/bin/index-save | |
COPY cmd/index/job/save/sample.yaml /etc/server/config.yaml | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/index-save"] | ||
ENTRYPOINT ["/usr/bin/index-save"] |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -85,4 +86,4 @@ COPY --from=builder /usr/bin/index-operator /usr/bin/index-operator | |
COPY cmd/index/operator/sample.yaml /etc/server/config.yaml | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/index-operator"] | ||
ENTRYPOINT ["/usr/bin/index-operator"] |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -85,4 +86,4 @@ COPY --from=builder /usr/bin/index /usr/bin/index | |
COPY cmd/manager/index/sample.yaml /etc/server/config.yaml | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/index"] | ||
ENTRYPOINT ["/usr/bin/index"] |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -106,4 +107,4 @@ COPY --from=builder /opt/helm/charts/vald /opt/helm/charts/vald | |
COPY --from=builder /opt/helm/charts/vald-helm-operator /opt/helm/charts/vald-helm-operator | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/helm-operator", "run", "--watches-file=/opt/helm/watches.yaml"] | ||
ENTRYPOINT ["/usr/bin/helm-operator", "run", "--watches-file=/opt/helm/watches.yaml"] |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -93,4 +94,4 @@ COPY --from=builder /usr/bin/job /usr/bin/job | |
COPY cmd/tools/benchmark/job/sample.yaml /etc/server/config.yaml | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/job"] | ||
ENTRYPOINT ["/usr/bin/job"] |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -85,4 +86,4 @@ COPY --from=builder /usr/bin/operator /usr/bin/operator | |
COPY cmd/tools/benchmark/operator/sample.yaml /etc/server/config.yaml | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/operator"] | ||
ENTRYPOINT ["/usr/bin/operator"] |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -93,4 +94,4 @@ COPY --from=builder /usr/bin/loadtest /usr/bin/loadtest | |
COPY cmd/tools/cli/loadtest/sample.yaml /etc/server/config.yaml | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/loadtest"] | ||
ENTRYPOINT ["/usr/bin/loadtest"] |
Oops, something went wrong.