-
Notifications
You must be signed in to change notification settings - Fork 2
Setup
Wouter den Bakker edited this page Jun 19, 2018
·
8 revisions
- See also: [System requirements](System requirements)
- (processor) See the Validana Processor for instructions.
- (non-processor) See the Validana Node for instructions.
- Use the database setup for the Node or Processor.
- Download the Dockerfile file.
- Fill in the variables in the docker file. (Alternately you can provide them when starting the docker using
-e VARNAME=VALUEflags.) - Run
docker build -f Dockerfile -t vserver .where the server was downloaded.
- Use the database setup for the Node or Processor.
- Create a config file for the server. (Alternately use environment variables.)
- The first time use
docker run --name vserver -d vserver. - Subsequent times use
docker start vserver. - Log can be viewed using
docker logs vserver.
- Run
node dist/app.js path/to/config.json(From the folder the server is downloaded to.)- Everything will be logged to the standard output, most notably watch the first few seconds to see if there are problems with the setup.
- Run
docker stop vserver.
- Send a SIGINT for a graceful shutdown, send a SIGTERM for an attempted graceful shutdown, but a hard shutdown after 10 seconds, send a SIGKILL for an immediate shutdown.
- If the shutdown was not graceful it may be in the middle of processing a block, which won't be finished processing till it is started again.