Fix cross-compile docker image building (#4006)

* Fix xcomp docker image builds
* Remove extra files
This commit is contained in:
Yi Huang 2023-12-13 11:38:58 -08:00 коммит произвёл GitHub
Родитель 6a972c877a
Коммит df69a24c5d
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
4 изменённых файлов: 20 добавлений и 18 удалений

Просмотреть файл

@ -4,6 +4,8 @@ LABEL org.opencontainers.image.source https://github.com/microsoft/msquic
ENV DEBIAN_FRONTEND=noninteractive
SHELL ["/bin/bash", "-c"]
RUN apt-get update && apt-get install --no-install-recommends -y apt-transport-https \
ca-certificates \
gnupg \
@ -53,9 +55,15 @@ RUN wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsof
RUN dpkg --add-architecture arm64
RUN dpkg --add-architecture armhf
RUN cat /etc/apt/sources.list | grep "^deb" | sed 's/deb /deb [arch=amd64] /g' > /etc/apt/sources.list
RUN mv /etc/apt/sources.list /etc/apt/sources.list.int && \
cat /etc/apt/sources.list.int | grep "^deb" | sed 's/deb /deb [arch=amd64] /g' > /etc/apt/sources.list && \
rm /etc/apt/sources.list.int
COPY arm-cross-compile-sources.list /etc/apt/sources.list.d/
RUN echo $' \n\
deb [arch=armhf,arm64] http://ports.ubuntu.com/ focal main restricted universe multiverse \n\
deb [arch=armhf,arm64] http://ports.ubuntu.com/ focal-updates main restricted universe multiverse \n\
deb [arch=armhf,arm64] http://ports.ubuntu.com/ focal-backports main restricted universe multiverse \n\
' > /etc/apt/sources.list.d/arm-cross-compile-sources.list
RUN apt-get update

Просмотреть файл

@ -1,7 +0,0 @@
deb [arch=armhf,arm64] http://ports.ubuntu.com/ focal main restricted
deb [arch=armhf,arm64] http://ports.ubuntu.com/ focal-updates main restricted
deb [arch=armhf,arm64] http://ports.ubuntu.com/ focal universe
deb [arch=armhf,arm64] http://ports.ubuntu.com/ focal-updates universe
deb [arch=armhf,arm64] http://ports.ubuntu.com/ focal multiverse
deb [arch=armhf,arm64] http://ports.ubuntu.com/ focal-updates multiverse
deb [arch=armhf,arm64] http://ports.ubuntu.com/ focal-backports main restricted universe multiverse

Просмотреть файл

@ -4,6 +4,8 @@ LABEL org.opencontainers.image.source https://github.com/microsoft/msquic
ENV DEBIAN_FRONTEND=noninteractive
SHELL ["/bin/bash", "-c"]
RUN apt-get update && apt-get install --no-install-recommends -y apt-transport-https \
ca-certificates \
gnupg \
@ -53,9 +55,15 @@ RUN wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsof
RUN dpkg --add-architecture arm64
RUN dpkg --add-architecture armhf
RUN cat /etc/apt/sources.list | grep "^deb" | sed 's/deb /deb [arch=amd64] /g' > /etc/apt/sources.list
RUN mv /etc/apt/sources.list /etc/apt/sources.list.int && \
cat /etc/apt/sources.list.int | grep "^deb" | sed 's/deb /deb [arch=amd64] /g' > /etc/apt/sources.list && \
rm /etc/apt/sources.list.int
COPY arm-cross-compile-sources.list /etc/apt/sources.list.d/
RUN echo $' \n\
deb [arch=armhf,arm64] http://ports.ubuntu.com/ jammy main restricted universe multiverse \n\
deb [arch=armhf,arm64] http://ports.ubuntu.com/ jammy-updates main restricted universe multiverse \n\
deb [arch=armhf,arm64] http://ports.ubuntu.com/ jammy-backports main restricted universe multiverse \n\
' > /etc/apt/sources.list.d/arm-cross-compile-sources.list
RUN apt-get update

Просмотреть файл

@ -1,7 +0,0 @@
deb [arch=armhf,arm64] http://ports.ubuntu.com/ jammy main restricted
deb [arch=armhf,arm64] http://ports.ubuntu.com/ jammy-updates main restricted
deb [arch=armhf,arm64] http://ports.ubuntu.com/ jammy universe
deb [arch=armhf,arm64] http://ports.ubuntu.com/ jammy-updates universe
deb [arch=armhf,arm64] http://ports.ubuntu.com/ jammy multiverse
deb [arch=armhf,arm64] http://ports.ubuntu.com/ jammy-updates multiverse
deb [arch=armhf,arm64] http://ports.ubuntu.com/ jammy-backports main restricted universe multiverse