Skip to content

Commit d136567

Browse files
authored
feat: add AI component configs (#41)
* feat: add AI component health check and dynamic configuration * refactor: improve AI endpoint health check with context timeout * fix: correct Redis port and add TODO for AI component env vars * chore: update Go module dependencies and add Makefile for build and linting - Updated Go version from 1.22.3 to 1.22.7. - Changed node dependency from v1.2.0 to v2.0.0-rc. - Updated protocol-go dependency from v0.5.14 to v0.5.16. - Updated various indirect dependencies to their latest versions. - Added a Makefile for linting and building the project. * chore: update Go version in CI workflow from 1.21 to 1.22.7 * fix: lint issue * chore: update NODE_VERSION to v2.0.0-rc in automated_deploy.sh
1 parent 365d5a6 commit d136567

9 files changed

Lines changed: 417 additions & 145 deletions

File tree

.DS_Store

6 KB
Binary file not shown.

.github/workflows/lint.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
- name: Setup Go
1414
uses: actions/setup-go@v5
1515
with:
16-
go-version: "1.21"
16+
go-version: "1.22.7"
1717
- name: Checkout
1818
uses: actions/checkout@v4
1919
- name: GolangCI Lint
2020
uses: golangci/golangci-lint-action@v6
2121
with:
22-
version: v1.55.2
22+
version: v1.64.7

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
dist/
33

44
.idea/
5+
6+
config/

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Run golangci-lint to lint the whole codebase, ensuring code quality
2+
lint:
3+
go mod tidy
4+
go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.64.7 run
5+
6+
build:
7+
go build -o ./build/node-automated-deployer .
8+
9+
run:
10+
go run main.go compose > config/docker-compose.yaml

automated_deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ DEPLOYER_VERSION="v0.5.5"
66
DEPLOYER_RELEASE_URL="https://github.com/RSS3-Network/$DEPLOYER_NAME/releases"
77

88
# The version of RSS3 Node to deploy
9-
NODE_VERSION="v1.2.0"
9+
NODE_VERSION="v2.0.0-rc"
1010

1111
# Detect the operating system
1212
OS=$(uname -s)

go.mod

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,39 @@
11
module github.com/rss3-network/node-automated-deployer
22

3-
go 1.22.3
3+
go 1.22.7
44

55
require (
6-
github.com/rss3-network/node v1.2.0
7-
github.com/rss3-network/protocol-go v0.5.14
8-
github.com/spf13/cobra v1.8.1
6+
github.com/rss3-network/node/v2 v2.0.0-rc
7+
github.com/rss3-network/protocol-go v0.5.16
8+
github.com/spf13/cobra v1.9.1
99
gopkg.in/yaml.v3 v3.0.1
1010
)
1111

1212
require (
1313
github.com/Microsoft/go-winio v0.6.2 // indirect
1414
github.com/bits-and-blooms/bitset v1.10.0 // indirect
1515
github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect
16+
github.com/cockroachdb/fifo v0.0.0-20240816210425-c5d0cb0b6fc0 // indirect
1617
github.com/consensys/bavard v0.1.13 // indirect
1718
github.com/consensys/gnark-crypto v0.12.1 // indirect
1819
github.com/crate-crypto/go-kzg-4844 v0.7.0 // indirect
1920
github.com/creasty/defaults v1.8.0 // indirect
2021
github.com/deckarep/golang-set/v2 v2.3.1 // indirect
21-
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect
22+
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0 // indirect
2223
github.com/ethereum/c-kzg-4844 v0.4.0 // indirect
2324
github.com/ethereum/go-ethereum v1.13.15 // indirect
24-
github.com/fsnotify/fsnotify v1.7.0 // indirect
25-
github.com/gabriel-vasile/mimetype v1.4.5 // indirect
25+
github.com/fsnotify/fsnotify v1.8.0 // indirect
26+
github.com/gabriel-vasile/mimetype v1.4.8 // indirect
2627
github.com/go-ole/go-ole v1.3.0 // indirect
2728
github.com/go-playground/locales v0.14.1 // indirect
2829
github.com/go-playground/universal-translator v0.18.1 // indirect
29-
github.com/go-playground/validator/v10 v10.23.0 // indirect
30+
github.com/go-playground/validator/v10 v10.25.0 // indirect
3031
github.com/google/uuid v1.6.0 // indirect
31-
github.com/gorilla/websocket v1.5.0 // indirect
32+
github.com/gorilla/websocket v1.5.3 // indirect
3233
github.com/hashicorp/hcl v1.0.0 // indirect
3334
github.com/holiman/uint256 v1.2.4 // indirect
3435
github.com/inconshreveable/mousetrap v1.1.0 // indirect
35-
github.com/labstack/echo/v4 v4.12.0 // indirect
36+
github.com/labstack/echo/v4 v4.13.3 // indirect
3637
github.com/labstack/gommon v0.4.2 // indirect
3738
github.com/leodido/go-urn v1.4.0 // indirect
3839
github.com/magiconair/properties v1.8.7 // indirect
@@ -43,28 +44,28 @@ require (
4344
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
4445
github.com/sagikazarmark/locafero v0.4.0 // indirect
4546
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
46-
github.com/samber/lo v1.47.0 // indirect
47+
github.com/samber/lo v1.49.1 // indirect
4748
github.com/shirou/gopsutil v3.21.11+incompatible // indirect
4849
github.com/sourcegraph/conc v0.3.0 // indirect
49-
github.com/spf13/afero v1.11.0 // indirect
50+
github.com/spf13/afero v1.12.0 // indirect
5051
github.com/spf13/cast v1.6.0 // indirect
51-
github.com/spf13/pflag v1.0.5 // indirect
52+
github.com/spf13/pflag v1.0.6 // indirect
5253
github.com/spf13/viper v1.19.0 // indirect
5354
github.com/subosito/gotenv v1.6.0 // indirect
5455
github.com/supranational/blst v0.3.11 // indirect
5556
github.com/tklauser/go-sysconf v0.3.12 // indirect
5657
github.com/tklauser/numcpus v0.6.1 // indirect
5758
github.com/valyala/bytebufferpool v1.0.0 // indirect
5859
github.com/valyala/fasttemplate v1.2.2 // indirect
59-
github.com/yusufpapurcu/wmi v1.2.3 // indirect
60+
github.com/yusufpapurcu/wmi v1.2.4 // indirect
6061
go.uber.org/multierr v1.11.0 // indirect
6162
go.uber.org/zap v1.27.0 // indirect
62-
golang.org/x/crypto v0.28.0 // indirect
63+
golang.org/x/crypto v0.33.0 // indirect
6364
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
64-
golang.org/x/net v0.30.0 // indirect
65-
golang.org/x/sync v0.9.0 // indirect
66-
golang.org/x/sys v0.27.0 // indirect
67-
golang.org/x/text v0.20.0 // indirect
65+
golang.org/x/net v0.35.0 // indirect
66+
golang.org/x/sync v0.11.0 // indirect
67+
golang.org/x/sys v0.30.0 // indirect
68+
golang.org/x/text v0.22.0 // indirect
6869
gopkg.in/ini.v1 v1.67.0 // indirect
6970
rsc.io/tmplfunc v0.0.3 // indirect
7071
)

0 commit comments

Comments
 (0)