mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2025-05-24 20:58:02 +03:00
update cassandra java certs
This commit is contained in:
parent
664cf0a20b
commit
1b18d40698
@ -8,8 +8,19 @@ ARG CAS_LUCENE_PLUGIN_URL=https://repo1.maven.org/maven2/com/stratio/cassandra/c
|
|||||||
RUN cd /opt/bitnami/cassandra/lib && \
|
RUN cd /opt/bitnami/cassandra/lib && \
|
||||||
curl ${CAS_LUCENE_PLUGIN_URL} --output cassandra-lucene-index-plugin-${CAS_LUCENE_PLUGIN_VER}.jar
|
curl ${CAS_LUCENE_PLUGIN_URL} --output cassandra-lucene-index-plugin-${CAS_LUCENE_PLUGIN_VER}.jar
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Update JavaCA
|
||||||
|
##################################################################
|
||||||
COPY usr/local/share/ca-certificates /usr/local/share/ca-certificates
|
COPY usr/local/share/ca-certificates /usr/local/share/ca-certificates
|
||||||
RUN update-ca-certificates --fresh
|
RUN update-ca-certificates --fresh && \
|
||||||
|
for cert in /usr/local/share/ca-certificates/*.crt; do \
|
||||||
|
alias=$(basename "$cert" .crt); \
|
||||||
|
keytool -importcert \
|
||||||
|
-keystore "$JAVA_HOME/lib/security/cacerts" \
|
||||||
|
-storepass changeit \
|
||||||
|
-file "$cert" \
|
||||||
|
-alias "$alias" \
|
||||||
|
-noprompt; \
|
||||||
|
done
|
||||||
|
|
||||||
USER 1001
|
USER 1001
|
||||||
|
Loading…
x
Reference in New Issue
Block a user