mirror of
https://github.com/go-i2p/go-i2p-testnet.git
synced 2025-06-15 21:28:44 -04:00
-git clone from the config branch instead
-make run -named image to go-i2p-node
This commit is contained in:
2
Makefile
2
Makefile
@ -30,4 +30,4 @@ test:
|
||||
$(GOTEST) -v ./...
|
||||
|
||||
run: build
|
||||
./$(BUILD_DIR)/$(BINARY_NAME1)
|
||||
cd $(BUILD_DIR) && ./$(BINARY_NAME1)
|
@ -10,7 +10,7 @@ RUN apk update && apk add --no-cache \
|
||||
gcc \
|
||||
musl-dev
|
||||
|
||||
RUN git clone -b noise-experimental https://github.com/go-i2p/go-i2p.git
|
||||
RUN git clone -b config https://github.com/hkh4n/go-i2p.git
|
||||
|
||||
WORKDIR /go/src/app/go-i2p/
|
||||
|
||||
|
4
main.go
4
main.go
@ -124,7 +124,7 @@ func createRouterContainer(cli *client.Client, ctx context.Context, routerID int
|
||||
|
||||
// Prepare container configuration
|
||||
containerConfig := &container.Config{
|
||||
Image: "go-i2p-testnet",
|
||||
Image: "go-i2p-node",
|
||||
Cmd: []string{"go-i2p"},
|
||||
}
|
||||
|
||||
@ -238,7 +238,7 @@ func main() {
|
||||
sigs := make(chan os.Signal, 1)
|
||||
signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)
|
||||
|
||||
err = docker_control.BuildDockerImage(cli, ctx, "go-i2p-testnet", "../docker")
|
||||
err = docker_control.BuildDockerImage(cli, ctx, "go-i2p-node", "../docker")
|
||||
if err != nil {
|
||||
log.Fatalf("Error building Docker image: %v", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user