Skip to content

Commit bcb5eec

Browse files
committed
chore: renamed node binary name to dvpnx
1 parent 89b099a commit bcb5eec

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.21-alpine3.19 AS build
1+
FROM golang:1.22-alpine3.21 AS build
22

33
COPY . /root/dvpn-node/
44

@@ -9,12 +9,12 @@ RUN --mount=target=/go/pkg/mod,type=cache \
99
git clone --branch=master --depth=1 https://github.com/handshake-org/hnsd.git /root/hnsd && \
1010
cd /root/hnsd/ && bash autogen.sh && sh configure && make --jobs=$(nproc)
1111

12-
FROM alpine:3.19
12+
FROM alpine:3.21
1313

14-
COPY --from=build /go/bin/sentinelnode /usr/local/bin/process
14+
COPY --from=build /go/bin/dvpnx /usr/local/bin/dvpnx
1515
COPY --from=build /root/hnsd/hnsd /usr/local/bin/hnsd
1616

1717
RUN apk add --no-cache iptables unbound-libs v2ray wireguard-tools && \
1818
rm -rf /etc/v2ray/ /usr/share/v2ray/
1919

20-
CMD ["process"]
20+
ENTRYPOINT ["dvpnx"]

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ COMMIT := $(shell git log -1 --format='%H')
55
TAGS := $(strip netgo)
66
LD_FLAGS := -s -w \
77
-X github.com/cosmos/cosmos-sdk/version.Name=sentinel \
8-
-X github.com/cosmos/cosmos-sdk/version.AppName=sentinelnode \
8+
-X github.com/cosmos/cosmos-sdk/version.AppName=dvpnx \
99
-X github.com/cosmos/cosmos-sdk/version.Version=${VERSION} \
1010
-X github.com/cosmos/cosmos-sdk/version.Commit=${COMMIT} \
1111
-X github.com/cosmos/cosmos-sdk/version.BuildTags=${TAGS}
@@ -17,7 +17,7 @@ benchmark:
1717
.PHONY: build
1818
build:
1919
go build -ldflags="${LD_FLAGS}" -mod=readonly -tags="${TAGS}" -trimpath \
20-
-o ./bin/sentinelnode main.go
20+
-o ./bin/dvpnx main.go
2121

2222
.PHONY: clean
2323
clean:
@@ -29,11 +29,11 @@ default: clean build
2929
.PHONY: install
3030
install:
3131
go build -ldflags="${LD_FLAGS}" -mod=readonly -tags="${TAGS}" -trimpath \
32-
-o "${GOPATH}/bin/sentinelnode" main.go
32+
-o "${GOPATH}/bin/dvpnx" main.go
3333

3434
.PHONY: build-image
3535
build-image:
36-
@docker build --compress --file Dockerfile --force-rm --tag sentinel-dvpn-node .
36+
@docker build --compress --file Dockerfile --force-rm --tag dvpnx .
3737

3838
.PHONY: go-lint
3939
go-lint:

cmd/root.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ import (
1111
"github.com/spf13/viper"
1212
)
1313

14-
// NewRootCmd returns the main/root command for the dvpn-node CLI.
14+
// NewRootCmd returns the main/root command for the Sentinel dVPN node CLI.
1515
// It sets up persistent flags, config file reading, and attaches subcommands.
1616
func NewRootCmd(homeDir string) *cobra.Command {
1717
rootCmd := &cobra.Command{
18-
Use: "dvpn-node",
18+
Use: "dvpnx",
1919
Short: "Run and manage the Sentinel dVPN node",
2020
Long: `The Sentinel dVPN node software lets users join the decentralized VPN network on the Sentinel Hub blockchain,
2121
providing secure, private, and censorship-resistant internet access while earning cryptocurrency rewards.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ require (
1212
github.com/gin-contrib/cors v1.7.2
1313
github.com/gin-gonic/gin v1.9.1
1414
github.com/sentinel-official/hub/v12 v12.0.0-rc9
15-
github.com/sentinel-official/sentinel-go-sdk v1.0.0-rc5
15+
github.com/sentinel-official/sentinel-go-sdk v1.0.0-rc5.0.20250114070954-c175d6cf03f8
1616
github.com/soheilhy/cmux v0.1.5
1717
github.com/spf13/cobra v1.8.1
1818
github.com/spf13/viper v1.19.0

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,8 @@ github.com/sentinel-official/hub/v12 v12.0.0-rc9 h1:ZLCOUyFCvu8D3S8HNX6sWKm5wE7I
513513
github.com/sentinel-official/hub/v12 v12.0.0-rc9/go.mod h1:XouLQPAOkYh5PEcForT+YfoPOf3AfNS9dV6moyVb68k=
514514
github.com/sentinel-official/sentinel-go-sdk v1.0.0-rc5 h1:USYa8SeMhhJNJelOJN9ST2iwEwTbhn0ZiFXBCeWxd9Y=
515515
github.com/sentinel-official/sentinel-go-sdk v1.0.0-rc5/go.mod h1:T9xUZH4e6Ro/Dg01481+GP5oyQPriLkGrvQ2gctptz4=
516+
github.com/sentinel-official/sentinel-go-sdk v1.0.0-rc5.0.20250114070954-c175d6cf03f8 h1:8dJMjSlBOvy8Bh3lxx8MuqbFnayCIp7nKUq1WJaD/Ao=
517+
github.com/sentinel-official/sentinel-go-sdk v1.0.0-rc5.0.20250114070954-c175d6cf03f8/go.mod h1:T9xUZH4e6Ro/Dg01481+GP5oyQPriLkGrvQ2gctptz4=
516518
github.com/shirou/gopsutil/v4 v4.24.11 h1:WaU9xqGFKvFfsUv94SXcUPD7rCkU0vr/asVdQOBZNj8=
517519
github.com/shirou/gopsutil/v4 v4.24.11/go.mod h1:s4D/wg+ag4rG0WO7AiTj2BeYCRhym0vM7DHbZRxnIT8=
518520
github.com/showwin/speedtest-go v1.7.9 h1:5b3T3U3WSppVXFqsIqF1zdHRYKKVuPNpzFU71HnYNEY=

main.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@ import (
1010
"github.com/sentinel-official/dvpn-node/cmd"
1111
)
1212

13-
func init() {
13+
func main() {
1414
// Enable Cobra's feature to traverse and execute hooks for commands.
1515
cobra.EnableTraverseRunHooks = true
16-
}
1716

18-
func main() {
1917
// Retrieve the user's home directory.
2018
userDir, err := os.UserHomeDir()
2119
if err != nil {
@@ -24,7 +22,7 @@ func main() {
2422
}
2523

2624
// Define the default home directory for the application.
27-
homeDir := filepath.Join(userDir, ".sentinelnode")
25+
homeDir := filepath.Join(userDir, ".dvpnx")
2826

2927
// Initialize the root command for the application.
3028
rootCmd := cmd.NewRootCmd(homeDir)

0 commit comments

Comments
 (0)