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

control-service: job-builder using kaniko fix #2429

Merged
merged 4 commits into from
Jul 22, 2023
Merged

Conversation

antoniivanov
Copy link
Collaborator

@antoniivanov antoniivanov commented Jul 19, 2023

The way we are preparing our job-builder image is like this:

FROM gcr.io/kaniko-project/executor

FROM alpine

COPY --from=0 /kaniko /kaniko

This is apparently known issue and caused this outage described in #2391

https://github.com/GoogleContainerTools/kaniko#known-issues

Running kaniko in any Docker image other than the official kaniko
image is not supported (ie YMMV).
This includes copying the kaniko executables from the official image
into another image.

So instead making sure we built from kaniko image directly should fix the issue

See #2391

Testing Done: Beyond automated tests I also tested it in one of environments where the issue in #2391 reproduce and verified with the new image the jobs are correctly built.

@antoniivanov antoniivanov force-pushed the person/aivanov/cs branch 5 times, most recently from dedbfa4 to 09955b0 Compare July 20, 2023 08:56
The way we are preparing our job-builder image is like this:

```
FROM gcr.io/kaniko-project/executor

FROM alpine

COPY --from=0 /kaniko /kaniko
```

This is apparently known issue :
https://github.com/GoogleContainerTools/kaniko#known-issues

> Running kaniko in any Docker image other than the official kaniko
image is not supported (ie YMMV).
> This includes copying the kaniko executables from the official image
into another image.

So instead making sure we built from kaniko image directly should fix
the issue

See #2391

Google Java Format

control-service: job-builder uisng kaniko fix
@mivanov1988
Copy link
Collaborator

Good job!

@antoniivanov antoniivanov merged commit 2946b23 into main Jul 22, 2023
@antoniivanov antoniivanov deleted the person/aivanov/cs branch July 22, 2023 18:44
antoniivanov added a commit that referenced this pull request Jul 24, 2023
The same fix as applied on job-builder here
(#2429) need to be
applied on job-builder-secure

This also slightly refactors and simplifies the image build code by
reusing the job-builder image thus reducing unneeded duplication.
There were a few previous fixes in job-builder that were never ported to
job-builder-secure.

Added a bit more clear readme.
antoniivanov added a commit that referenced this pull request Jul 24, 2023
The same fix as applied on job-builder here
(#2429) need to be
applied on job-builder-secure

This also slightly refactors and simplifies the image build code by
reusing the job-builder image thus reducing unneeded duplication. There
were a few previous fixes in job-builder that were never ported to
job-builder-secure.

Added a bit more clear readme.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Newest Data Job Base Images are Broken
4 participants