Skip to content

Commit

Permalink
Update infinispan changes in beta-instanton
Browse files Browse the repository at this point in the history
  • Loading branch information
kabicin committed Jun 2, 2023
1 parent 7adce8a commit 1cc6c10
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<feature>sessionCache-1.0</feature>
</featureManager>
<httpSessionCache libraryRef="InfinispanLib">
<properties infinispan.client.hotrod.server_list="${INFINISPAN_HOST}:${INFINISPAN_PORT}"/>
<properties infinispan.client.hotrod.server_list="${INFINISPAN_HOST}:${INFINISPAN_PORT};${INFINISPAN_SERVICE_NAME_ORIGINAL}:${INFINISPAN_PORT}"/>
<properties infinispan.client.hotrod.marshaller="org.infinispan.commons.marshall.JavaSerializationMarshaller"/>
<properties infinispan.client.hotrod.java_serial_whitelist=".*"/>
<properties infinispan.client.hotrod.auth_username="${INFINISPAN_USER}"/>
Expand All @@ -12,7 +12,6 @@
<properties infinispan.client.hotrod.sasl_mechanism="DIGEST-MD5"/>
<properties infinispan.client.hotrod.auth_server_name="infinispan"/>
</httpSessionCache>
<httpSessionCache enableBetaSupportForInfinispan="true"/> <!-- TODO remove once no longer gated -->
<library id="InfinispanLib">
<fileset dir="${shared.resource.dir}/infinispan" includes="*.jar"/>
</library>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ fi

set -Eeox pipefail

yum module enable -y maven:3.6
yum update -y
yum install -y maven
mkdir -p /opt/ol/wlp/usr/shared/resources/infinispan
Expand Down
7 changes: 7 additions & 0 deletions releases/22.0.0.12/full/helpers/runtime/docker-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ importKeyCert
# Infinispan Session Caching
if [[ -n "$INFINISPAN_SERVICE_NAME" ]]; then
echo "INFINISPAN_SERVICE_NAME(original): ${INFINISPAN_SERVICE_NAME}"
INFINISPAN_SERVICE_NAME_ORIGINAL=${INFINISPAN_SERVICE_NAME}
export INFINISPAN_SERVICE_NAME_ORIGINAL
INFINISPAN_SERVICE_NAME=$(echo ${INFINISPAN_SERVICE_NAME} | sed 's/-/_/g' | sed 's/./\U&/g')
echo "INFINISPAN_SERVICE_NAME(normalized): ${INFINISPAN_SERVICE_NAME}"

Expand All @@ -112,6 +114,11 @@ if [[ -n "$INFINISPAN_SERVICE_NAME" ]]; then
export INFINISPAN_PASS=$(cat ${LIBERTY_INFINISPAN_SECRET_DIR:=/platform/bindings/infinispan/secret}/identities.yaml | grep -m 1 password | sed 's/password://' | sed 's/[[:space:]]*//g')
fi
echo "INFINISPAN_PASS: ${INFINISPAN_PASS}"

if [[ -z "$INFINISPAN_TRUST_STORE_PATH" ]]; then
export INFINISPAN_TRUST_STORE_PATH="/var/run/secrets/kubernetes.io/serviceaccount/service-ca.crt"
fi
echo "INFINISPAN_TRUST_STORE_PATH: ${INFINISPAN_TRUST_STORE_PATH}"
fi


Expand Down
5 changes: 5 additions & 0 deletions releases/latest/beta/helpers/runtime/docker-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ if [[ -n "$INFINISPAN_SERVICE_NAME" ]]; then
export INFINISPAN_PASS=$(cat ${LIBERTY_INFINISPAN_SECRET_DIR:=/platform/bindings/infinispan/secret}/identities.yaml | grep -m 1 password | sed 's/password://' | sed 's/[[:space:]]*//g')
fi
echo "INFINISPAN_PASS: ${INFINISPAN_PASS}"

if [[ -z "$INFINISPAN_TRUST_STORE_PATH" ]]; then
export INFINISPAN_TRUST_STORE_PATH="/var/run/secrets/kubernetes.io/serviceaccount/service-ca.crt"
fi
echo "INFINISPAN_TRUST_STORE_PATH: ${INFINISPAN_TRUST_STORE_PATH}"
fi


Expand Down

0 comments on commit 1cc6c10

Please sign in to comment.