cekit / behave-test-steps

MIT License
0 stars 22 forks source link

S2i, build without run. Start named container with command #21

Closed jfdenise closed 5 years ago

jfdenise commented 5 years ago

This is to address cases where we want to start the s2i built image with a command (eg: bash).

For example: Given s2i build from . with env and False using master and run False When container integ- is started with command bash ...

jfdenise commented 5 years ago

@kabir FYI.

jfdenise commented 5 years ago

Marek, you went too quick, the new method doesn't work. The {tag} capture the without running.

jfdenise commented 5 years ago

@goldmann , I am going to name the new method "norun s2i build ..."

goldmann commented 5 years ago

Maybe s2i build and don't run {application}...?

goldmann commented 5 years ago

Or maybe just change the order of definitions, moving the without running above. Not sure if this works, but give it a try.

jmtd commented 3 years ago

Hi @jfdenise

For example: Given s2i build from . with env and False using master and run False When container integ- is started with command bash

Do you have a link to an example of this pattern in action? I want to do something similar but I'm not sure how to phrase the second part (container name integ- prefix but I need to estalblish the rest etc)

Thanks!

Edit: I just found something in the eap modules. Thanks anyway!