mirror of
https://github.com/lukaszraczylo/kubernetes-images-sync-operator.git
synced 2026-06-10 23:29:11 +00:00
Mount imageSecrets in the worker pod
This commit is contained in:
@@ -9,6 +9,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
gnupg2 \
|
||||
python3-pip \
|
||||
sudo \
|
||||
jq \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN echo "deb [arch=${TARGETARCH}] https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_22.04/ /" | tee /etc/apt/sources.list.d/devel:kubic:libcontainers:unstable.list \
|
||||
@@ -30,7 +31,10 @@ RUN adduser --disabled-password --gecos "" --uid 1001 runner \
|
||||
WORKDIR /home/runner
|
||||
|
||||
COPY storage.conf containers.conf registries.conf /home/runner/.config/containers/
|
||||
COPY requirements.txt export.py cleanup.py s3_utils.py ./
|
||||
COPY requirements.txt export.py cleanup.py s3_utils.py podman-preauth.sh ./
|
||||
USER runner
|
||||
RUN sudo chown -R runner:runner /home/runner/.config \
|
||||
&& python3 -m pip install --no-cache-dir --only-binary=:all: -r requirements.txt
|
||||
&& python3 -m pip install --no-cache-dir --only-binary=:all: -r requirements.txt \
|
||||
&& sudo chmod +x podman-preauth.sh
|
||||
ENTRYPOINT ["/home/runner/podman-preauth.sh"]
|
||||
CMD ["bash", "-c"]
|
||||
Reference in New Issue
Block a user