summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-01-03 21:57:48 +0100
committerChristian Poessinger <christian@poessinger.com>2020-01-03 21:57:48 +0100
commit9e8636d737b665c3f492d5bc8966625f9b3bdfbc (patch)
treef66cb5652e380c86ffc3d7478fbb01a1af3b1489
parentff9d967f8c0afb842c6aa881562e225372606565 (diff)
downloadvyos-build-9e8636d737b665c3f492d5bc8966625f9b3bdfbc.tar.gz
vyos-build-9e8636d737b665c3f492d5bc8966625f9b3bdfbc.zip
Revert "Docker: T1927: Extend docker container to build on arm"
This reverts commit de4805055f2cec53af0e80e9d742bc13d9e2bc4d.
-rw-r--r--docker/Dockerfile76
1 files changed, 15 insertions, 61 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 3591f55e..e93913b7 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -16,26 +16,7 @@
# Must be run with --privileged flag, recommended to run the container with a
# volume mapped in order to easy export images
-# This Dockerfile is installable on both x86, x86-64, armhf and arm64 systems
-# To install using native cpu instructionset use the default docker `FROM` statement
-# (Use this to build on an x86/x86-64 pc/server and on an ARM system, eg. RaspberryPi)
FROM debian:buster
-
-# It is also possible to emulate an arm system inside docker,
-# execution of this emulated system needs to be executed on an x86 or x86-64 host.
-
-# To install an qemu emulated armhf or arm64 cpu comment out the default `FROM` statement
-# and use one of the following instead.
-# ARMHF:
-#FROM multiarch/debian-debootstrap:armhf-buster-slim
-# ARM64:
-#FROM multiarch/debian-debootstrap:arm64-buster-slim
-
-# Prior of installing an emulated qemu build you need to install qemu, qemu-user-static
-# and register qemu inside docker using:
-# `docker run --rm --privileged multiarch/qemu-user-static:register --reset`
-
-
LABEL authors="VyOS Maintainers <maintainers@vyos.io>"
ENV DEBIAN_FRONTEND noninteractive
@@ -64,6 +45,7 @@ RUN apt-get update && apt-get install -y \
pbuilder \
devscripts \
squashfs-tools \
+ syslinux \
genisoimage \
lsb-release \
fakechroot \
@@ -86,11 +68,6 @@ RUN apt-get update && apt-get install -y \
openssh-client \
jq
-# Syslinux is only supported on x86 and x64 systems
-RUN if dpkg-architecture -ii386 || dpkg-architecture -iamd64; then \
- apt-get update && apt-get install -y syslinux; \
- fi
-
# Package needed for mdns-repeater
RUN apt-get update && apt-get install -y \
dh-systemd
@@ -103,16 +80,10 @@ RUN apt-get update && apt-get install -y \
libpcre3-dev \
unzip
-#Apply fix for https in curl running on armhf
-RUN if dpkg-architecture -iarmhf; then \
- echo "cacert=/etc/ssl/certs/ca-certificates.crt" >> ~/.curlrc; \
- fi
-
-# Installing OCAML needed to compile libvyosconfig
RUN curl https://raw.githubusercontent.com/ocaml/opam/2.0.2/shell/install.sh \
--output /tmp/opam_install.sh --retry 10 --retry-delay 5 && \
sed -i 's/read BINDIR/BINDIR=""/' /tmp/opam_install.sh && sh /tmp/opam_install.sh && \
- opam init --root=/opt/opam --comp=4.09.0 --disable-sandboxing
+ opam init --root=/opt/opam --comp=4.08.0 --disable-sandboxing
RUN eval $(opam env --root=/opt/opam --set-root) && opam install -y \
pcre
@@ -131,7 +102,7 @@ RUN eval $(opam env --root=/opt/opam --set-root) && \
git clone https://github.com/vyos/libvyosconfig.git && \
cd libvyosconfig && git checkout 5138b5eb && \
dpkg-buildpackage -uc -us -tc -b && \
- dpkg -i ../libvyosconfig0_*_$(dpkg-architecture -qDEB_HOST_ARCH).deb
+ dpkg -i ../libvyosconfig0_*_amd64.deb
# Packages needed for vyatta-cfg
RUN apt-get update && apt-get install -y \
@@ -197,7 +168,7 @@ RUN export RTRLIB_VERSION="0.6.3" && \
wget -P /tmp https://github.com/rtrlib/rtrlib/archive/v${RTRLIB_VERSION}.tar.gz && \
tar xf /tmp/v${RTRLIB_VERSION}.tar.gz -C /tmp && \
cd /tmp/rtrlib-${RTRLIB_VERSION} && dpkg-buildpackage -uc -us -tc -b && \
- dpkg -i ../librtr*_$(dpkg-architecture -qDEB_HOST_ARCH).deb ../librtr*_all.deb
+ dpkg -i ../librtr*_amd64.deb ../librtr*_all.deb
# Packages needed to build frr itself
# https://github.com/FRRouting/frr/blob/master/doc/developer/building-libyang.rst
@@ -285,36 +256,19 @@ RUN apt-get update && apt-get install -y \
libpopt-dev
# Packages needed for Qemu test-suite
-# This is for now only supported on i386 and amd64 platforms
-RUN if dpkg-architecture -ii386 || dpkg-architecture -iamd64; then \
- apt-get update && apt-get install -y \
- python3-pexpect \
- qemu-system-x86 \
- qemu-utils \
- qemu-kvm; \
- fi
+RUN apt-get update && apt-get install -y \
+ python3-pexpect \
+ qemu-system-x86 \
+ qemu-utils \
+ qemu-kvm
# Install packer
-RUN if dpkg-architecture -ii386 || dpkg-architecture -iamd64; then \
- export LATEST="$(curl -s https://checkpoint-api.hashicorp.com/v1/check/packer | \
- jq -r -M '.current_version')"; \
- echo "url https://releases.hashicorp.com/packer/${LATEST}/packer_${LATEST}_linux_amd64.zip" |\
- curl -K- | gzip -d > /usr/bin/packer && \
- chmod +x /usr/bin/packer; \
- fi
-
-# Install utillities for building grub and u-boot images
-RUN if dpkg-architecture -iarm64; then \
- apt-get update && apt-get install -y \
- dosfstools \
- u-boot-tools \
- grub-efi-$(dpkg-architecture -qDEB_HOST_ARCH); \
- elif dpkg-architecture -iarmhf; then \
- apt-get update && apt-get install -y \
- dosfstools \
- u-boot-tools \
- grub-efi-arm; \
- fi
+RUN export LATEST="$(curl -s https://checkpoint-api.hashicorp.com/v1/check/packer | \
+ jq -r -M '.current_version')"; \
+ echo "url https://releases.hashicorp.com/packer/"$LATEST"/packer_"$LATEST"_linux_amd64.zip" |\
+ curl -K- | gzip -d > /usr/bin/packer && \
+ chmod +x /usr/bin/packer
+
#
# live-build: building with local packages fails due to missing keys
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=941691