Add builder9:1.1 support for arm64

Signed-off-by: Shengzhou Liu <Shengzhou.Liu@nxp.com>
This commit is contained in:
Shengzhou Liu
2018-02-13 17:48:21 +08:00
parent 1215e014a0
commit 21651c7772
3 changed files with 51 additions and 1 deletions

View File

@@ -0,0 +1,31 @@
############################################################
#
# Update Packages for arm64.
# Additional build dependencies.
#
############################################################
FROM opennetworklinux/builder9:1.0
MAINTAINER Jeffrey Townsend <jeffrey.townsend@bigswitch.com>
RUN apt-get update && apt-get install -y \
crossbuild-essential-arm64 \
gcc-aarch64-linux-gnu
RUN dpkg --add-architecture arm64 && \
echo 'deb [arch=arm64] http://deb.debian.org/debian stretch main' >> /etc/apt/sources.list && \
echo 'deb [arch=arm64] http://deb.debian.org/debian stretch-updates main' >> /etc/apt/sources.list
RUN apt-get update && apt-get install -y \
libssl-dev:arm64 \
libnuma-dev:arm64 \
libssl-dev:arm64
RUN wget "http://ftp.us.debian.org/debian/pool/main/e/emdebian-crush/xapt_2.2.19_all.deb" && \
dpkg -i xapt_2.2.19_all.deb && rm xapt_2.2.19_all.deb
RUN xapt -a arm64 libsnmp-dev
RUN wget http://www.opennetlinux.org/tarballs/usr-bin-qemu-aarch64-static.tgz && tar -C / -xvzf usr-bin-qemu-aarch64-static.tgz && rm usr-bin-qemu-aarch64-static.tgz
# Docker shell and other container tools.
#
COPY docker_shell /bin/docker_shell
COPY container-id /bin/container-id

View File

@@ -0,0 +1,19 @@
VERSION=1.1
USER=opennetworklinux
REPO=builder9
TOOLS=../../../tools/docker_shell ../../../tools/container-id
build: check_version
cp $(TOOLS) .
docker build -t $(USER)/$(REPO):$(VERSION) .
rm -rf $(notdir $(TOOLS))
#
# Todo: Query remote repository to see if the request version already exists to avoid accidental overwrites
# when a new image is built but the VERSION variable is not updated.
#
check_version:
push:
docker push $(USER)/$(REPO):$(VERSION)

View File

@@ -19,7 +19,7 @@ g_timestamp = datetime.datetime.now().strftime("%Y-%m-%d.%H%M%S")
g_builder7_image_name="opennetworklinux/builder7:1.2"
g_builder8_image_name="opennetworklinux/builder8:1.7"
g_builder9_image_name="opennetworklinux/builder9:1.0"
g_builder9_image_name="opennetworklinux/builder9:1.1"
g_default_image_name=g_builder8_image_name
g_default_container_name = "%s_%s" % (g_current_user, g_timestamp)