Skip to content

Commit 94a48cd

Browse files
committed
Set default shell to Bash
1 parent e3ce05b commit 94a48cd

File tree

2 files changed

+28
-22
lines changed

2 files changed

+28
-22
lines changed

docker/debian/Dockerfile

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ FROM gcc:${GCC_VERSION}-${DEBIAN_VERSION} AS gcc-src
1111
# ====================== BASE IMAGE ======================
1212
FROM debian:${DEBIAN_VERSION} AS base
1313

14+
# Use Bash as the default shell for RUN commands.
15+
SHELL ["/bin/bash", "-c"]
16+
1417
# Associate the image with the repository.
1518
ARG GITHUB_REPO=XRPLF/ci
1619
LABEL org.opencontainers.image.source=https://github.com/${GITHUB_REPO}
@@ -26,21 +29,21 @@ RUN set -ex ;\
2629

2730
# Install tools that are shared by all stages.
2831
RUN <<EOF
29-
pkgs=()
30-
pkgs+=(build-essential) # Required build tools.
31-
pkgs+=(ca-certificates) # Enable TLS verification for HTTPS connections by providing trusted root certificates.
32-
pkgs+=(cmake) # Required build tool.
33-
pkgs+=(curl) # Dependency for tools requiring downloading data.
34-
pkgs+=(git) # Required build tool.
35-
pkgs+=(gpg) # Dependency for tools requiring signing or encrypting/decrypting.
36-
pkgs+=(jq) # Pretty printing.
37-
pkgs+=(ninja-build) # Required build tool.
38-
apt install -y "${pkgs[@]}"
32+
pkgs=()
33+
pkgs+=(build-essential) # Required build tools.
34+
pkgs+=(ca-certificates) # Enable TLS verification for HTTPS connections by providing trusted root certificates.
35+
pkgs+=(cmake) # Required build tool.
36+
pkgs+=(curl) # Dependency for tools requiring downloading data.
37+
pkgs+=(git) # Required build tool.
38+
pkgs+=(gpg) # Dependency for tools requiring signing or encrypting/decrypting.
39+
pkgs+=(jq) # Pretty printing.
40+
pkgs+=(ninja-build) # Required build tool.
41+
pkgs+=(pipx) # Package manager for Python applications.
42+
apt install -y "${pkgs[@]}"
3943
EOF
4044

4145
# Install Conan.
4246
ARG CONAN_VERSION=2.17.0
43-
RUN apt install -y pipx
4447
RUN PIPX_HOME=/opt/pipx \
4548
PIPX_BIN_DIR=/usr/bin \
4649
PIPX_MAN_DIR=/usr/share/man \

docker/ubuntu/Dockerfile

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
ARG UBUNTU_VERSION=jammy
33
FROM ubuntu:${UBUNTU_VERSION} AS base
44

5+
# Use Bash as the default shell for RUN commands.
6+
SHELL ["/bin/bash", "-c"]
7+
58
# Associate the image with the repository.
69
ARG GITHUB_REPO=XRPLF/ci
710
LABEL org.opencontainers.image.source=https://github.com/${GITHUB_REPO}
@@ -17,21 +20,21 @@ RUN set -ex ;\
1720

1821
# Install tools that are shared by all stages.
1922
RUN <<EOF
20-
pkgs=()
21-
pkgs+=(build-essential) # Required build tools.
22-
pkgs+=(ca-certificates) # Enable TLS verification for HTTPS connections by providing trusted root certificates.
23-
pkgs+=(cmake) # Required build tool.
24-
pkgs+=(curl) # Dependency for tools requiring downloading data.
25-
pkgs+=(git) # Required build tool.
26-
pkgs+=(gpg) # Dependency for tools requiring signing or encrypting/decrypting.
27-
pkgs+=(jq) # Pretty printing.
28-
pkgs+=(ninja-build) # Required build tool.
29-
apt install -y "${pkgs[@]}"
23+
pkgs=()
24+
pkgs+=(build-essential) # Required build tools.
25+
pkgs+=(ca-certificates) # Enable TLS verification for HTTPS connections by providing trusted root certificates.
26+
pkgs+=(cmake) # Required build tool.
27+
pkgs+=(curl) # Dependency for tools requiring downloading data.
28+
pkgs+=(git) # Required build tool.
29+
pkgs+=(gpg) # Dependency for tools requiring signing or encrypting/decrypting.
30+
pkgs+=(jq) # Pretty printing.
31+
pkgs+=(ninja-build) # Required build tool.
32+
pkgs+=(pipx) # Package manager for Python applications.
33+
apt install -y "${pkgs[@]}"
3034
EOF
3135

3236
# Install Conan.
3337
ARG CONAN_VERSION=2.17.0
34-
RUN apt install -y pipx
3538
RUN PIPX_HOME=/opt/pipx \
3639
PIPX_BIN_DIR=/usr/bin \
3740
PIPX_MAN_DIR=/usr/share/man \

0 commit comments

Comments
 (0)