- 07 May, 2021 13 commits
-
-
Éloïs authored
-
Éloïs authored
-
Éloïs authored
-
Éloïs authored
-
Éloïs authored
little closer to conventionalcommits.org
-
Éloïs authored
-
Éloïs authored
[ref] externalyze gva configuration See merge request nodes/typescript/duniter!1379
-
Éloïs authored
-
Éloïs authored
Docker entrypoint - fixes and error handling See merge request nodes/typescript/duniter!1380
-
Gilles Filippini authored
When `/etc/duniter` is not mounted as a persistent volume, the configuration file is lost after re-creating the instance. To prevent this, before transitionning the configuration file from volume '/var/lib/duniter' to volume '/etc/duniter', the entrypoint backups it into '/var/lib/duniter'. On restart, if the entrypoint detects that the link to '/etc/duniter/conf.json' is dangling, it prints a big fat warning into the logs and re-use the backuped config file.
-
Gilles Filippini authored
Boolean variable to enable `set -x` in the entrypoint script.
-
Gilles Filippini authored
The script '/usr/bin/duniter' sets this option as well and the duniter executable won't accept more than one.
-
Gilles Filippini authored
And uset `set -u` to prevent this from happening again.
-
- 06 May, 2021 3 commits
- 05 May, 2021 7 commits
- 02 May, 2021 4 commits
- 25 Apr, 2021 1 commit
-
-
Éloïs authored
-
- 23 Apr, 2021 1 commit
-
-
Éloïs authored
-
- 22 Apr, 2021 2 commits
- 21 Apr, 2021 4 commits
- 19 Apr, 2021 1 commit
-
-
- 18 Apr, 2021 3 commits
-
-
Éloïs authored
-
-
First of all, this script moves the duniter configuration file 'conf.json' into the '/etc/duniter' volume, so that one could delete the '/var/lib/duniter' volume without losing the configuration. A symbolic link is set up into /var/lib/duniter/duniter_default to point to the new path: /var/lib/duniter/duniter_default/conf.json -> /etc/duniter/conf.json Then, this script enables the folowing environment variables: * DUNITER_MANUAL_CONFIG (boolean, default = false) When set to 'true' (or 'yes', or '1'), the script waits until the file '/etc/duniter/conf.json.orig' is present before starting the duniter service. Here is the workflow when enabled: 1. wait for '/etc/duniter/conf.json.orig' 2. if this file was changed since the previous startup: 2.1. Save 'conf.json' to 'conf.json.old' 2.2. Replace 'conf.json' with 'conf.json.orig' 2.3. Save the new file's checksum to compare with at next startup 3. continue the startup sequence When set to false, the startup sequence continues. Requires 'jq' to sort the files before comparing them. * DUNITER_AUTO_SYNC (boolean, default = false) Requires 'DUNITER_SYNC_HOST'. When set to 'true' (or 'yes', or '1') and the folder '/var/lib/duniter/duniter_default/data' doesn't exist, a 'duniter sync' command will be issued before starting the service. When set to false, the service is started directly. * DUNITER_SYNC_HOST (hostname, default = "") This is the 'host:port' parameter to use with 'duniter sync' when 'DUNITER_AUTO_SYNC' is enabled. The synchronization won't be launched when the variable is not defined or empty.
-
- 17 Apr, 2021 1 commit
-
-
Éloïs authored
-