Skip to content

Commit

Permalink
Add database-dir argument to sw_operator (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
huy-nodeset authored Jun 27, 2024
1 parent 6511d11 commit 94bc29b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require (
github.com/ethereum/go-ethereum v1.14.3
github.com/gdamore/tcell/v2 v2.7.4
github.com/nodeset-org/hyperdrive-daemon v1.0.1-0.20240626154409-dbf74e06cfbc
github.com/nodeset-org/hyperdrive-stakewise v1.0.1
github.com/nodeset-org/hyperdrive-stakewise v1.0.2-0.20240626182050-b7711fdc0807
github.com/rivo/tview v0.0.0-20230208211350-7dfff1ce7854 // DO NOT UPGRADE
github.com/rocket-pool/node-manager-core v0.5.1-0.20240626035622-4b599f07845e
golang.org/x/sync v0.7.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ github.com/morikuni/aec v1.0.0 h1:nP9CBfwrvYnBRgY6qfDQkygYDmYwOilePFkwzv4dU8A=
github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc=
github.com/nodeset-org/hyperdrive-daemon v1.0.1-0.20240626154409-dbf74e06cfbc h1:FXoYrXuc5EGm+D2atCNrSuHahBTHzjYyGVRc/AxKONw=
github.com/nodeset-org/hyperdrive-daemon v1.0.1-0.20240626154409-dbf74e06cfbc/go.mod h1:dKhPk7dMoiLl2/8DzkPzatR3j6bH6HmfMG1EmOXcQJE=
github.com/nodeset-org/hyperdrive-stakewise v1.0.1 h1:/o51y+O2MfHOQyzqLQepes9Afho+49pEaIgCi9hmRTI=
github.com/nodeset-org/hyperdrive-stakewise v1.0.1/go.mod h1:exRKj9kwdtHODX9woOllW/ZSarzmopTnVOvLEMyw+OU=
github.com/nodeset-org/hyperdrive-stakewise v1.0.2-0.20240626182050-b7711fdc0807 h1:ETftVUN5YGbug61avl824J/Nd9puBtGm2v7epxu3u7k=
github.com/nodeset-org/hyperdrive-stakewise v1.0.2-0.20240626182050-b7711fdc0807/go.mod h1:exRKj9kwdtHODX9woOllW/ZSarzmopTnVOvLEMyw+OU=
github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec=
github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY=
github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
Expand Down
4 changes: 4 additions & 0 deletions install/deploy/templates/modules/stakewise/sw_operator.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ services:
{{$module_dir := (printf "%s/%s/%s" .Hyperdrive.UserDataPath.Value .ModulesDirectory .Stakewise.GetModuleName)}}
volumes:
- {{$module_dir}}:{{$module_dir}}
- {{.Stakewise.DataVolume}}:{{$module_dir}}/db/{{.Stakewise.Vault}}
command:
- "src/main.py"
- "start"
- "--data-dir={{$module_dir}}"
- "--database-dir={{$module_dir}}/db/{{.Stakewise.Vault}}"
- "--deposit-data-file={{$module_dir}}/{{.Stakewise.DepositDataFile}}"
- "--network={{.Stakewise.Network}}"
- "--vault={{.Stakewise.Vault}}"
Expand Down Expand Up @@ -54,3 +56,5 @@ networks:
{{$network}}:
external: true
{{- end}}
volumes:
{{.Stakewise.DataVolume}}:

0 comments on commit 94bc29b

Please sign in to comment.