Skip to content
Snippets Groups Projects
Verified Commit c2df8c79 authored by Andrej Shadura's avatar Andrej Shadura
Browse files

Ignore failures from update-binfmts since it fails under Kaniko

parent afde4a59
No related branches found
No related tags found
No related merge requests found
Pipeline #10408 passed
...@@ -4,13 +4,16 @@ ENV LC_ALL C.UTF-8 ...@@ -4,13 +4,16 @@ ENV LC_ALL C.UTF-8
ENV DEBIAN_FRONTEND noninteractive ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y apt-transport-https ca-certificates && apt-get install -y apt-transport-https ca-certificates binfmt-support
RUN mkdir -p /etc/apt/sources.list.d RUN mkdir -p /etc/apt/sources.list.d
COPY stretch-backports.list /etc/apt/sources.list.d/ COPY stretch-backports.list /etc/apt/sources.list.d/
COPY collabora-tools.list /etc/apt/sources.list.d/ COPY collabora-tools.list /etc/apt/sources.list.d/
COPY collabora-archive-keyring.gpg /usr/share/keyrings/ COPY collabora-archive-keyring.gpg /usr/share/keyrings/
RUN mv /usr/sbin/update-binfmts /usr/sbin/update-binfmts.distrib
COPY update-binfmts /usr/sbin
# Use stretch since it’s not the stable anymore # Use stretch since it’s not the stable anymore
RUN sed -i 's/stable/stretch/g' /etc/apt/sources.list \ RUN sed -i 's/stable/stretch/g' /etc/apt/sources.list \
&& apt-get update \ && apt-get update \
...@@ -18,6 +21,8 @@ RUN sed -i 's/stable/stretch/g' /etc/apt/sources.list \ ...@@ -18,6 +21,8 @@ RUN sed -i 's/stable/stretch/g' /etc/apt/sources.list \
obs-worker locales qemu-user-static \ obs-worker locales qemu-user-static \
&& sed -i 's/ENABLED=0/ENABLED=1/g' /etc/default/obsworker && sed -i 's/ENABLED=0/ENABLED=1/g' /etc/default/obsworker
RUN mv -f /usr/sbin/update-binfmts.distrib /usr/sbin/update-binfmts
VOLUME /srv/obs VOLUME /srv/obs
ADD services/service.conf /etc/supervisor/conf.d/service.conf ADD services/service.conf /etc/supervisor/conf.d/service.conf
......
#!/bin/sh
/usr/sbin/update-binfmts.distrib "$@" || true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment