Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 070d2b2

Browse files
authored
- Remove long timeouts added for debugging. (#74)
- Remove long timeouts added for debugging. - Update keys.sh to function properly on OL7 - Update to gRPC 1.9.x
1 parent 680ad63 commit 070d2b2

File tree

4 files changed

+17
-10
lines changed

4 files changed

+17
-10
lines changed

bin/docker-utils.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function coh_up() {
2222
while [ ${SECONDS} -le 60 ]; do
2323
READY=$(curl -o /dev/null -s -w "%{http_code}" "http://127.0.0.1:6676/ready") || true
2424
if [ "${READY}" -eq "200" ]; then
25-
sleep 20
25+
sleep 5
2626
echo "Coherence is ready!"
2727
return
2828
fi

bin/keys.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ if [ -z "${CERTS_DIR}" ] ; then
1919
exit 1
2020
fi
2121

22+
# check for location of openssl.cnf
23+
if [ -f "/etc/ssl/openssl.cnf" ]; then
24+
export SSL_CNF=/etc/ssl/openssl.cnf
25+
else
26+
export SSL_CNF=/etc/pki/tls/openssl.cnf
27+
fi
28+
2229
mkdir -p "${CERTS_DIR}"
2330

2431
# Generate random passwords for each run
@@ -31,7 +38,7 @@ echo "${CAPASS}" | openssl genrsa -passout stdin -aes256 \
3138
echo Generate Guardians CA certificate:
3239
echo "${CAPASS}" | openssl req -passin stdin -new -x509 -days 3650 \
3340
-reqexts SAN \
34-
-config <(cat /etc/ssl/openssl.cnf \
41+
-config <(cat "${SSL_CNF}" \
3542
<(printf "\n[SAN]\nsubjectAltName=DNS:localhost,DNS:127.0.0.1")) \
3643
-key "${CERTS_DIR}"/guardians-ca.key \
3744
-out "${CERTS_DIR}"/guardians-ca.crt \

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"repository": "https://github.com/oracle/coherence-js-client",
1313
"dependencies": {
1414
"@grpc/proto-loader": "^0.7",
15-
"@grpc/grpc-js": "^1.8",
15+
"@grpc/grpc-js": "^1.9",
1616
"google-protobuf": "^3.21",
1717
"decimal.js": "^10.4"
1818
},

0 commit comments

Comments
 (0)