Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add update certificates to ./run.sh if RUNNER_UPDATE_CA_CERTS env is set #2471

Merged
merged 10 commits into from
Mar 8, 2023

Conversation

nikola-jokic
Copy link
Contributor

@nikola-jokic nikola-jokic commented Mar 3, 2023

When certificates are injected, the image should call update certificates before starting the runner.

If env RUNNER_UPDATE_CA_CERTS is set, the run.sh will try updating certificates before starting the runner

@nikola-jokic nikola-jokic requested a review from a team as a code owner March 3, 2023 13:20
rentziass
rentziass previously approved these changes Mar 3, 2023
Copy link
Member

@rentziass rentziass left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

images/Dockerfile Outdated Show resolved Hide resolved
images/entrypoint.sh Outdated Show resolved Hide resolved
images/entrypoint.sh Outdated Show resolved Hide resolved
images/entrypoint.sh Outdated Show resolved Hide resolved
images/entrypoint.sh Outdated Show resolved Hide resolved
images/entrypoint.sh Outdated Show resolved Hide resolved
images/entrypoint.sh Outdated Show resolved Hide resolved
src/Misc/layoutroot/run.sh Outdated Show resolved Hide resolved
src/Misc/layoutroot/run.sh Outdated Show resolved Hide resolved
Co-authored-by: Bassem Dghaidi <568794+Link-@users.noreply.github.com>
src/Misc/layoutroot/run.sh Outdated Show resolved Hide resolved
nikola-jokic and others added 2 commits March 8, 2023 12:11
Co-authored-by: Bassem Dghaidi <568794+Link-@users.noreply.github.com>
Co-authored-by: Bassem Dghaidi <568794+Link-@users.noreply.github.com>
Link-
Link- previously approved these changes Mar 8, 2023
Copy link
Member

@Link- Link- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@nikola-jokic nikola-jokic changed the title Included entrypoint that will update certs and run ./run.sh Add update certificates to ./run.sh if RUNNER_UPDATE_CA_CERTS env is set Mar 8, 2023
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
@TingluoHuang TingluoHuang merged commit 2dfa28e into main Mar 8, 2023
@TingluoHuang TingluoHuang deleted the nikola-jokic/docker-entrypoint branch March 8, 2023 17:29
nikola-jokic added a commit to nikola-jokic/runner that referenced this pull request May 12, 2023
…set (actions#2471)

* Included entrypoint that will update certs and run ./run.sh

* update ca if RUNNER_UPDATE_CA env is set

* changed env variable to RUNNER_UPDATE_TRUST_STORE

* moved entrypoint to be run.sh, removed Dockerfile entrypoint, added envvar that will update certs

* Update src/Misc/layoutroot/run.sh

Co-authored-by: Bassem Dghaidi <568794+Link-@users.noreply.github.com>

* Update src/Misc/layoutroot/run.sh

Co-authored-by: Bassem Dghaidi <568794+Link-@users.noreply.github.com>

* Update src/Misc/layoutroot/run.sh

Co-authored-by: Bassem Dghaidi <568794+Link-@users.noreply.github.com>

* Update src/Misc/layoutroot/run.sh

Co-authored-by: Tingluo Huang <tingluohuang@github.com>

* Update src/Misc/layoutroot/run.sh

Co-authored-by: Tingluo Huang <tingluohuang@github.com>

* removed doc comment on func

---------

Co-authored-by: Bassem Dghaidi <568794+Link-@users.noreply.github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
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.

4 participants