Skip to content

Commit a0154df

Browse files
authored
chore(java-bases): Use a pull-through cache to reduce build failures (#899)
1 parent 094be62 commit a0154df

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

java-base/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ LABEL name="Stackable image for OpenJDK" \
2121
RUN cat <<EOF > /etc/yum.repos.d/adoptium.repo
2222
[Adoptium]
2323
name=Adoptium
24-
baseurl=https://packages.adoptium.net/artifactory/rpm/rhel/\$releasever/\$basearch
24+
# The adoptium mirror times-out often, so we have created a pull-through cache
25+
# baseurl=https://packages.adoptium.net/artifactory/rpm/rhel/\$releasever/\$basearch
26+
baseurl=https://build-repo.stackable.tech/repository/Adoptium/\$releasever/\$basearch
2527
enabled=1
2628
gpgcheck=1
2729
gpgkey=https://packages.adoptium.net/artifactory/api/gpg/key/public

java-devel/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ ARG PRODUCT
1212
# See: https://adoptium.net/en-gb/installation/linux/#_centosrhelfedora_instructions
1313
RUN cat <<EOF > /etc/yum.repos.d/adoptium.repo
1414
[Adoptium]
15+
[Adoptium]
1516
name=Adoptium
16-
baseurl=https://packages.adoptium.net/artifactory/rpm/rhel/\$releasever/\$basearch
17+
# The adoptium mirror times-out often, so we have created a pull-through cache
18+
# baseurl=https://packages.adoptium.net/artifactory/rpm/rhel/\$releasever/\$basearch
19+
baseurl=https://build-repo.stackable.tech/repository/Adoptium/\$releasever/\$basearch
1720
enabled=1
1821
gpgcheck=1
1922
gpgkey=https://packages.adoptium.net/artifactory/api/gpg/key/public

0 commit comments

Comments
 (0)