storj/cmd/storagenode
Cameron Ayer 07acf0e574 cmd/storagenode: add docker env variable to toggle running setup
Previously, we ran setup if no config file was found in the expected dir.
However, there may be situations where a previously set up node's files
may be unreachable. In this case, we would prefer to exit with an error
rather than assume this node needs to be initialized.

The solution here is to add a new env variable to call the setup command.
If SETUP == true, the node will setup, but not run. If SETUP != true,
the node will run and not setup.

If a previously set up node runs with SETUP, it will return an error.
If a node runs without an initial SETUP, it will return an error.

Change-Id: Id2c796ec3d43f2add5e5f34fb777a563eae59f2f
2020-11-11 13:11:19 +00:00
..
dashboard.go storagenode/internalpb: move inspector.proto 2020-10-30 14:51:26 +02:00
dashboard.sh Merge alpha directory with main storagenode directory (#1817) 2019-04-23 17:51:04 +02:00
deprecated.go storagenode/{monitor,pieces}, storage/filestore: add loop to check storage directory writability 2020-08-31 21:20:49 +00:00
Dockerfile cmd/storagenode: add docker env variable to toggle running setup 2020-11-11 13:11:19 +00:00
entrypoint cmd/storagenode: add docker env variable to toggle running setup 2020-11-11 13:11:19 +00:00
gracefulexit_test.go cmd/storagenode: add check if satellites available to gracefulexit 2020-06-10 13:38:36 +00:00
gracefulexit.go storagenode/internalpb: move gracefulexit.proto 2020-10-30 15:24:56 +02:00
main_test.go cmd/storagenode: enable migration of configs of different types (#3189) 2019-10-08 14:26:53 -04:00
main.go storagenode/storagenodedb: add ctx to OpenNew and OpenExisting 2020-10-29 09:52:37 +02:00
storagenode.yaml all: fix comments about grpc 2020-05-11 13:05:34 +03:00
windows.go ci: fix golangci-lint failures 2020-06-05 12:55:35 +00:00