Skip to content

Commit

Permalink
Remove jmxremote password changes from DSE 6.9 jdk11 Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
emerkle826 committed Sep 25, 2024
1 parent 74bf27c commit e6afb01
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions dse/Dockerfile-dse6.9.jdk11
Original file line number Diff line number Diff line change
Expand Up @@ -192,16 +192,6 @@ RUN if ! grep -qxf "JVM_OPTS=\"\$JVM_OPTS -Dinsights.default_mode=disabled\"" <
echo " JVM_OPTS=\"\$JVM_OPTS -Dinsights.default_mode=disabled\"" >> ${CASSANDRA_CONF}/cassandra-env.sh && \
echo "fi" >> ${CASSANDRA_CONF}/cassandra-env.sh ; \
fi
# edit cassandra-env.sh to specify JMX remote password file
RUN if ! grep -qx "^JVM_OPTS=\"\$JVM_OPTS -Dcom.sun.management.jmxremote.password.file=.*" < ${CASSANDRA_CONF}/cassandra-env.sh ; then \
# jmxremote password file option not found, add it at the end
echo "" >> ${CASSANDRA_CONF}/cassandra-env.sh && \
echo "JVM_OPTS=\"\$JVM_OPTS -Dcom.sun.management.jmxremote.password.file=${CASSANDRA_CONF}/jmxremote.password\"" >> ${CASSANDRA_CONF}/cassandra-env.sh ; \
fi ; \
if ! grep -qx "^JVM_OPTS=\"\$JVM_OPTS -Dcom.sun.management.jmxremote.password.file=${CASSANDRA_CONF}/jmxremote.password\"" < ${CASSANDRA_CONF}/cassandra-env.sh ; then \
sed -i 's|^JVM_OPTS=\"\$JVM_OPTS -Dcom.sun.management.jmxremote.password.file=.*|JVM_OPTS=\"\$JVM_OPTS -Dcom.sun.management.jmxremote.password.file='${CASSANDRA_CONF}'\/jmxremote.password\"|g' ${CASSANDRA_CONF}/cassandra-env.sh ; \
fi

# Fix COPY directory modes
RUN chmod g+w ${MAAC_PATH} ${MCAC_PATH} ${DSE_HOME} ${DSE_AGENT_HOME} ${CDC_AGENT_PATH}

Expand Down

0 comments on commit e6afb01

Please sign in to comment.