Skip to content

Commit af2056f

Browse files
committed
Add arguments to choose the peer-observer repo
1 parent a3bd5af commit af2056f

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

docker/bitcoin-node-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ fi
4747

4848
echo "Starting ebpf-extractor"
4949
# Run ebpf-extractor as root (needs CAP_SYS_ADMIN for BPF)
50-
exec /usr/local/bin/ebpf-extractor --nats-address nats://nats:4222 --bitcoind-path $BTC_BIN_PATH/bitcoind
50+
exec /usr/local/bin/ebpf-extractor --no-idle-exit --nats-address nats://nats:4222 --bitcoind-path $BTC_BIN_PATH/bitcoind

docker/bitcoin-node.dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ FROM ubuntu:22.04 AS builder
33

44
ENV DEBIAN_FRONTEND=noninteractive
55
ARG BTC_CORE_TAG=v29.0
6+
ARG PEER_EXTRACTOR_REPO=https://github.com/0xB10C/peer-observer.git
7+
ARG PEER_EXTRACTOR_BRANCH=master
68

79
# Install build dependencies
810
RUN apt-get update && apt-get install -y \
@@ -36,7 +38,7 @@ RUN rustup default stable
3638
RUN rustup component add rustfmt
3739

3840
# Copy the local repository to the container
39-
RUN git clone https://github.com/0xB10C/peer-observer.git /peer-observer
41+
RUN git clone -b $PEER_EXTRACTOR_BRANCH --single-branch $PEER_EXTRACTOR_REPO /peer-observer
4042

4143
# Set working directory to the repository
4244
WORKDIR /peer-observer

0 commit comments

Comments
 (0)