File tree Expand file tree Collapse file tree 4 files changed +31
-1
lines changed Expand file tree Collapse file tree 4 files changed +31
-1
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,8 @@ jobs:
127
127
containerfiles : Dockerfile.base
128
128
tags : ${{ steps.meta_base.outputs.tags }}
129
129
labels : ${{ steps.meta_base.outputs.labels }}
130
+ build-args :
131
+ USE_MIRROR=y
130
132
131
133
- name : Build CI image
132
134
uses : redhat-actions/buildah-build@v2
@@ -137,6 +139,7 @@ jobs:
137
139
labels : ${{ steps.meta_ci.outputs.labels }}
138
140
build-args : |
139
141
BASE_IMAGE=${{ env.GHCR_BASE }}/${{ env.BASE_IMAGE_NAME }}:${{ steps.meta_base.outputs.version }}
142
+ USE_MIRROR=y
140
143
extra-args : |
141
144
--pull-never
142
145
@@ -149,6 +152,7 @@ jobs:
149
152
labels : ${{ steps.meta_developer.outputs.labels }}
150
153
build-args : |
151
154
BASE_IMAGE=${{ env.GHCR_BASE }}/${{ env.CI_IMAGE_NAME }}:${{ steps.meta_ci.outputs.version }}
155
+ USE_MIRROR=y
152
156
extra-args : |
153
157
--pull-never
154
158
Original file line number Diff line number Diff line change 2
2
3
3
FROM ubuntu:24.04
4
4
5
- ARG USERNAME=user
6
5
ARG UID=1000
7
6
ARG GID=1000
7
+ ARG USERNAME=user
8
+ ARG USE_MIRROR=n
8
9
ARG PYTHON_VENV_PATH=/opt/python/venv
9
10
10
11
# this conflicts with uid 1000, remove it
@@ -16,6 +17,20 @@ SHELL ["/bin/bash", "-c"]
16
17
# Set non-interactive frontend for apt-get to skip any user confirmations
17
18
ENV DEBIAN_FRONTEND=noninteractive
18
19
20
+ ADD ./hetzner-mirror_x86_64.list /tmp/hetzner-mirror_x86_64.list
21
+ ADD ./hetzner-mirror_arm64.list /tmp/hetzner-mirror_arm64.list
22
+
23
+ RUN if [ "${HOSTTYPE}" = "x86_64" ]; then \
24
+ if [ "${USE_MIRROR}" = 'y' ]; then \
25
+ cp /tmp/hetzner-mirror_x86_64.list /etc/apt/sources.list.d/hetzner-mirror.list \
26
+ ; fi \
27
+ ; fi
28
+ RUN if [ "${HOSTTYPE}" = "aarch64" ]; then \
29
+ if [ "${USE_MIRROR}" = 'y' ]; then \
30
+ cp /tmp/hetzner-mirror_arm64.list /etc/apt/sources.list.d/hetzner-mirror.list \
31
+ ; fi \
32
+ ; fi
33
+
19
34
# Install base packages
20
35
RUN apt-get -y update && \
21
36
apt-get -y upgrade && \
@@ -87,6 +102,7 @@ RUN apt-get -y update && \
87
102
xz-utils \
88
103
thrift-compiler
89
104
105
+
90
106
# Install multi-lib gcc (x86 only)
91
107
RUN if [ "${HOSTTYPE}" = "x86_64" ]; then \
92
108
apt-get install --no-install-recommends -y \
Original file line number Diff line number Diff line change
1
+ # Packages and Updates from the Hetzner Ubuntu Mirror
2
+ deb https://mirror.hetzner.com/ubuntu-ports/packages noble main restricted universe multiverse
3
+ deb https://mirror.hetzner.com/ubuntu-ports/packages noble-updates main restricted universe multiverse
4
+ deb https://mirror.hetzner.com/ubuntu-ports/packages noble-backports main restricted universe multiverse
5
+ deb https://mirror.hetzner.com/ubuntu-ports/packages noble-security main restricted universe multiverse
Original file line number Diff line number Diff line change
1
+ # Packages and Updates from the Hetzner Ubuntu Mirror
2
+ deb https://mirror.hetzner.com/ubuntu/packages noble main restricted universe multiverse
3
+ deb https://mirror.hetzner.com/ubuntu/packages noble-updates main restricted universe multiverse
4
+ deb https://mirror.hetzner.com/ubuntu/packages noble-backports main restricted universe multiverse
5
+ deb https://mirror.hetzner.com/ubuntu/packages noble-security main restricted universe multiverse
You can’t perform that action at this time.
0 commit comments