Skip to content

Commit

Permalink
log to a file in local testnet (#2129)
Browse files Browse the repository at this point in the history
  • Loading branch information
zkokelj authored Nov 13, 2024
1 parent 561c444 commit 2302c3a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion testnet/launcher/gateway/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}

Expand Down
5 changes: 5 additions & 0 deletions tools/walletextension/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2302c3a

Please sign in to comment.