fork of https://github.com/sourcegraph/zoekt
0

Configure Feed

Select the types of activity you want to include in your feed.

use the ctags build script from sourcegraph (#263)

This makes it easier to keep the ctags used in sourcegraph and zoekt in
sync.

Note: ctags is no longer statically linked to jansson, so we need to
ensure jansson is installed for each container that has ctags.

+7 -19
+6 -18
Dockerfile
··· 13 13 ARG VERSION 14 14 RUN go install -ldflags "-X github.com/google/zoekt.Version=$VERSION" ./cmd/... 15 15 16 - # >3.11 don't have a statically linkable jansson-dev 17 - FROM alpine:3.11 AS ctags 18 - 19 - RUN apk add --no-cache --virtual build-deps ca-certificates curl jansson-dev \ 20 - libseccomp-dev linux-headers autoconf pkgconfig make automake \ 21 - gcc g++ binutils 22 - 23 - ENV CTAGS_VERSION=7c4df9d38c4fe4bb494e5f3b2279034d7d8bd7b7 24 - 25 - RUN curl -fsSL -o ctags.tar.gz "https://codeload.github.com/universal-ctags/ctags/tar.gz/$CTAGS_VERSION" && \ 26 - tar -C /tmp -xzf ctags.tar.gz && cd /tmp/ctags-$CTAGS_VERSION && \ 27 - ./autogen.sh && LDFLAGS=-static ./configure --program-prefix=universal- --enable-json --enable-seccomp && \ 28 - make -j8 && make install && cd && \ 29 - rm -rf /tmp/ctags-$CTAGS_VERSION && \ 30 - apk --no-cache --purge del build-deps 31 - 32 16 FROM alpine:3.15.0 AS zoekt 33 17 34 18 RUN apk update --no-cache && apk upgrade --no-cache && \ 35 - apk add --no-cache git ca-certificates bind-tools tini 19 + apk add --no-cache git ca-certificates bind-tools tini jansson 36 20 37 - COPY --from=ctags /usr/local/bin/universal-* /usr/local/bin/ 21 + # Commit from 2022-02-09. Please always pick a commit from the main branch. 22 + ENV SOURCEGRAPH_COMMIT=70028a0bde4bbffe1919635b3d1fee99c2e28625 23 + ADD https://raw.githubusercontent.com/sourcegraph/sourcegraph/$SOURCEGRAPH_COMMIT/cmd/symbols/ctags-install-alpine.sh /tmp/ 24 + RUN sh /tmp/ctags-install-alpine.sh && rm /tmp/ctags-install-alpine.sh 25 + 38 26 COPY --from=builder /go/bin/* /usr/local/bin/ 39 27 40 28 # zoekt-webserver has a large stable heap size (10s of gigs), and as such the
+1 -1
Dockerfile.indexserver
··· 1 1 FROM alpine:3.15.0 2 2 3 3 RUN apk update --no-cache && apk upgrade --no-cache && \ 4 - apk add --no-cache ca-certificates bind-tools tini git 4 + apk add --no-cache ca-certificates bind-tools tini git jansson 5 5 6 6 # Run as non-root user sourcegraph. External volumes should be mounted under /data (which will be owned by sourcegraph). 7 7 RUN mkdir -p /home/sourcegraph