File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ FROM ubuntu:22.04 AS peer-observer-builder
2929
3030ARG PEER_EXTRACTOR_REPO=https://github.com/0xB10C/peer-observer.git
3131ARG PEER_EXTRACTOR_BRANCH=master
32+ ARG PEER_EXTRACTOR_COMMIT=4a49347dcc764daabd047c01274afc6c5399bee6
3233
3334# Install peer-extractor dependencies
3435RUN apt-get update && apt-get install -y \
@@ -46,8 +47,9 @@ RUN rustup component add rustfmt
4647# Copy repository to the container
4748RUN 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
5051WORKDIR /peer-observer
52+ RUN git checkout $PEER_EXTRACTOR_COMMIT
5153
5254# Copy scripts
5355COPY docker/set-bpf-environment.sh scripts/set-bpf-environment.sh
You can’t perform that action at this time.
0 commit comments