Skip to content

Commit

Permalink
Merge pull request #125
Browse files Browse the repository at this point in the history
Release v0.6.1
  • Loading branch information
bsrinivas8687 committed Mar 9, 2023
2 parents d437d10 + 67451ba commit d310db3
Show file tree
Hide file tree
Showing 6 changed files with 153 additions and 300 deletions.
15 changes: 5 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
FROM golang:1.20-alpine3.17 AS build

COPY . /go/src/github.com/sentinel-official/dvpn-node/
COPY . /root/dvpn-node/

RUN apk add git gcc linux-headers make musl-dev && \
cd /go/src/github.com/sentinel-official/dvpn-node/ && \
make install --jobs=$(nproc)

RUN cd /root/ && \
apk add autoconf automake bash file g++ git libtool make unbound-dev && \
git clone https://github.com/handshake-org/hnsd.git --branch=master --depth=1 && \
cd /root/hnsd/ && \
bash autogen.sh && sh configure && make --jobs=$(nproc)
RUN apk add autoconf automake bash file g++ gcc git libtool linux-headers make musl-dev unbound-dev && \
cd /root/dvpn-node/ && make --jobs=$(nproc) install && \
git clone --branch=master --depth=1 https://github.com/handshake-org/hnsd.git /root/hnsd && \
cd /root/hnsd/ && bash autogen.sh && sh configure && make --jobs=$(nproc)

FROM alpine:3.17

Expand Down
12 changes: 6 additions & 6 deletions cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,14 +208,14 @@ func StartCmd() *cobra.Command {
router.Use(corsMiddleware)
api.RegisterRoutes(ctx, router)

ctx = ctx.WithLogger(log).
WithService(service).
WithHandler(router).
WithConfig(config).
ctx = ctx.WithBandwidth(bandwidth).
WithClient(client).
WithLocation(location).
WithConfig(config).
WithDatabase(database).
WithBandwidth(bandwidth)
WithHandler(router).
WithLocation(location).
WithLogger(log).
WithService(service)

n := node.NewNode(ctx)
if err := n.Initialize(); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ require (
github.com/pkg/errors v0.9.1
github.com/rs/zerolog v1.29.0
github.com/sentinel-official/hub v0.10.1
github.com/showwin/speedtest-go v1.5.0
github.com/showwin/speedtest-go v1.5.2
github.com/soheilhy/cmux v0.1.5
github.com/spf13/cobra v1.6.1
github.com/spf13/viper v1.14.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -776,8 +776,8 @@ github.com/seiflotfy/cuckoofilter v0.0.0-20220312154859-af7fbb8e765b/go.mod h1:b
github.com/sentinel-official/hub v0.10.1 h1:DcXrd7dGJnbRS0r7uOltzjATo2ImuPqLrRsSfaxa6G4=
github.com/sentinel-official/hub v0.10.1/go.mod h1:WX64FXc/7qNnE2I3yOMjcKeek02zE/mZFbZvJBweOHk=
github.com/shirou/gopsutil v2.20.5+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA=
github.com/showwin/speedtest-go v1.5.0 h1:g+oy5HeemQ0LusWOYY1UHiasC6EsHsut76u4Hqq8alY=
github.com/showwin/speedtest-go v1.5.0/go.mod h1:Y7c+pxzaNAlo4mYP+x83pnYY8IM3bkHGDhTdrgUnkNE=
github.com/showwin/speedtest-go v1.5.2 h1:drXsmaGC36VXi6biSZ+vyo/tYCkaoTU2mAF2b6wQmlk=
github.com/showwin/speedtest-go v1.5.2/go.mod h1:Y7c+pxzaNAlo4mYP+x83pnYY8IM3bkHGDhTdrgUnkNE=
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
Expand Down

0 comments on commit d310db3

Please sign in to comment.