mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 18:12:55 +01:00
Merge branch 'switch-zoekt-to-main-repo' into 'master'
Change zoekt-ci-image to main repo using SHA See merge request https://gitlab.com/gitlab-org/gitlab-build-images/-/merge_requests/637 Merged-by: Stan Hu <stanhu@gmail.com> Approved-by: Stan Hu <stanhu@gmail.com> Co-authored-by: Dylan Griffith <dyl.griffith@gmail.com>
This commit is contained in:
commit
fdac08bb94
1 changed files with 15 additions and 5 deletions
|
|
@ -1,12 +1,22 @@
|
|||
FROM golang:1.19
|
||||
FROM golang:1.20.0-alpine3.17 as build
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
RUN apt-get update && apt-get install -y universal-ctags git
|
||||
RUN apk add git
|
||||
|
||||
RUN git clone https://github.com/DylanGriffith/zoekt.git
|
||||
RUN cd /usr/src/app/zoekt && git checkout dynamic-indexserver-api && go install github.com/sourcegraph/zoekt/cmd/zoekt-dynamic-indexserver && go install github.com/sourcegraph/zoekt/cmd/zoekt-git-clone && go install github.com/sourcegraph/zoekt/cmd/zoekt-git-index
|
||||
RUN cd /usr/src/app/zoekt && git checkout search-api-with-reposbranches-filter && go install github.com/sourcegraph/zoekt/cmd/zoekt-webserver
|
||||
ENV ZOEKT_VERSION=c08faec66fc26a41007b2176fbea86c52b0efe4b
|
||||
|
||||
RUN apk add go && \
|
||||
go install github.com/sourcegraph/zoekt/cmd/zoekt-webserver@$ZOEKT_VERSION && \
|
||||
go install github.com/sourcegraph/zoekt/cmd/zoekt-git-clone@$ZOEKT_VERSION && \
|
||||
go install github.com/sourcegraph/zoekt/cmd/zoekt-git-index@$ZOEKT_VERSION && \
|
||||
go install github.com/sourcegraph/zoekt/cmd/zoekt-dynamic-indexserver@$ZOEKT_VERSION && \
|
||||
rm -rf /go/pkg /go/src /usr/local/go
|
||||
|
||||
FROM alpine:3.17 as main
|
||||
RUN apk add git
|
||||
|
||||
COPY --from=build /go/bin/* /usr/bin/
|
||||
|
||||
COPY assets/zoekt-ci-image/run-zoekt-servers run-zoekt-servers
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue