File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # This Dockerfile was generated from github.com/sourcegraph/godockerize. It
2+ # was not written by a human, and as such looks janky. As you change this
3+ # file, please don't be scared to make it more pleasant / remove hadolint
4+ # ignores.
5+
6+ FROM alpine:3.8
7+ # hadolint ignore=DL3018
8+ RUN apk add --no-cache bind-tools ca-certificates mailcap tini
9+ RUN addgroup -S sourcegraph && adduser -S -G sourcegraph -h /home/sourcegraph sourcegraph
10+ ENV CONFIGURATION_MODE=server PGDATABASE=sg PGHOST=pgsql PGPORT=5432 PGSSLMODE=disable PGUSER=sg PUBLIC_REPO_REDIRECTS=true
11+ USER sourcegraph
12+ CMD ["serve" ]
13+ ENTRYPOINT ["/sbin/tini" , "--" , "/usr/local/bin/frontend" ]
14+ COPY frontend /usr/local/bin/
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ # We want to build multiple go binaries, so we use a custom build step on CI.
4+ cd $( dirname " ${BASH_SOURCE[0]} " ) /../..
5+ set -ex
6+
7+ OUTPUT=` mktemp -d -t sgdockerbuild_XXXXXXX`
8+ cleanup () {
9+ rm -rf " $OUTPUT "
10+ }
11+ trap cleanup EXIT
12+
13+ # Environment for building linux binaries
14+ export GO111MODULE=on
15+ export GOARCH=amd64
16+ export GOOS=linux
17+ export CGO_ENABLED=0
18+
19+ for pkg in github.com/sourcegraph/sourcegraph/cmd/frontend; do
20+ go build -ldflags " -X github.com/sourcegraph/sourcegraph/pkg/version.version=$VERSION " -buildmode exe -tags dist -o $OUTPUT /$( basename $pkg ) $pkg
21+ done
22+
23+ docker build -f cmd/frontend/Dockerfile -t $IMAGE $OUTPUT
Original file line number Diff line number Diff line change 1+ # This Dockerfile was generated from github.com/sourcegraph/godockerize. It
2+ # was not written by a human, and as such looks janky. As you change this
3+ # file, please don't be scared to make it more pleasant / remove hadolint
4+ # ignores.
5+
6+ FROM alpine:3.8
7+ # hadolint ignore=DL3018
8+ RUN apk add --no-cache bind-tools ca-certificates mailcap tini
9+ RUN addgroup -S sourcegraph && adduser -S -G sourcegraph -h /home/sourcegraph sourcegraph
10+ ENV LOG_REQUEST=true
11+ USER sourcegraph
12+ ENTRYPOINT ["/sbin/tini" , "--" , "/usr/local/bin/github-proxy" ]
13+ COPY github-proxy /usr/local/bin/
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ # We want to build multiple go binaries, so we use a custom build step on CI.
4+ cd $( dirname " ${BASH_SOURCE[0]} " ) /../..
5+ set -ex
6+
7+ OUTPUT=` mktemp -d -t sgdockerbuild_XXXXXXX`
8+ cleanup () {
9+ rm -rf " $OUTPUT "
10+ }
11+ trap cleanup EXIT
12+
13+ # Environment for building linux binaries
14+ export GO111MODULE=on
15+ export GOARCH=amd64
16+ export GOOS=linux
17+ export CGO_ENABLED=0
18+
19+ for pkg in github.com/sourcegraph/sourcegraph/cmd/github-proxy; do
20+ go build -ldflags " -X github.com/sourcegraph/sourcegraph/pkg/version.version=$VERSION " -buildmode exe -tags dist -o $OUTPUT /$( basename $pkg ) $pkg
21+ done
22+
23+ docker build -f cmd/github-proxy/Dockerfile -t $IMAGE $OUTPUT
Original file line number Diff line number Diff line change 1+ # This Dockerfile was generated from github.com/sourcegraph/godockerize. It
2+ # was not written by a human, and as such looks janky. As you change this
3+ # file, please don't be scared to make it more pleasant / remove hadolint
4+ # ignores.
5+
6+ FROM alpine:3.8
7+ RUN echo "@edge http://dl-cdn.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories && \
8+ echo "@edge http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
9+ # hadolint ignore=DL3018
10+ RUN apk add --no-cache bind-tools ca-certificates git@edge mailcap openssh-client tini
11+ RUN addgroup -S sourcegraph && adduser -S -G sourcegraph -h /home/sourcegraph sourcegraph && mkdir -p /data/repos && chown -R sourcegraph:sourcegraph /data/repos
12+ USER sourcegraph
13+ ENTRYPOINT ["/sbin/tini" , "--" , "/usr/local/bin/gitserver" ]
14+ COPY gitserver /usr/local/bin/
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ # We want to build multiple go binaries, so we use a custom build step on CI.
4+ cd $( dirname " ${BASH_SOURCE[0]} " ) /../..
5+ set -ex
6+
7+ OUTPUT=` mktemp -d -t sgdockerbuild_XXXXXXX`
8+ cleanup () {
9+ rm -rf " $OUTPUT "
10+ }
11+ trap cleanup EXIT
12+
13+ # Environment for building linux binaries
14+ export GO111MODULE=on
15+ export GOARCH=amd64
16+ export GOOS=linux
17+ export CGO_ENABLED=0
18+
19+ for pkg in github.com/sourcegraph/sourcegraph/cmd/gitserver; do
20+ go build -ldflags " -X github.com/sourcegraph/sourcegraph/pkg/version.version=$VERSION " -buildmode exe -tags dist -o $OUTPUT /$( basename $pkg ) $pkg
21+ done
22+
23+ docker build -f cmd/gitserver/Dockerfile -t $IMAGE $OUTPUT
Original file line number Diff line number Diff line change 1+ # This Dockerfile was generated from github.com/sourcegraph/godockerize. It
2+ # was not written by a human, and as such looks janky. As you change this
3+ # file, please don't be scared to make it more pleasant / remove hadolint
4+ # ignores.
5+
6+ FROM alpine:3.8
7+ # hadolint ignore=DL3018
8+ RUN apk add --no-cache bind-tools ca-certificates mailcap tini
9+ ENTRYPOINT ["/sbin/tini" , "--" , "/usr/local/bin/loadtest" ]
10+ COPY loadtest /usr/local/bin/
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ # We want to build multiple go binaries, so we use a custom build step on CI.
4+ cd $( dirname " ${BASH_SOURCE[0]} " ) /../..
5+ set -ex
6+
7+ OUTPUT=` mktemp -d -t sgdockerbuild_XXXXXXX`
8+ cleanup () {
9+ rm -rf " $OUTPUT "
10+ }
11+ trap cleanup EXIT
12+
13+ # Environment for building linux binaries
14+ export GO111MODULE=on
15+ export GOARCH=amd64
16+ export GOOS=linux
17+ export CGO_ENABLED=0
18+
19+ for pkg in github.com/sourcegraph/sourcegraph/cmd/loadtest; do
20+ go build -ldflags " -X github.com/sourcegraph/sourcegraph/pkg/version.version=$VERSION " -buildmode exe -tags dist -o $OUTPUT /$( basename $pkg ) $pkg
21+ done
22+
23+ docker build -f cmd/loadtest/Dockerfile -t $IMAGE $OUTPUT
Original file line number Diff line number Diff line change 1+ # This Dockerfile was generated from github.com/sourcegraph/godockerize. It
2+ # was not written by a human, and as such looks janky. As you change this
3+ # file, please don't be scared to make it more pleasant / remove hadolint
4+ # ignores.
5+
6+ FROM alpine:3.8
7+ # hadolint ignore=DL3018
8+ RUN apk add --no-cache bind-tools ca-certificates mailcap tini
9+ RUN addgroup -S sourcegraph && adduser -S -G sourcegraph -h /home/sourcegraph sourcegraph
10+ ENV PGDATABASE=sg PGHOST=pgsql PGPORT=5432 PGSSLMODE=disable PGUSER=sg
11+ USER sourcegraph
12+ ENTRYPOINT ["/sbin/tini" , "--" , "/usr/local/bin/management-console" ]
13+ COPY management-console /usr/local/bin/
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ # We want to build multiple go binaries, so we use a custom build step on CI.
4+ cd $( dirname " ${BASH_SOURCE[0]} " ) /../..
5+ set -ex
6+
7+ OUTPUT=` mktemp -d -t sgdockerbuild_XXXXXXX`
8+ cleanup () {
9+ rm -rf " $OUTPUT "
10+ }
11+ trap cleanup EXIT
12+
13+ # Environment for building linux binaries
14+ export GO111MODULE=on
15+ export GOARCH=amd64
16+ export GOOS=linux
17+ export CGO_ENABLED=0
18+
19+ for pkg in github.com/sourcegraph/sourcegraph/cmd/management-console; do
20+ go build -ldflags " -X github.com/sourcegraph/sourcegraph/pkg/version.version=$VERSION " -buildmode exe -tags dist -o $OUTPUT /$( basename $pkg ) $pkg
21+ done
22+
23+ docker build -f cmd/management-console/Dockerfile -t $IMAGE $OUTPUT
You can’t perform that action at this time.
0 commit comments