Use docker entrypoint.sh
as a mean to run CI with variables to activate tests
#3597
Closed
gustavovalverde
started this conversation in
Team Decisions
Replies: 3 comments 2 replies
-
Will this also make it easier for developers to run tests locally? I really like this idea, seems like it's worth doing gradually as we change the tests. |
Beta Was this translation helpful? Give feedback.
2 replies
-
This is already being used and was included at db966f2 |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is already being used and was included at db966f2 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
To reduce the dependency on the tools being used to deploy, their parsing issues or availability to run commands to start the container, a good approach could be to use an
entrypoint
that captures different possible scenarios to run tests or any other commands expected by zebra.An example is shown here: 6ae180b
This was a needed change as the GCP parser was not allowing
--
as a single argument for docker to run the container, which required the container to reach the deployment server with this command already built-in, but not as the "standard" or only way to run it.My proposal would be to include different variables that would run specific prebuilt
cargo
commands, as the one shown in the previous example.Other projects commonly use this kind of approach.
Beta Was this translation helpful? Give feedback.
All reactions