From 2302c3a4a1f55666335e4008eb70b50810ecc1f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=BDiga=20Kokelj?= Date: Wed, 13 Nov 2024 04:30:11 +0100 Subject: [PATCH] log to a file in local testnet (#2129) --- testnet/launcher/gateway/docker.go | 3 ++- tools/walletextension/Dockerfile | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/testnet/launcher/gateway/docker.go b/testnet/launcher/gateway/docker.go index b9dc38c397..22453d4fcc 100644 --- a/testnet/launcher/gateway/docker.go +++ b/testnet/launcher/gateway/docker.go @@ -32,7 +32,8 @@ func (n *DockerGateway) Start() error { "--nodePortWS", fmt.Sprintf("%d", n.cfg.tenNodeWSPort), "--nodeHost", n.cfg.tenNodeHost, "--dbType", "sqlite", - "--logPath", "sys_out", + "--logPath", "gateway_logs.log", + "--verbose", "true", "--rateLimitUserComputeTime", fmt.Sprintf("%d", n.cfg.rateLimitUserComputeTime), } diff --git a/tools/walletextension/Dockerfile b/tools/walletextension/Dockerfile index 5a25543b06..c9843ea1c2 100644 --- a/tools/walletextension/Dockerfile +++ b/tools/walletextension/Dockerfile @@ -37,6 +37,11 @@ RUN --mount=type=cache,target=/root/.cache/go-build \ # Lightweight final build stage. Includes bare minimum to start wallet extension FROM alpine:3.18 + +# Set a writable working directory +WORKDIR /home/obscuro +RUN mkdir -p /home/obscuro && chmod -R 777 /home/obscuro + # copy over the gateway executable COPY --from=build-wallet /home/obscuro/go-obscuro/tools/walletextension/bin /home/obscuro/go-obscuro/tools/walletextension/bin