Skip to content

Commit 9c72bf1

Browse files
committed
add keytool, bump debug image
1 parent af9eadb commit 9c72bf1

File tree

4 files changed

+34
-3
lines changed

4 files changed

+34
-3
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ docker run \
8787
ghcr.io/flare-foundation/connected-chains-docker/distroless-debug:1.0.0
8888
```
8989

90+
For images based on Debian 13, use version `2.0.0`.
91+
9092
Example commands:
9193
```
9294
# attach to running bitcoin node's namespaces

images/debug/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# syntax=docker/dockerfile:1.3-labs
2-
FROM debian:12@sha256:b6507e340c43553136f5078284c8c68d86ec8262b1724dde73c325e8d3dcdeba as final
2+
FROM debian:13@sha256:0d01188e8dd0ac63bf155900fad49279131a876a1ea7fac917c62e87ccb2732d as final
33

4-
ARG VERSION=v1.0.0
4+
ARG VERSION=v2.0.0
55

66
RUN apt-get update && apt-get install -y \
77
curl \

images/debug/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
docker build -t flarefoundation/distroless-debug:1.0.0 .
1+
docker build -t flarefoundation/distroless-debug:2.0.0 .

images/rippled/Dockerfile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,34 @@ RUN <<-EOF
7272
mkdir -p /opt/ripple/.ripple/db
7373
EOF
7474

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
102+
75103
COPY rippled.conf validators.txt /opt/ripple/.ripple/
76104

77105
FROM gcr.io/distroless/base-debian13:nonroot@sha256:c0d0c9c854a635e57be1d6635e066b076de3b217c7b971b213cea2e5641cc3a0 as final
@@ -80,6 +108,7 @@ ENV DEBIAN_FRONTEND="noninteractive" TZ="Europe/London"
80108

81109
COPY --from=build --chown=65532:65532 /opt/ripple/build/bin/ /opt/ripple/bin/
82110
COPY --from=build --chown=65532:65532 /opt/ripple/.ripple/ /opt/ripple/.ripple/
111+
COPY --from=build /opt/validator-keys-tool/.build/validator-keys /opt/ripple/bin/
83112

84113
# https://xrpl.org/commandline-usage.html
85114
ENTRYPOINT ["/opt/ripple/bin/rippled", "--conf=/opt/ripple/.ripple/rippled.conf", "--fg"]

0 commit comments

Comments
 (0)