Skip to content

Commit 4075b6b

Browse files
add xrpl validator keys tool
1 parent 0d29378 commit 4075b6b

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

images/rippled/Dockerfile.2.6.2

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ ENV PATH="/opt/conan_env/bin:$PATH"
3434
RUN <<-EOF
3535
set -e
3636
git config --global http.postBuffer 1048576000
37-
conan config install /opt/ripple/conan/profiles/default -tf $(conan config home)/profiles
37+
conan config install /opt/ripple/conan/profiles/default -tf $(conan config home)/profiles
3838
conan remote add --index 0 xrplf "https://conan.ripplex.io"
3939
mkdir cmake_build
4040
EOF
@@ -72,10 +72,37 @@ RUN <<-EOF
7272
mkdir -p /opt/ripple/.ripple/db
7373
EOF
7474

75-
COPY rippled.conf validators.txt /opt/ripple/.ripple/
75+
WORKDIR /opt/validator-keys-tool
76+
77+
RUN git clone --single-branch --branch "master" https://github.com/ripple/validator-keys-tool.git /opt/validator-keys-tool && \
78+
git checkout 05742108d4b7c0b7d9a97c073acd690d2c75a2b4
79+
80+
RUN <<-EOF
81+
set -e
82+
mkdir .build
83+
cd .build
84+
conan install \
85+
.. \
86+
--profile:host=default \
87+
--profile:build=default \
88+
--output-folder . \
89+
--build missing \
90+
--settings build_type=Release
91+
cmake -DCMAKE_POLICY_DEFAULT_CMP0091=NEW \
92+
-DCMAKE_TOOLCHAIN_FILE:FILEPATH=conan_toolchain.cmake \
93+
-DCMAKE_BUILD_TYPE=Release \
94+
..
95+
EOF
96+
97+
RUN <<-EOF
98+
set -e
99+
cd .build
100+
cmake --build .
101+
EOF
76102

77103
FROM debian:trixie@sha256:8f6a88feef3ed01a300dafb87f208977f39dccda1fd120e878129463f7fa3b8f
78104
COPY --from=build /opt/ripple/build /opt/ripple/
105+
COPY --from=build /opt/validator-keys-tool/.build/validator-keys /opt/ripple/bin/
79106

80107
ENV DEBIAN_FRONTEND="noninteractive" TZ="Europe/London"
81108
ENV PATH="/opt/ripple/bin:${PATH}"

0 commit comments

Comments
 (0)