Skip to content

Commit

Permalink
add pkg-config
Browse files Browse the repository at this point in the history
Signed-off-by: Kosuke Morimoto <[email protected]>
  • Loading branch information
kmrmt committed Sep 12, 2024
1 parent 6088bb4 commit 981784e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
3 changes: 2 additions & 1 deletion dockers/agent/core/agent/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ RUN --mount=type=bind,target=.,rw \
libomp-dev \
libopenblas-dev \
gfortran \
pkg-config \
&& ldconfig \
&& echo "${LANG} UTF-8" > /etc/locale.gen \
&& ln -fs /usr/share/zoneinfo/${TZ} /etc/localtime \
Expand All @@ -91,4 +92,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"]
3 changes: 2 additions & 1 deletion dockers/ci/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ RUN --mount=type=bind,target=.,rw \
libomp-dev \
libopenblas-dev \
gfortran \
pkg-config \
gawk \
gnupg2 \
graphviz \
Expand Down Expand Up @@ -123,4 +124,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"]
5 changes: 3 additions & 2 deletions dockers/dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ ENV REPO=vald
ENV RUST_HOME=/usr/loacl/lib/rust
ENV TZ=Etc/UTC
ENV USER=root
ENV CARGO_HOME=${RUST_HOME}/cargo
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"]
Expand Down Expand Up @@ -83,6 +83,7 @@ RUN --mount=type=bind,target=.,rw \
libomp-dev \
libopenblas-dev \
gfortran \
pkg-config \
gawk \
gnupg2 \
graphviz \
Expand Down Expand Up @@ -142,4 +143,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
12 changes: 9 additions & 3 deletions hack/docker/gen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,9 @@ var (
faissBuildDeps = []string{
"gfortran",
}
rustBuildDeps = []string{
"pkg-config",
}
devContainerDeps = []string{
"gawk",
"gnupg2",
Expand Down Expand Up @@ -527,7 +530,8 @@ func main() {
RuntimeImage: "gcr.io/distroless/cc-debian12",
ExtraPackages: append(clangBuildDeps,
append(ngtBuildDeps,
faissBuildDeps...)...),
append(faissBuildDeps,
rustBuildDeps...)...)...),
Preprocess: []string{
ngtPreprocess,
faissPreprocess,
Expand Down Expand Up @@ -644,7 +648,8 @@ func main() {
ExtraPackages: append([]string{"npm"}, append(clangBuildDeps,
append(ngtBuildDeps,
append(faissBuildDeps,
devContainerDeps...)...)...)...),
append(rustBuildDeps,
devContainerDeps...)...)...)...)...),
Preprocess: append(ciContainerPreprocess, ngtPreprocess, faissPreprocess),
Entrypoints: []string{"/bin/bash"},
},
Expand All @@ -659,7 +664,8 @@ func main() {
ExtraPackages: append(clangBuildDeps,
append(ngtBuildDeps,
append(faissBuildDeps,
devContainerDeps...)...)...),
append(rustBuildDeps,
devContainerDeps...)...)...)...),
Preprocess: append(devContainerPreprocess,
append(ciContainerPreprocess,
ngtPreprocess,
Expand Down

0 comments on commit 981784e

Please sign in to comment.