зеркало из https://github.com/microsoft/msquic.git
Fix cross-compile docker image building (#4006)
* Fix xcomp docker image builds * Remove extra files
This commit is contained in:
Родитель
6a972c877a
Коммит
df69a24c5d
|
@ -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
|
Загрузка…
Ссылка в новой задаче