Skip to content

Commit

Permalink
docker: add MM_APPEND env var for appending additional minimega flags…
Browse files Browse the repository at this point in the history
… at runtime (#1542)
  • Loading branch information
glattercj authored Aug 30, 2024
1 parent 7bc31ac commit da0b90c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,10 @@ Docker when starting the container or by binding a file to
> networking is used (not host networking), then the `ports` section in your
> `docker-compose.yml` or `-p` arguments to `docker run` will need to be updated
> to the new value(s) specified.
Additional values can be appended to the minimega command by using:

```
MM_APPEND="-hashfiles -headnode=foo1"
```

4 changes: 3 additions & 1 deletion docker/start-minimega.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
: "${MM_FORCE:=true}"
: "${MM_RECOVER:=false}"
: "${MM_CGROUP:=/sys/fs/cgroup}"
: "${MM_APPEND:=}"

[[ -f "/etc/default/minimega" ]] && source "/etc/default/minimega"

Expand All @@ -36,4 +37,5 @@
-context=${MM_CONTEXT} \
-level=${MM_LOGLEVEL} \
-logfile=${MM_LOGFILE} \
-cgroup=${MM_CGROUP}
-cgroup=${MM_CGROUP} \
${MM_APPEND}

0 comments on commit da0b90c

Please sign in to comment.