Skip to content

Commit dee8969

Browse files
committed
Add buildtype to docker build process
1 parent ca44c3f commit dee8969

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ FROM --platform=${TARGETPLATFORM} debian:12-slim AS builder
33

44
ARG TARGETARCH
55
ARG DPDK_VER=23.11.3
6+
ARG DPDK_BUILDTYPE=release
7+
ARG DPSERVICE_BUILDTYPE=debug
68
ARG DPSERVICE_FEATURES=""
79

810
WORKDIR /workspace
@@ -74,7 +76,7 @@ net/octeontx_ep,net/pcap,net/pfe,net/qede,net/sfc,net/softnic,net/thunderx,net/t
7476
net/vdev_ntsvc,net/vhost,net/virtio,net/vmxnet3,net/bnx2x,net/netsvc,net/vdev_netsvc,\
7577
crypto/dpaa_sec,crypto/bcmfs,crypto/caam_jr,crypto/cnxk,dpaa_sec,crypto/dpaa2_sec,crypto/nitrox,\
7678
crypto/null,crypto/octeontx,crypto/octeontx2,crypto/scheduler,crypto/virtio -Ddisable_libs=power,\
77-
vhost,gpudev build -Ddisable_apps="*" -Dtests=false
79+
vhost,gpudev build -Ddisable_apps="*" -Dtests=false -Dbuildtype=$DPDK_BUILDTYPE
7880
RUN cd $DPDK_DIR/build && ninja
7981
RUN cd $DPDK_DIR/build && ninja install
8082

@@ -93,7 +95,7 @@ COPY include/ include/
9395
COPY .git/ .git/
9496

9597
# Compile dpservice itself
96-
RUN meson setup build -Dbuild_dpservice_cli=true $DPSERVICE_FEATURES && ninja -C build
98+
RUN meson setup build -Dbuild_dpservice_cli=true -Dbuildtype=$DPSERVICE_BUILDTYPE $DPSERVICE_FEATURES && ninja -C build
9799

98100

99101
# Extended build image for test-image

0 commit comments

Comments
 (0)