mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Valery Kharseko
14 hours ago 29a7662d10dede94fd8c022fafc082693dc44e13
refs
author Valery Kharseko <vharseko@3a-systems.ru>
Sunday, November 29, 2026 13:47 +0100
committer GitHub <noreply@github.com>
Sunday, November 29, 2026 13:47 +0100
commit29a7662d10dede94fd8c022fafc082693dc44e13
tree 53e244d01426fc4786e1a71982d0ca31b834aeb5 tree | zip | gz
parent 400fb2694641b05e53217d3c742a6e49e3a254c6 view | diff
Retry Alpine package operations and reuse repository indexes (#1347)

## Summary

- Allow up to three attempts for `apk update`, `apk add`, and `apk
upgrade`, with 5- and 15-second delays. Propagate the final failure to
the build.
- Fetch each Alpine repository index once on a healthy build, reuse the
indexes during package installation and upgrades, and remove them in the
same image layer.

The `linux/386` Alpine build in #1341 failed after a transient DNS error
while fetching `APKINDEX`. Build and Release both use this Dockerfile.

## Verification

- Built the CI image from a local server ZIP for all six target
platforms and observed one successful index refresh per platform.
- On `linux/386`, injected HTTP 503 responses for an index and the
OpenJDK 11 package. Both operations recovered, and the package retry
reused the indexes.
- Verified that persistent failures preserve the last exit status, and
built the `linux/amd64` image from the released OpenDJ 5.2.0 ZIP.
1 files modified
17 ■■■■■ changed files
opendj-packages/opendj-docker/Dockerfile-alpine 17 ●●●●● diff | view | raw | blame | history