-
Notifications
You must be signed in to change notification settings - Fork 40
Build the wolfi image on CI #357
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
Conversation
a60789f to
c424ff2
Compare
mattnowzari
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚢 Thank you for adding this, this is excellent!
💔 Failed to create backport PR(s)The backport operation could not be completed due to the following error: The backport PRs will be merged automatically after passing CI. To backport manually run: |
### Description `elastic-renovate` recently [bumped](#349) the sha for the base image of our wolfi docker image. Unfortunately that broke our image as `apk` has been stripped out, which requires a re-work of the Dockerfile. The regression slipped through the cracks because on CI we only build the simple Docker image (`Dockerfile`), not the wolfi one. Wolfi is only built at release time. I tried a few different things to fix the new image, however it seems like it's a non-trivial amount of effort at this time, so we just [reverted the bump](#358). For future reference, I tried using `wget` instead of `curl`, as well as installing `curl` and `make` via another build stage (from an `alpine` image, and copy it into the next stages). For example kept running into issues making `make` work ``` > [builder 14/15] RUN make clean install: 0.116 rm -rf Jars.lock vendor/jars 0.158 script/environment 0.158 make: script/environment: No such file or directory 0.158 make: *** [Makefile:13: install] Error 127 ``` ### Checklists <!--You can remove unrelated items from checklists below and/or add new items that may help during the review.--> #### Pre-Review Checklist - [ ] This PR does NOT contain credentials of any kind, such as API keys or username/passwords (double check `crawler.yml.example` and `elasticsearch.yml.example`) - [ ] This PR has a meaningful title - [ ] This PR links to all relevant GitHub issues that it fixes or partially addresses - If there is no GitHub issue, please create it. Each PR should have a link to an issue - [ ] this PR has a thorough description - [ ] Covered the changes with automated tests - [ ] Tested the changes locally - [ ] Added a label for each target release version (example: `v0.1.0`) - [ ] Considered corresponding documentation changes - [ ] Contributed any configuration settings changes to the configuration reference - [ ] Ran `make notice` if any dependencies have been added ### Related Pull Requests <!--List any relevant PRs here or remove the section if this is a standalone PR. [* https://github.com/elastic/.../pull/123-->](https://github.com/elastic/crawler/pull/349) (cherry picked from commit 8b63c7b)
### Description `elastic-renovate` recently [bumped](#349) the sha for the base image of our wolfi docker image. Unfortunately that broke our image as `apk` has been stripped out, which requires a re-work of the Dockerfile. The regression slipped through the cracks because on CI we only build the simple Docker image (`Dockerfile`), not the wolfi one. Wolfi is only built at release time. I tried a few different things to fix the new image, however it seems like it's a non-trivial amount of effort at this time, so we just [reverted the bump](#358). For future reference, I tried using `wget` instead of `curl`, as well as installing `curl` and `make` via another build stage (from an `alpine` image, and copy it into the next stages). For example kept running into issues making `make` work ``` > [builder 14/15] RUN make clean install: 0.116 rm -rf Jars.lock vendor/jars 0.158 script/environment 0.158 make: script/environment: No such file or directory 0.158 make: *** [Makefile:13: install] Error 127 ``` ### Checklists <!--You can remove unrelated items from checklists below and/or add new items that may help during the review.--> #### Pre-Review Checklist - [ ] This PR does NOT contain credentials of any kind, such as API keys or username/passwords (double check `crawler.yml.example` and `elasticsearch.yml.example`) - [ ] This PR has a meaningful title - [ ] This PR links to all relevant GitHub issues that it fixes or partially addresses - If there is no GitHub issue, please create it. Each PR should have a link to an issue - [ ] this PR has a thorough description - [ ] Covered the changes with automated tests - [ ] Tested the changes locally - [ ] Added a label for each target release version (example: `v0.1.0`) - [ ] Considered corresponding documentation changes - [ ] Contributed any configuration settings changes to the configuration reference - [ ] Ran `make notice` if any dependencies have been added ### Related Pull Requests <!--List any relevant PRs here or remove the section if this is a standalone PR. [* https://github.com/elastic/.../pull/123-->](https://github.com/elastic/crawler/pull/349) (cherry picked from commit 8b63c7b)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `0.4`: - [Build the wolfi image on CI (#357)](#357) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) Co-authored-by: Lorena Bălan <lorena.balan@elastic.co>
# Backport This will backport the following commits from `main` to `0.3`: - [Build the wolfi image on CI (#357)](#357) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) Co-authored-by: Lorena Bălan <lorena.balan@elastic.co>
Description
elastic-renovaterecently bumped the sha for the base image of our wolfi docker image. Unfortunately that broke our image asapkhas been stripped out, which requires a re-work of the Dockerfile. The regression slipped through the cracks because on CI we only build the simple Docker image (Dockerfile), not the wolfi one. Wolfi is only built at release time.I tried a few different things to fix the new image, however it seems like it's a non-trivial amount of effort at this time, so we just reverted the bump.
For future reference, I tried using
wgetinstead ofcurl, as well as installingcurlandmakevia another build stage (from analpineimage, and copy it into the next stages). For example kept running into issues makingmakeworkChecklists
Pre-Review Checklist
crawler.yml.exampleandelasticsearch.yml.example)v0.1.0)make noticeif any dependencies have been addedRelated Pull Requests
#349