Skip to content
Snippets Groups Projects

docker: simplify duniter subcommand run

Merged pini requested to merge pini-docker-entrypoint into master
All threads resolved!
4 files
+ 22
6
Compare changes
  • Side-by-side
  • Inline
Files
4
  • 1bc2a172
    When the first argument of the entrypoint is '--' then bypass the default
    configuration via environment variables and directly run duniter with the
    given parameters (after removing the '--').
    
    The affected scripts and documentation were updated.
+ 9
1
@@ -87,4 +87,12 @@ Once you are happy with your `docker-compose.yml` file, run in the same folder:
@@ -87,4 +87,12 @@ Once you are happy with your `docker-compose.yml` file, run in the same folder:
```bash
```bash
docker compose up -d
docker compose up -d
```
```
\ No newline at end of file
 
## Running duniter subcommands or custom set of options
 
 
To run duniter from the command line without the default configuration detailed in the "Environment variables" section use `--` as the first argument. For example:
 
```
 
$ docker run --rm duniter/duniter-v2s:latest -- key generate
 
$ docker run --rm duniter/duniter-v2s:latest -- --chain gdev ...
 
```
Loading