Skip to content

Commit 1a25be7

Browse files
authored
chore(ci): add Operator SDK into e2e-runner image (#2460)
* chore(ci): add Operator SDK into e2e-runner image * Add `gettext` for `envsubst`
1 parent 583b0c7 commit 1a25be7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.ibm/images/Dockerfile

+9-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2020
make gcc g++ python3 rsync sshpass \
2121
nodejs \
2222
openssl libssl-dev ca-certificates \
23+
apache2-utils \
24+
gettext \
2325
curl wget jq colorized-logs && \
2426
npm install -g typescript yarn@latest && \
2527
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
@@ -70,5 +72,11 @@ RUN curl -LO "https://github.com/operator-framework/operator-registry/releases/d
7072
chmod +x linux-amd64-opm && \
7173
mv linux-amd64-opm /usr/local/bin/opm
7274

73-
# Set working directory
75+
# Install Operator SDK CLI (required to install OLM on K8s clusters)
76+
RUN export ARCH=$(case $(uname -m) in x86_64) echo -n amd64 ;; aarch64) echo -n arm64 ;; *) echo -n $(uname -m) ;; esac) && \
77+
export OS=$(uname | awk '{print tolower($0)}') && \
78+
curl -LO "https://github.com/operator-framework/operator-sdk/releases/download/v1.39.1/operator-sdk_${OS}_${ARCH}" && \
79+
chmod +x operator-sdk_${OS}_${ARCH} && mv operator-sdk_${OS}_${ARCH} /usr/local/bin/operator-sdk
80+
81+
# Set working directory
7482
WORKDIR /tmp/

0 commit comments

Comments
 (0)