chore: switch to debian buster for arm (#17)
This commit is contained in:
Родитель
59a4916a1e
Коммит
b4abb309ad
|
@ -1,35 +0,0 @@
|
||||||
FROM debian:buster
|
|
||||||
|
|
||||||
RUN dpkg --add-architecture arm64
|
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
||||||
crossbuild-essential-arm64 \
|
|
||||||
python \
|
|
||||||
git \
|
|
||||||
pkg-config \
|
|
||||||
fakeroot \
|
|
||||||
rpm \
|
|
||||||
sudo \
|
|
||||||
apt-transport-https \
|
|
||||||
ca-certificates \
|
|
||||||
libx11-dev:arm64 \
|
|
||||||
libx11-xcb-dev:arm64 \
|
|
||||||
libxkbfile-dev:arm64 \
|
|
||||||
libsecret-1-dev:arm64 \
|
|
||||||
curl \
|
|
||||||
gnupg \
|
|
||||||
wget \
|
|
||||||
unzip
|
|
||||||
|
|
||||||
# Yarn
|
|
||||||
RUN wget -qO - https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
|
|
||||||
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
|
|
||||||
RUN apt-get update && apt-get install -y yarn
|
|
||||||
|
|
||||||
ENV AS=/usr/bin/aarch64-linux-gnu-as \
|
|
||||||
AR=/usr/bin/aarch64-linux-gnu-ar \
|
|
||||||
CC=/usr/bin/aarch64-linux-gnu-gcc \
|
|
||||||
CPP=/usr/bin/aarch64-linux-gnu-cpp \
|
|
||||||
CXX=/usr/bin/aarch64-linux-gnu-g++ \
|
|
||||||
LD=/usr/bin/aarch64-linux-gnu-ld \
|
|
||||||
FC=/usr/bin/aarch64-linux-gnu-gfortran \
|
|
||||||
PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig
|
|
|
@ -1,35 +0,0 @@
|
||||||
FROM debian:buster
|
|
||||||
|
|
||||||
RUN dpkg --add-architecture armhf
|
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
||||||
crossbuild-essential-armhf \
|
|
||||||
python \
|
|
||||||
git \
|
|
||||||
pkg-config \
|
|
||||||
fakeroot \
|
|
||||||
rpm \
|
|
||||||
sudo \
|
|
||||||
ca-certificates \
|
|
||||||
apt-transport-https \
|
|
||||||
libx11-dev:armhf \
|
|
||||||
libx11-xcb-dev:armhf \
|
|
||||||
libxkbfile-dev:armhf \
|
|
||||||
libsecret-1-dev:armhf \
|
|
||||||
curl \
|
|
||||||
wget \
|
|
||||||
gnupg \
|
|
||||||
unzip
|
|
||||||
|
|
||||||
# Yarn
|
|
||||||
RUN wget -qO - https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
|
|
||||||
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
|
|
||||||
RUN apt-get update && apt-get install -y yarn
|
|
||||||
|
|
||||||
ENV AS=/usr/bin/arm-linux-gnueabihf-as \
|
|
||||||
AR=/usr/bin/arm-linux-gnueabihf-ar \
|
|
||||||
CC=/usr/bin/arm-linux-gnueabihf-gcc \
|
|
||||||
CPP=/usr/bin/arm-linux-gnueabihf-cpp \
|
|
||||||
CXX=/usr/bin/arm-linux-gnueabihf-g++ \
|
|
||||||
LD=/usr/bin/arm-linux-gnueabihf-ld \
|
|
||||||
FC=/usr/bin/arm-linux-gnueabihf-gfortran \
|
|
||||||
PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig
|
|
|
@ -41,18 +41,18 @@ jobs:
|
||||||
qemu: 'true'
|
qemu: 'true'
|
||||||
arch: alpine-arm64
|
arch: alpine-arm64
|
||||||
|
|
||||||
- job: stretch_arm64
|
- job: buster_arm64
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'ubuntu-latest'
|
vmImage: 'ubuntu-latest'
|
||||||
steps:
|
steps:
|
||||||
- template: build.yml
|
- template: build.yml
|
||||||
parameters:
|
parameters:
|
||||||
arch: stretch-arm64
|
arch: buster-arm64
|
||||||
|
|
||||||
- job: stretch_armhf
|
- job: buster_armhf
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'ubuntu-latest'
|
vmImage: 'ubuntu-latest'
|
||||||
steps:
|
steps:
|
||||||
- template: build.yml
|
- template: build.yml
|
||||||
parameters:
|
parameters:
|
||||||
arch: stretch-armhf
|
arch: buster-armhf
|
||||||
|
|
|
@ -0,0 +1,59 @@
|
||||||
|
ARG REPO=debian
|
||||||
|
ARG TAG=buster
|
||||||
|
FROM ${REPO}:${TAG}
|
||||||
|
|
||||||
|
RUN dpkg --add-architecture arm64
|
||||||
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
|
crossbuild-essential-arm64 \
|
||||||
|
git \
|
||||||
|
pkg-config \
|
||||||
|
fakeroot \
|
||||||
|
rpm \
|
||||||
|
sudo \
|
||||||
|
apt-transport-https \
|
||||||
|
ca-certificates \
|
||||||
|
libx11-dev:arm64 \
|
||||||
|
libx11-xcb-dev:arm64 \
|
||||||
|
libxkbfile-dev:arm64 \
|
||||||
|
libsecret-1-dev:arm64 \
|
||||||
|
curl \
|
||||||
|
gnupg \
|
||||||
|
unzip \
|
||||||
|
# Dependencies for building python from source
|
||||||
|
build-essential \
|
||||||
|
libreadline-gplv2-dev \
|
||||||
|
libncursesw5-dev \
|
||||||
|
libssl-dev \
|
||||||
|
libsqlite3-dev \
|
||||||
|
tk-dev \
|
||||||
|
libgbm-dev \
|
||||||
|
libc6-dev \
|
||||||
|
libbz2-dev \
|
||||||
|
libffi-dev \
|
||||||
|
zlib1g-dev
|
||||||
|
|
||||||
|
# Compile python3.9 from source
|
||||||
|
RUN curl -O https://www.python.org/ftp/python/3.9.4/Python-3.9.4.tar.xz
|
||||||
|
RUN tar -xf Python-3.9.4.tar.xz
|
||||||
|
RUN cd Python-3.9.4 && ./configure --enable-optimizations && make altinstall
|
||||||
|
RUN update-alternatives --install /usr/bin/python python /usr/local/bin/python3.9 1
|
||||||
|
RUN python --version
|
||||||
|
|
||||||
|
# Remove expired CA cert for openSSL 1.0.2
|
||||||
|
# https://www.openssl.org/blog/blog/2021/09/13/LetsEncryptRootCertExpire/
|
||||||
|
RUN rm -f /usr/share/ca-certificates/mozilla/DST_Root_CA_X3.crt
|
||||||
|
RUN update-ca-certificates --fresh
|
||||||
|
|
||||||
|
# Yarn
|
||||||
|
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
|
||||||
|
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
|
||||||
|
RUN apt-get update && apt-get install -y yarn
|
||||||
|
|
||||||
|
ENV AS=/usr/bin/aarch64-linux-gnu-as \
|
||||||
|
AR=/usr/bin/aarch64-linux-gnu-ar \
|
||||||
|
CC=/usr/bin/aarch64-linux-gnu-gcc \
|
||||||
|
CPP=/usr/bin/aarch64-linux-gnu-cpp \
|
||||||
|
CXX=/usr/bin/aarch64-linux-gnu-g++ \
|
||||||
|
LD=/usr/bin/aarch64-linux-gnu-ld \
|
||||||
|
FC=/usr/bin/aarch64-linux-gnu-gfortran \
|
||||||
|
PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig
|
|
@ -0,0 +1,59 @@
|
||||||
|
ARG REPO=debian
|
||||||
|
ARG TAG=buster
|
||||||
|
FROM ${REPO}:${TAG}
|
||||||
|
|
||||||
|
RUN dpkg --add-architecture armhf
|
||||||
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
|
crossbuild-essential-armhf \
|
||||||
|
git \
|
||||||
|
pkg-config \
|
||||||
|
fakeroot \
|
||||||
|
rpm \
|
||||||
|
sudo \
|
||||||
|
apt-transport-https \
|
||||||
|
ca-certificates \
|
||||||
|
libx11-dev:armhf \
|
||||||
|
libx11-xcb-dev:armhf \
|
||||||
|
libxkbfile-dev:armhf \
|
||||||
|
libsecret-1-dev:armhf \
|
||||||
|
curl \
|
||||||
|
gnupg \
|
||||||
|
unzip \
|
||||||
|
# Dependencies for building python from source
|
||||||
|
build-essential \
|
||||||
|
libreadline-gplv2-dev \
|
||||||
|
libncursesw5-dev \
|
||||||
|
libssl-dev \
|
||||||
|
libsqlite3-dev \
|
||||||
|
tk-dev \
|
||||||
|
libgbm-dev \
|
||||||
|
libc6-dev \
|
||||||
|
libbz2-dev \
|
||||||
|
libffi-dev \
|
||||||
|
zlib1g-dev
|
||||||
|
|
||||||
|
# Compile python3.9 from source
|
||||||
|
RUN curl -O https://www.python.org/ftp/python/3.9.4/Python-3.9.4.tar.xz
|
||||||
|
RUN tar -xf Python-3.9.4.tar.xz
|
||||||
|
RUN cd Python-3.9.4 && ./configure --enable-optimizations && make altinstall
|
||||||
|
RUN update-alternatives --install /usr/bin/python python /usr/local/bin/python3.9 1
|
||||||
|
RUN python --version
|
||||||
|
|
||||||
|
# Remove expired CA cert for openSSL 1.0.2
|
||||||
|
# https://www.openssl.org/blog/blog/2021/09/13/LetsEncryptRootCertExpire/
|
||||||
|
RUN rm -f /usr/share/ca-certificates/mozilla/DST_Root_CA_X3.crt
|
||||||
|
RUN update-ca-certificates --fresh
|
||||||
|
|
||||||
|
# Yarn
|
||||||
|
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
|
||||||
|
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
|
||||||
|
RUN apt-get update && apt-get install -y yarn
|
||||||
|
|
||||||
|
ENV AS=/usr/bin/arm-linux-gnueabihf-as \
|
||||||
|
AR=/usr/bin/arm-linux-gnueabihf-ar \
|
||||||
|
CC=/usr/bin/arm-linux-gnueabihf-gcc \
|
||||||
|
CPP=/usr/bin/arm-linux-gnueabihf-cpp \
|
||||||
|
CXX=/usr/bin/arm-linux-gnueabihf-g++ \
|
||||||
|
LD=/usr/bin/arm-linux-gnueabihf-ld \
|
||||||
|
FC=/usr/bin/arm-linux-gnueabihf-gfortran \
|
||||||
|
PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig
|
Загрузка…
Ссылка в новой задаче