Skip to content

Revert the Docker.wolfi base image back to a known working version - #358

Merged
mattnowzari merged 1 commit into
mainfrom
revert_wolfi_renovate_base_change
Jul 22, 2025
Merged

Revert the Docker.wolfi base image back to a known working version#358
mattnowzari merged 1 commit into
mainfrom
revert_wolfi_renovate_base_change

Conversation

@mattnowzari

Copy link
Copy Markdown
Contributor

This PR reverts the change made by this renovate PR

Checklists

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

@mattnowzari
mattnowzari requested a review from a team as a code owner July 22, 2025 12:38
@mattnowzari mattnowzari changed the title Revert the base image back to a known working version Revert the Docker.wolfi base image back to a known working version Jul 22, 2025
@artem-shelkovnikov

Copy link
Copy Markdown
Member

What happened?

@mattnowzari

Copy link
Copy Markdown
Contributor Author

@artem-shelkovnikov Turns out the new base image doesn't actually build successfully, and I didn't catch it when I approved/merged bc when I did local testing I accidentally built the non-wolfi image 🙃

ERROR: failed to build: failed to solve: process "/bin/sh -c apk update && apk add --no-cache libcurl-openssl4=~8.12.1" did not complete successfully: exit code: 127

@lorenabalan was looking at potentially fixing it, but we will meet up later today and decide if it's fixable or we should revert and revisit after we do the 0.4 release

@artem-shelkovnikov

Copy link
Copy Markdown
Member

Should we also adjust CI to catch such errors before they go too far?

@mattnowzari

mattnowzari commented Jul 22, 2025

Copy link
Copy Markdown
Contributor Author

@lorenabalan is one step ahead of us with this PR she's working on 😆 -> #357

@mattnowzari
mattnowzari merged commit 80342c3 into main Jul 22, 2025
5 checks passed
@mattnowzari
mattnowzari deleted the revert_wolfi_renovate_base_change branch July 22, 2025 13:09
github-actions Bot pushed a commit that referenced this pull request Jul 22, 2025
)

This PR reverts the change made by this renovate
[PR](#349)

### Checklists

<!--You can remove unrelated items from checklists below and/or add new
items that may help during the review.-->

#### Pre-Review Checklist
- [x] 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`)
- [x] 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
- [x] this PR has a thorough description
- [ ] Covered the changes with automated tests
- [x] Tested the changes locally
- [x] 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
@github-actions

Copy link
Copy Markdown

💚 Backport PR(s) successfully created

Status Branch Result
0.3 #359

This backport PR will be merged automatically after passing CI.

mattnowzari added a commit that referenced this pull request Jul 22, 2025
)

This PR reverts the change made by this renovate
[PR](#349)

### Checklists

<!--You can remove unrelated items from checklists below and/or add new
items that may help during the review.-->

#### Pre-Review Checklist
- [x] 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`)
- [x] 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
- [x] this PR has a thorough description
- [ ] Covered the changes with automated tests
- [x] Tested the changes locally
- [x] 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

(cherry picked from commit 80342c3)
@mattnowzari

Copy link
Copy Markdown
Contributor Author

💚 All backports created successfully

Status Branch Result
0.4

Questions ?

Please refer to the Backport tool documentation

mattnowzari added a commit that referenced this pull request Jul 22, 2025
…ion (#358) (#359)

Backports the following commits to 0.3:
- Revert the Docker.wolfi base image back to a known working version
(#358)

Co-authored-by: Matt Nowzari <matt.nowzari@elastic.co>
mattnowzari added a commit that referenced this pull request Jul 22, 2025
…ion (#358) (#360)

# Backport

This will backport the following commits from `main` to `0.4`:
- [Revert the Docker.wolfi base image back to a known working version
(#358)](#358)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)
@lorenabalan lorenabalan mentioned this pull request Jul 22, 2025
10 tasks
lorenabalan added a commit that referenced this pull request Jul 22, 2025
### 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)
mattnowzari pushed a commit that referenced this pull request Oct 6, 2025
### 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)
mattnowzari pushed a commit that referenced this pull request Oct 6, 2025
### 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)
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.

2 participants