create-adapter icon indicating copy to clipboard operation
create-adapter copied to clipboard

Devcontainer: Use startup scripts for docker instead of postCreateCommand to manage instances

Open AlCalzone opened this issue 5 years ago • 4 comments

https://forum.iobroker.net/post/525634

AlCalzone avatar Nov 23 '20 11:11 AlCalzone

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

UncleSamSwiss avatar Feb 26 '21 06:02 UncleSamSwiss

Hm I thought installing the instances was the problem. In any case, I'm not sure what needs to be done - any ideas?

AlCalzone avatar Feb 26 '21 07:02 AlCalzone

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!)

UncleSamSwiss avatar Feb 26 '21 07:02 UncleSamSwiss