Skip to content

Conversation

@mathbunnyru
Copy link
Collaborator

@mathbunnyru mathbunnyru commented May 30, 2025

No description provided.

@mathbunnyru mathbunnyru changed the title ci: Install zip in Dockerfile ci: Beautify installation lists Dockerfile Jun 2, 2025
godexsoft
godexsoft previously approved these changes Jun 2, 2025
@mathbunnyru mathbunnyru changed the title ci: Beautify installation lists Dockerfile style: Beautify installation lists Dockerfile Jun 2, 2025
@mathbunnyru mathbunnyru changed the title style: Beautify installation lists Dockerfile style: Beautify installation lists in Dockerfile Jun 2, 2025
@mathbunnyru mathbunnyru merged commit 19257f8 into XRPLF:develop Jun 2, 2025
6 checks passed
Comment on lines +32 to +51
&& apt install -y --no-install-recommends --no-install-suggests \
bison \
clang-tidy-${LLVM_TOOLS_VERSION} \
clang-tools-${LLVM_TOOLS_VERSION} \
flex \
git \
git-lfs \
graphviz \
jq \
make \
ninja-build \
python3 \
python3-pip \
zip \
&& pip3 install -q --upgrade --no-cache-dir pip \
&& pip3 install -q --no-cache-dir \
cmake==3.31.6 \
conan==1.62 \
gcovr \
pre-commit \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use heredocs in Dockerfiles now (can write to a file also).

You might think it's hideous but...

Since you're using bash you could use an array to comment why you're adding these tools also:

RUN  <<EOF
    pkgs=()
    pkgs+=(build-essential)               # required build tools
    ...
    pkgs+=(jq)                            # pretty printing
    pkgs+=(python3-pip python-is-python3) # Python and pip for Conan (and CMake)
    ...
    apt-get update && apt-get install --yes "${pkgs[@]}"
EOF

Maybe can lose the && with
SHELL ["/bin/bash", "-o", "pipefail", "-o", "errexit", "-c"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants