Open ukkopahis opened 2 years ago
Err - 100 ? Should that be 1000 ?
I think it's only the commit message above. I couldn't find any 100 in the changed files (but I do have ancient eyeballs).
Err - 100 ? Should that be 1000 ?
I was trying to show what it does on a non-default install. Clarified.
I think it's better to change this so a .env
-file isn't needed nor generated.
Templates would still use the syntax allowing .env-use:
- PUID=${IOTSTACK_UID:?replace with your actual UID}
buildstackmenu.py would identify template environment variable values matching `^\${IOTSTACK[UG]ID:.*}$` and replace them with the actual UID/GID number of the user running the menu, resulting in a docker-compose.yml with e.g.
- PUID=1000
cat
) templates into your docker-compose.yml and adding a .env
-file to define required variables..env
-file (as in the original proposal)
DO NOT MERGE YET
On menu.sh start, store current UID and GID to
.env
, if they are missing. Use these to run services that support a custom user setting.Lines added to
.env
by menu.sh are e.g.:And in templates and services:
When dropping the ID=1000 assumption, there is only one chance to get this right:
Other small changes:
Resolves #542, Fixes #183