Skip to content

Commit fe2a43c

Browse files
burmanmemerkle826
authored andcommitted
Remove microdnf update from the UBI Dockerfiles
1 parent d42e91c commit fe2a43c

File tree

7 files changed

+12
-11
lines changed

7 files changed

+12
-11
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Changelog for Management API, new PRs should update the `main / unreleased` sect
1313

1414
* [FEATURE] [#695](https://github.com/k8ssandra/management-api-for-apache-cassandra/issues/695) Add Cassandra 5.0.6 to the build matrix
1515
* [FEATURE] [#699](https://github.com/k8ssandra/management-api-for-apache-cassandra/issues/699) Add Cassandra 4.0.19 to the build matrix
16+
* [BUGFIX] [#700](https://github.com/k8ssandra/management-api-for-apache-cassandra/issues/700) Remove microdnf update from the Dockerfile, rely on the base image updates. This also prevents blocking due to wanting user input for upgrades
1617

1718
## v0.1.109 [2025-10-17]
1819
* [FEATURE] [#682](https://github.com/k8ssandra/management-api-for-apache-cassandra/issues/682) Add DSE 6.8.60 to the build matrix

cassandra/Dockerfile-3.11.ubi8

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ENV CASSANDRA_HOME=/opt/cassandra
1414
RUN microdnf install --nodocs shadow-utils \
1515
&& groupadd -r cassandra --gid=999 \
1616
&& useradd -m -d "$CASSANDRA_HOME" -r -g cassandra -G root --uid=999 cassandra \
17-
&& microdnf update && rm -rf /var/cache/yum \
17+
&& rm -rf /var/cache/yum \
1818
# Install packages needed during install process
1919
&& microdnf install tar gzip unzip && microdnf clean all
2020

@@ -55,7 +55,7 @@ ENV CASSANDRA_HOME=/opt/cassandra
5555
RUN microdnf install --nodocs shadow-utils \
5656
&& groupadd -r cassandra --gid=999 \
5757
&& useradd -m -d "$CASSANDRA_HOME" -r -g cassandra -G root --uid=999 cassandra \
58-
&& microdnf update && rm -rf /var/cache/yum \
58+
&& rm -rf /var/cache/yum \
5959
# Install packages needed during install process
6060
&& microdnf install tar gzip unzip && microdnf clean all
6161

@@ -89,7 +89,7 @@ ENV CASSANDRA_HOME=/opt/cassandra
8989
RUN microdnf install --nodocs shadow-utils \
9090
&& groupadd -r cassandra --gid=999 \
9191
&& useradd -m -d "$CASSANDRA_HOME" -r -g cassandra -G root --uid=999 cassandra \
92-
&& microdnf update && rm -rf /var/cache/yum \
92+
&& rm -rf /var/cache/yum \
9393
# Install packages needed during install process
9494
&& microdnf install tar gzip unzip && microdnf clean all
9595

@@ -179,7 +179,7 @@ ENV CASSANDRA_DATA_DIR=/var/lib/cassandra
179179
RUN microdnf install --nodocs shadow-utils \
180180
&& groupadd -r cassandra --gid=999 \
181181
&& useradd -m -d "$CASSANDRA_HOME" -r -g cassandra -G root --uid=999 cassandra \
182-
&& microdnf update && rm -rf /var/cache/yum \
182+
&& rm -rf /var/cache/yum \
183183
# Install packages needed during install process
184184
&& microdnf install --nodocs java-1.8.0-openjdk-headless java-11-openjdk-headless tzdata-java python2 python3 zlib findutils which hostname iproute procps util-linux glibc-langpack-en wget tar \
185185
&& microdnf clean all

cassandra/Dockerfile-4.0.ubi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ENV CASSANDRA_HOME=/opt/cassandra
1515
RUN microdnf install -y --nodocs shadow-utils \
1616
&& groupadd -r cassandra --gid=999 \
1717
&& useradd -m -d "$CASSANDRA_HOME" -r -g cassandra -G root --uid=999 cassandra \
18-
&& microdnf update && rm -rf /var/cache/yum \
18+
&& rm -rf /var/cache/yum \
1919
# Install packages needed during install process
2020
&& microdnf install -y tar gzip unzip && microdnf clean all
2121

@@ -117,7 +117,7 @@ COPY cassandra/rh-repos/adoptium.repo /etc/yum.repos.d/adoptium.repo
117117
RUN microdnf install -y --nodocs shadow-utils \
118118
&& groupadd -r cassandra --gid=999 \
119119
&& useradd -m -d "$CASSANDRA_HOME" -r -g cassandra -G root --uid=999 cassandra \
120-
&& microdnf update && rm -rf /var/cache/yum \
120+
&& rm -rf /var/cache/yum \
121121
# Install packages needed during install process
122122
&& microdnf install -y --nodocs temurin-11-jdk tzdata-java python3 zlib findutils which hostname iproute procps util-linux glibc-langpack-en wget tar \
123123
&& microdnf clean all

cassandra/Dockerfile-4.1.ubi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ENV CASSANDRA_HOME=/opt/cassandra
1616
RUN microdnf install -y --nodocs shadow-utils \
1717
&& groupadd -r cassandra --gid=999 \
1818
&& useradd -m -d "$CASSANDRA_HOME" -r -g cassandra -G root --uid=999 cassandra \
19-
&& microdnf update && rm -rf /var/cache/yum \
19+
&& rm -rf /var/cache/yum \
2020
# Install packages needed during install process
2121
&& microdnf install -y tar gzip unzip && microdnf clean all
2222

@@ -119,7 +119,7 @@ COPY cassandra/rh-repos/adoptium.repo /etc/yum.repos.d/adoptium.repo
119119
RUN microdnf install -y --nodocs shadow-utils \
120120
&& groupadd -r cassandra --gid=999 \
121121
&& useradd -m -d "$CASSANDRA_HOME" -r -g cassandra -G root --uid=999 cassandra \
122-
&& microdnf update && rm -rf /var/cache/yum \
122+
&& rm -rf /var/cache/yum \
123123
# Install packages needed during install process
124124
&& microdnf install -y --nodocs temurin-11-jdk tzdata-java python3 zlib findutils which hostname iproute procps util-linux glibc-langpack-en wget tar \
125125
&& microdnf clean all

cassandra/Dockerfile-5.0.ubi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ ENV CASSANDRA_FILES_PATH=/opt/cassandra_files
8888
RUN microdnf install -y --nodocs shadow-utils \
8989
&& groupadd -r cassandra --gid=999 \
9090
&& useradd -m -d "$CASSANDRA_HOME" -r -g cassandra -G root --uid=999 cassandra \
91-
&& microdnf update && rm -rf /var/cache/yum \
91+
&& rm -rf /var/cache/yum \
9292
# Install packages needed during install process
9393
&& microdnf install -y --nodocs java-17-openjdk-headless tzdata-java python3.11 zlib findutils which hostname iproute procps util-linux glibc-langpack-en wget tar \
9494
&& microdnf clean all

dse/Dockerfile-dse6.8.ubi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ ENV HOME=$DSE_HOME
2727
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
2828

2929
# Install runtime dependencies and updates
30-
RUN microdnf update && rm -rf /var/cache/yum \
30+
RUN rm -rf /var/cache/yum \
3131
&& microdnf install --nodocs -y java-1.8.0-openjdk-headless java-1.8.0-openjdk-devel java-11-openjdk-headless python2 zlib libaio which findutils hostname iproute shadow-utils procps util-linux glibc-langpack-en wget tar && microdnf clean all
3232

3333
WORKDIR $HOME

dse/Dockerfile-dse6.9.ubi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
2929
COPY dse/files/adoptium.repo /etc/yum.repos.d/adoptium.repo
3030

3131
# Install runtime dependencies and updates
32-
RUN microdnf update && rm -rf /var/cache/yum && \
32+
RUN rm -rf /var/cache/yum && \
3333
microdnf install --nodocs -y temurin-11-jdk python39 zlib libaio which findutils hostname iproute shadow-utils procps util-linux glibc-langpack-en wget tar && microdnf clean all
3434

3535
WORKDIR $HOME

0 commit comments

Comments
 (0)