Skip to content

Commit ba9d895

Browse files
committed
update go version in docker file
1 parent a4e3a1d commit ba9d895

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

go.work

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
go 1.23.0
22

33
use ./node-registrar
4+
use ./rmb-sdk-go

node-registrar/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.21-alpine AS builder
1+
FROM golang:1.23-alpine AS builder
22

33
WORKDIR /app
44

node-registrar/README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Replace `<domain>` and `<port>` with the appropriate values.
9191
1. To use the docker file to build the docker image, run this command in the root directory of the sdk
9292

9393
```bash
94-
docker build -t myserver:latest -f node-registrar/Dockerfile .
94+
docker build -t registrar:latest -f node-registrar/Dockerfile .
9595
```
9696

9797
2. run the image
@@ -162,7 +162,17 @@ import "github.com/threefoldtech/tfgrid-sdk-go/node-registrar/client"
162162
cli, err := client.NewRegistrarClient("https://registrar.dev.grid.tf", mnemonic)
163163

164164
// Register a node
165-
nodeID, err := cli.RegisterNode(farmID, twinID, interfaces, location, resources, serialNumber, secureBoot, virtualized)
165+
node := Node{
166+
TwinID: twinID,
167+
FarmID: farmID,
168+
Interfaces: interfaces,
169+
Location: location,
170+
Resources: resources,
171+
SerialNumber: serialNumber,
172+
SecureBoot: secureBoot,
173+
Virtualized: virtualized,
174+
}
175+
nodeID, err := cli.RegisterNode(node)
166176
```
167177

168178
### Generating Swagger Documentation

0 commit comments

Comments
 (0)