Skip to content

Add hook after the options were intialized#85

Open
fredericbirke wants to merge 1 commit intoSwissLife-OSS:masterfrom
fredericbirke:add-hook-after-options-were-initialized
Open

Add hook after the options were intialized#85
fredericbirke wants to merge 1 commit intoSwissLife-OSS:masterfrom
fredericbirke:add-hook-after-options-were-initialized

Conversation

@fredericbirke
Copy link
Contributor

We boot the same container many times to simulate field device behaviour and need to hook into the ResourceOptions, so that container specific adaptions can be made (e.g. set a different name/id for each container, that is booted from the same image)

@swisslife-bot
Copy link

swisslife-bot commented Feb 25, 2021

CLA assistant check
All committers have signed the CLA.

@fredericbirke
Copy link
Contributor Author

fredericbirke commented Feb 25, 2021

The whitespace changes with the XML comments is a little bit weird, I don't seem to have those changes locally.

And it seems like I'm not able to fix those changes :D Do you work on windows machines? But even if, the changes are not a line ending change. Weird...

@glucaci
Copy link
Member

glucaci commented Feb 27, 2021

If I understand good this can be a feature to start a specific container and not to start from an image, is that right?
And than we can specify the options on each start rather than modify them after creation.

@fredericbirke
Copy link
Contributor Author

Yes exactly. This enables you to configure your container before it starts up by modifying the options. This is especially useful, if you start multiple containers from the same image, that need different configurations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants