Skip to content

Commit 66dc186

Browse files
authored
Merge pull request #15 from gitopia/dev
Dev
2 parents 9b0a941 + 3cf3632 commit 66dc186

18 files changed

Lines changed: 3077 additions & 88 deletions

Dockerfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
FROM golang:1.16-buster
2+
3+
ARG USER
4+
ARG PERSONAL_ACCESS_TOKEN
5+
ARG ENV
6+
7+
WORKDIR /app
8+
9+
ADD scripts/install_libgit2.sh /app
10+
11+
RUN apt-get update && apt-get -y install cmake libssl-dev
12+
RUN ./install_libgit2.sh
13+
RUN git config --global url."https://${USER}:${PERSONAL_ACCESS_TOKEN}@github.com".insteadOf "https://github.com"
14+
RUN git config --global gc.auto 0
15+
16+
ADD . /app
17+
18+
RUN make build
19+
20+
EXPOSE 5000
21+
22+
ENTRYPOINT ["./scripts/startup.sh"]
23+
CMD ["${ENV}"]

config.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
gitopia_grpc_url = "grpc.testnet.gitopia.com"
2+
arweave_gateway_url = "arweave.testnet.gitopia.com"
3+
git_dir = "/var/repos"
4+
attachment_dir = "/var/attachments"

devconfig.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
gitopia_grpc_url = "localhost:9090"
2+
arweave_gateway_url = "localhost:1984"
3+
git_dir = "/var/repos"
4+
attachment_dir = "/var/attachments"

go.mod

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
1-
module main
1+
module github.com/gitopia/git-server
22

33
go 1.16
44

55
require (
6-
github.com/everFinance/goar v1.2.7 // indirect
6+
github.com/gitopia/gitopia v0.10.0
7+
github.com/gitopia/go-git/v5 v5.4.3-0.20211224112515-b2efd9bec92c
8+
github.com/gitopia/goar v0.0.0-20210912164232-a48c38a69bc2
79
github.com/go-git/go-billy/v5 v5.3.1
8-
github.com/go-git/go-git/v5 v5.4.2
10+
github.com/libgit2/git2go/v33 v33.0.4
11+
github.com/rs/cors v1.8.0
12+
github.com/spf13/viper v1.8.1
13+
google.golang.org/grpc v1.40.0
914
)
15+
16+
replace google.golang.org/grpc => google.golang.org/grpc v1.33.2
17+
18+
replace github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1

go.sum

Lines changed: 1054 additions & 9 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)