From: James-Crowley Date: Fri, 5 Feb 2021 20:22:29 +0000 (-0500) Subject: Adding bash to allow for lua jit or not depending on arch X-Git-Tag: dnsdist-1.6.0-alpha2~25^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4e40df2e45c718972f7e31642f97c9d9c872c8ea;p=thirdparty%2Fpdns.git Adding bash to allow for lua jit or not depending on arch --- 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' \