Skip to content

Commit f1360df

Browse files
committed
rearrange
Signed-off-by: MatsG23 <60609373+MatsG23@users.noreply.github.com>
1 parent ece3470 commit f1360df

3 files changed

Lines changed: 7 additions & 11 deletions

File tree

Dockerfile-auth

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,10 @@ COPY build-aux/ build-aux/
3434
COPY m4/ m4/
3535
COPY ext/ ext/
3636
COPY .git/ .git/
37-
ADD configure.ac Makefile.am .
37+
COPY configure.ac Makefile.am .
3838
COPY builder/helpers/set-configure-ac-version.sh /usr/local/bin
3939

40-
ARG MAKEFLAGS="-j2"
4140
ARG DOCKER_FAKE_RELEASE="NO"
42-
4341
RUN if [ "${DOCKER_FAKE_RELEASE}" = "YES" ]; then \
4442
BUILDER_VERSION="$(IS_RELEASE=YES BUILDER_MODULES=authoritative ./builder-support/gen-version | sed 's/\([0-9]\+\.[0-9]\+\.[0-9]\+\(\(alpha|beta|rc\)\d\+\)\)?.*/\1/')" set-configure-ac-version.sh;\
4543
fi && \
@@ -48,6 +46,7 @@ RUN if [ "${DOCKER_FAKE_RELEASE}" = "YES" ]; then \
4846
# Lua install merged with build because Make seems to need the Lua installation name
4947
# TODO: simplify repeated -C calls with SUBDIRS?
5048
ARG NO_LUA_JIT="s390x arm64"
49+
ARG MAKEFLAGS="-j2"
5150
RUN LUAVER=$([ -z "${NO_LUA_JIT##*$(dpkg --print-architecture)*}" ] && echo 'lua5.3' || echo 'luajit') && \
5251
apt-get install -y --no-install-recommends lib${LUAVER}-*dev && \
5352
apt-get clean && rm -rf /var/lib/apt/lists/* && \

Dockerfile-dnsdist

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,14 @@ RUN mk-build-deps -i -t 'apt-get -o Debug::pkgProblemResolver=yes -y --no-instal
2929
apt-get clean
3030

3131
WORKDIR /source/builder-support/helpers/
32-
RUN ./install_rust.sh && \
33-
./install_quiche.sh
32+
RUN ./install_rust.sh && ./install_quiche.sh
3433

3534
WORKDIR /source
3635
COPY meson/ meson/
3736
COPY pdns/ pdns/
3837
COPY ext/ ext/
3938
COPY .git/ .git/
4039

41-
ARG MAKEFLAGS="-j2"
42-
ARG DOCKER_FAKE_RELEASE="NO"
43-
4440
# build and install (TODO: before we hit this line, rearrange /source structure if we are coming from a tarball)
4541
WORKDIR /source/pdns/dnsdistdist
4642

@@ -53,6 +49,8 @@ RUN LUAVER=$([ -z "${NO_LUA_JIT##*$(dpkg --print-architecture)*}" ] && echo 'lua
5349
apt-get install -y --no-install-recommends lib${LUAVER}-*dev && \
5450
apt-get clean && rm -rf /var/lib/apt/lists/*
5551

52+
ARG DOCKER_FAKE_RELEASE="NO"
53+
ARG MAKEFLAGS="-j2"
5654
RUN mkdir /build && \
5755
BUILDDIR=$(mktemp -d) && \
5856
IS_RELEASE="${DOCKER_FAKE_RELEASE}" \

Dockerfile-recursor

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ COPY pdns/ pdns/
4343
COPY ext/ ext/
4444
COPY .git/ .git/
4545

46-
ARG MAKEFLAGS="-j2"
47-
ARG DOCKER_FAKE_RELEASE="NO"
48-
4946
# build and install (TODO: before we hit this line, rearrange /source structure if we are coming from a tarball)
5047
WORKDIR /source/pdns/recursordist
5148

@@ -58,6 +55,8 @@ RUN LUAVER=$([ -z "${NO_LUA_JIT##*$(dpkg --print-architecture)*}" ] && echo 'lua
5855
apt-get install -y --no-install-recommends lib${LUAVER}-*dev && \
5956
apt-get clean && rm -rf /var/lib/apt/lists/*
6057

58+
ARG DOCKER_FAKE_RELEASE="NO"
59+
ARG MAKEFLAGS="-j2"
6160
RUN mkdir /build && \
6261
BUILDDIR=$(mktemp -d) && \
6362
IS_RELEASE="${DOCKER_FAKE_RELEASE}" \

0 commit comments

Comments
 (0)