create-adapter
create-adapter copied to clipboard
Devcontainer: Use startup scripts for docker instead of postCreateCommand to manage instances
https://forum.iobroker.net/post/525634
It turns out, the only problem is disabling Sentry. And this can also be achieved by setting "diag" to "none". See here: https://github.com/ioBroker/dev-server/blob/b96a5ec0b28880fbad68b17021bd82c5110fe2a7/src/index.ts#L765
Hm I thought installing the instances was the problem. In any case, I'm not sure what needs to be done - any ideas?
If you look at the original forum post, he left installing the adapter in and moved the Sentry part to the separate script.
IMHO the solution is undoing the following line in devcontainer.yml:
"postCreateCommand": "iob del discovery && iob object set system.config common.diag=\"none\" && iob object set system.config common.licenseConfirmed=true && NPM_PACK=$(npm pack) && iob url \"$(pwd)/$NPM_PACK\" --debug && rm \"$NPM_PACK\""
(untested!)