Skip to content
This repository was archived by the owner on Oct 28, 2024. It is now read-only.

Work around git init with closure#532

Merged
cachedout merged 1 commit intoelastic:masterfrom
cachedout:docker_closure
May 14, 2020
Merged

Work around git init with closure#532
cachedout merged 1 commit intoelastic:masterfrom
cachedout:docker_closure

Conversation

@cachedout
Copy link
Copy Markdown
Contributor

@cachedout cachedout commented May 14, 2020

What does this PR do?

When attempting to introduce the Google credentials in #529 a problem was encountered. The credentials file was not present in the built container.

The reason for this is that the git init that's run as a part of the git step will wipe out the existing directory. As a result, we need to insert our credentials file after the git init takes place but before the container is built.

This attempts to do so without being too disruptive to the current architecture by adding a new argument to buildDockerImage which can be a closure which executes after the git step but before the Docker build.

Why is it important?

Hopefully resolves the issue with opbot not having the needed credentials file on start.

Related issues

Refs elastic/observability-robots#39

@cachedout cachedout requested a review from kuisathaverat May 14, 2020 09:03
@cachedout cachedout self-assigned this May 14, 2020
@ghost
Copy link
Copy Markdown

ghost commented May 14, 2020

💚 Build Succeeded

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

Test stats 🧪

Test Results
Failed 0
Passed 508
Skipped 9
Total 517

@cachedout cachedout requested a review from v1v May 14, 2020 09:34
@cachedout cachedout merged commit eccd15c into elastic:master May 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants