Skip to content

Commit 78b0739

Browse files
committed
pin base repo commit for consistency
1 parent 2b54c06 commit 78b0739

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docker/bitcoin-node.dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ FROM ubuntu:22.04 AS peer-observer-builder
2929

3030
ARG PEER_EXTRACTOR_REPO=https://github.com/0xB10C/peer-observer.git
3131
ARG PEER_EXTRACTOR_BRANCH=master
32+
ARG PEER_EXTRACTOR_COMMIT=4a49347dcc764daabd047c01274afc6c5399bee6
3233

3334
# Install peer-extractor dependencies
3435
RUN apt-get update && apt-get install -y \
@@ -46,8 +47,9 @@ RUN rustup component add rustfmt
4647
# Copy repository to the container
4748
RUN git clone -b $PEER_EXTRACTOR_BRANCH --single-branch $PEER_EXTRACTOR_REPO /peer-observer
4849

49-
# Set working directory to the repository
50+
# Set working directory to the repository and checkout to pinned commit
5051
WORKDIR /peer-observer
52+
RUN git checkout $PEER_EXTRACTOR_COMMIT
5153

5254
# Copy scripts
5355
COPY docker/set-bpf-environment.sh scripts/set-bpf-environment.sh

0 commit comments

Comments
 (0)