Hi, it seems there were some breaking changes or I still do not fully understand what is going on. Really looking for some additional comments, best would be a straight solution. Below pls find the code. Sorry that this time it is podman
not docker
, however, the difference should be negligible.
$snname=storagenode
idpath="$homedir/.local/share/storj/identity/$snname"
configpath="/absolute/path/to/directory1"
databasepath="/absolute/path/to/directory1"
storagepath="/absolute/path/to/directory2"
mkdir -p $configpath
mkdir -p $storagepath
podman run --rm \
-e PUID=$(id -u) \
-e PGID=$(id -g) \
--volume "$idpath":/app/identity:Z \
--volume "$configpath":/app/config:Z \
--volume "$databasepath":/app/database:Z \
--volume "$storagepath":/app/storage \
--name $snname docker.io/storjlabs/storagenode:latest \
--identity-dir identity --config-dir config --storage2.database-dir database --storage.path storage --log.output database/storagenode.log
Result:
2023-07-22 23:50:36,694 INFO success: storagenode-updater entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-07-22 23:50:36,734 INFO exited: storagenode (exit status 1; not expected)
2023-07-22 23:50:38,738 INFO spawned: 'storagenode' with pid 85
2023-07-22 23:50:38,776 INFO exited: storagenode (exit status 1; not expected)
2023-07-22 23:50:41,780 INFO spawned: 'storagenode' with pid 94
2023-07-22 23:50:41,820 INFO exited: storagenode (exit status 1; not expected)
2023-07-22 23:50:42,821 INFO gave up: storagenode entered FATAL state, too many start retries too quickly
2023-07-22 23:50:43,822 WARN received SIGQUIT indicating exit request
2023-07-22 23:50:43,823 INFO waiting for processes-exit-eventlistener, storagenode-updater to die
2023-07-22T23:50:43.823Z INFO Got a signal from the OS: "terminated" {"Process": "storagenode-updater"}
2023-07-22 23:50:43,825 INFO stopped: storagenode-updater (exit status 0)
2023-07-22 23:50:44,827 INFO stopped: processes-exit-eventlistener (terminated by SIGTERM)
What I would like to do is to:
i) all database files (*.db
), config.yaml
and also trust-cache.json
to be located in: /absolute/path/to/directory1
, also I would like to keep the the log file in this location
and
ii) directories such as orders
and storage
to be located in: /absolute/path/to/directory2
.
Would there be any referential example of code that separates storage
from all other files
?