mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 18:12:55 +01:00
Add zoekt-ci-image v1.1
This commit is contained in:
parent
f1d7f29deb
commit
1101f8b81d
3 changed files with 32 additions and 0 deletions
|
|
@ -62,6 +62,9 @@ apollo:
|
||||||
zoekt-ci-image-1.0:
|
zoekt-ci-image-1.0:
|
||||||
extends: .build_static_image
|
extends: .build_static_image
|
||||||
|
|
||||||
|
zoekt-ci-image-1.1:
|
||||||
|
extends: .build_static_image
|
||||||
|
|
||||||
postgres-12-pgvector-0.4.1:
|
postgres-12-pgvector-0.4.1:
|
||||||
extends: .build_static_image
|
extends: .build_static_image
|
||||||
|
|
||||||
|
|
|
||||||
24
Dockerfile.zoekt-ci-image-1.1
Normal file
24
Dockerfile.zoekt-ci-image-1.1
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
FROM golang:1.20.0-alpine3.17 as build
|
||||||
|
|
||||||
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
|
RUN apk add git
|
||||||
|
|
||||||
|
ENV ZOEKT_VERSION=c08faec66fc26a41007b2176fbea86c52b0efe4b
|
||||||
|
ENV GITLAB_ZOEKT_INDEXER_VERSION=4b334179dcfc2226dd9d7e0f5e4f75ede35a6d9d
|
||||||
|
|
||||||
|
RUN apk add go && \
|
||||||
|
go install github.com/sourcegraph/zoekt/cmd/zoekt-webserver@$ZOEKT_VERSION && \
|
||||||
|
go install gitlab.com/gitlab-org/search-team/gitlab-zoekt-indexer/cmd/gitlab-zoekt-indexer@$GITLAB_ZOEKT_INDEXER_VERSION && \
|
||||||
|
rm -rf /go/pkg /go/src /usr/local/go
|
||||||
|
|
||||||
|
FROM alpine:3.17 as main
|
||||||
|
|
||||||
|
COPY --from=build /go/bin/* /usr/bin/
|
||||||
|
|
||||||
|
COPY assets/zoekt-ci-image/run-zoekt-servers-1.1 run-zoekt-servers
|
||||||
|
|
||||||
|
EXPOSE 6060
|
||||||
|
EXPOSE 6070
|
||||||
|
|
||||||
|
CMD ["sh", "run-zoekt-servers"]
|
||||||
5
assets/zoekt-ci-image/run-zoekt-servers-1.1
Executable file
5
assets/zoekt-ci-image/run-zoekt-servers-1.1
Executable file
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh -e
|
||||||
|
|
||||||
|
gitlab-zoekt-indexer -index_dir zoekt/test/index -listen :6060 &
|
||||||
|
|
||||||
|
zoekt-webserver -index zoekt/test/index -rpc -listen :6070
|
||||||
Loading…
Add table
Add a link
Reference in a new issue