mirror of
https://github.com/corda/corda.git
synced 2024-12-18 20:47:57 +00:00
EG-153 - Adding sshd by default to docker node.conf template (#6171)
* Adding value needed for the rapid deployment of Azure UAT enviroments * Parameterizing Rpc user * Removing duplicate config requirement * Forcing users to provide sshPort for node config generation with docker image
This commit is contained in:
parent
107819f5b5
commit
b989cfce43
@ -36,6 +36,9 @@ function generateGenericCZConfig() {
|
||||
: ${MY_LEGAL_NAME:? '$MY_LEGAL_NAME, the X500 name to use when joining must be set as environment variable'}
|
||||
: ${MY_EMAIL_ADDRESS:? '$MY_EMAIL_ADDRESS, the email to use when joining must be set as an environment variable'}
|
||||
: ${NETWORK_TRUST_PASSWORD=:? '$NETWORK_TRUST_PASSWORD, the password to the network store to use when joining must be set as environment variable'}
|
||||
: ${RPC_USER=:? '$RPC_USER, the name of the primary rpc user must be set as environment variable'}
|
||||
: ${SSHPORT=:? 'SSHPORT, the port number for the SSHD must be set as enviroment variable'}
|
||||
|
||||
|
||||
if [[ ! -f ${CERTIFICATES_FOLDER}/${TRUST_STORE_NAME} ]]; then
|
||||
die "Network Trust Root file not found"
|
||||
@ -49,6 +52,7 @@ function generateGenericCZConfig() {
|
||||
MY_RPC_ADMIN_PORT=${MY_RPC_ADMIN_PORT} \
|
||||
java -jar config-exporter.jar "GENERIC-CZ" "/opt/corda/starting-node.conf" "${CONFIG_FOLDER}/node.conf"
|
||||
fi
|
||||
|
||||
java -Djava.security.egd=file:/dev/./urandom -Dcapsule.jvm.args="${JVM_ARGS}" -jar /opt/corda/bin/corda.jar \
|
||||
--initial-registration \
|
||||
--base-directory /opt/corda \
|
||||
|
@ -5,6 +5,10 @@ rpcSettings {
|
||||
adminAddress="0.0.0.0:"${MY_RPC_ADMIN_PORT}
|
||||
}
|
||||
|
||||
sshd {
|
||||
port=${SSHPORT}
|
||||
}
|
||||
|
||||
security {
|
||||
authService {
|
||||
dataSource {
|
||||
@ -15,7 +19,8 @@ security {
|
||||
permissions=[
|
||||
ALL
|
||||
]
|
||||
user=rpcUser
|
||||
user=${RPC_USER}
|
||||
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user