From ab019a08aec94a20269f64cb8260f3f4c3ccbbba Mon Sep 17 00:00:00 2001 From: Ben Bierens <39762930+benbierens@users.noreply.github.com> Date: Mon, 2 Dec 2024 10:32:53 +0100 Subject: [PATCH] Enables stacktrace in docker images (#1013) * Enables libbacktrace in docker images * Make libbacktrace configurable in docker via build-arg --------- Co-authored-by: Slava <20563034+veaceslavdoina@users.noreply.github.com> --- docker/codex.Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker/codex.Dockerfile b/docker/codex.Dockerfile index e9234753..3c86ad6b 100644 --- a/docker/codex.Dockerfile +++ b/docker/codex.Dockerfile @@ -5,6 +5,7 @@ ARG RUST_VERSION=${RUST_VERSION:-1.79.0} ARG BUILD_HOME=/src ARG MAKE_PARALLEL=${MAKE_PARALLEL:-4} ARG NIMFLAGS="${NIMFLAGS:-"-d:disableMarchNative"}" +ARG USE_LIBBACKTRACE=${USE_LIBBACKTRACE:-1} ARG APP_HOME=/codex ARG NAT_IP_AUTO=${NAT_IP_AUTO:-false} @@ -14,6 +15,7 @@ ARG RUST_VERSION ARG BUILD_HOME ARG MAKE_PARALLEL ARG NIMFLAGS +ARG USE_LIBBACKTRACE RUN apt-get update && apt-get install -y git cmake curl make bash lcov build-essential RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs/ | sh -s -- --default-toolchain=${RUST_VERSION} -y