From 4e40df2e45c718972f7e31642f97c9d9c872c8ea Mon Sep 17 00:00:00 2001 From: James-Crowley Date: Fri, 5 Feb 2021 15:22:29 -0500 Subject: [PATCH] Adding bash to allow for lua jit or not depending on arch --- Dockerfile-auth | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile-auth b/Dockerfile-auth index 02fb6100a7..0b739e1563 100644 --- a/Dockerfile-auth +++ b/Dockerfile-auth @@ -1,6 +1,8 @@ # our chosen base image FROM debian:10-slim AS builder +ENV NO_LUA_JIT="s390x aarch64" + # TODO: make sure /source looks roughly the same from git or tar # Reusable layer for base update @@ -44,7 +46,7 @@ RUN if [ "${DOCKER_FAKE_RELEASE}" = "YES" ]; then \ # simplify repeated -C calls with SUBDIRS? RUN mkdir /build && \ ./configure \ - --with-lua=luajit \ + --with-lua=$([[ "${NO_LUA_JIT}" == *"$(uname -m)"* ]] && echo "lua5.3" || echo "luajit") \ --sysconfdir=/etc/powerdns \ --enable-option-checking=fatal \ --with-dynmodules='bind geoip gmysql godbc gpgsql gsqlite3 ldap lmdb lua2 pipe random remote tinydns' \ -- 2.47.2