Skip to content

Commit

Permalink
added playground tools certs-create
Browse files Browse the repository at this point in the history
  • Loading branch information
vdesabou committed Dec 9, 2024
1 parent bd62c1b commit e1a05d3
Show file tree
Hide file tree
Showing 33 changed files with 1,291 additions and 1,130 deletions.
7 changes: 3 additions & 4 deletions connect/connect-active-mq-sink/active-mq-sink-mtls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
source ${DIR}/../../scripts/utils.sh

cd ${DIR}/security
log "🔐 Generate keys and certificates used for SSL using rmohr/activemq:5.15.9 image"
docker run -u0 --rm -v $PWD:/tmp rmohr/activemq:5.15.9 bash -c "/tmp/certs-create.sh > /dev/null 2>&1 && chown -R $(id -u $USER):$(id -g $USER) /tmp/"
cd ${DIR}
cd ../../connect/connect-active-mq-sink/security
playground tools certs-create --output-folder "$PWD" --container connect --container activemq
cd -

PLAYGROUND_ENVIRONMENT=${PLAYGROUND_ENVIRONMENT:-"plaintext"}
playground start-environment --environment "${PLAYGROUND_ENVIRONMENT}" --docker-compose-override-file "${PWD}/docker-compose.plaintext.mtls.yml"
Expand Down
68 changes: 0 additions & 68 deletions connect/connect-active-mq-sink/security/certs-create.sh

This file was deleted.

68 changes: 0 additions & 68 deletions connect/connect-active-mq-source/security/certs-create.sh

This file was deleted.

7 changes: 3 additions & 4 deletions connect/connect-ibm-mq-sink/ibm-mq-sink-mtls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@ then
fi
cd -

cd ${DIR}/security
log "🔐 Generate keys and certificates used for SSL"
docker run -u0 --rm -v $PWD:/tmp ${CP_CONNECT_IMAGE}:${CONNECT_TAG} bash -c "/tmp/certs-create.sh > /dev/null 2>&1 && chown -R $(id -u $USER):$(id -g $USER) /tmp/ && chmod a+r /tmp/*"
cd ${DIR}
cd ../../connect/connect-ibm-mq-sink/security
playground tools certs-create --output-folder "$PWD" --container connect --container ibmmq
cd -

PLAYGROUND_ENVIRONMENT=${PLAYGROUND_ENVIRONMENT:-"plaintext"}
playground start-environment --environment "${PLAYGROUND_ENVIRONMENT}" --docker-compose-override-file "${PWD}/docker-compose.plaintext.mtls.yml"
Expand Down
7 changes: 3 additions & 4 deletions connect/connect-ibm-mq-sink/ibm-mq-sink-ssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@ then
fi
cd -

cd ${DIR}/security
log "🔐 Generate keys and certificates used for SSL"
docker run -u0 --rm -v $PWD:/tmp ${CP_CONNECT_IMAGE}:${CONNECT_TAG} bash -c "/tmp/certs-create.sh > /dev/null 2>&1 && chown -R $(id -u $USER):$(id -g $USER) /tmp/ && chmod a+r /tmp/*"
cd ${DIR}
cd ../../connect/connect-ibm-mq-sink/security
playground tools certs-create --output-folder "$PWD" --container connect --container ibmmq
cd -

PLAYGROUND_ENVIRONMENT=${PLAYGROUND_ENVIRONMENT:-"plaintext"}
playground start-environment --environment "${PLAYGROUND_ENVIRONMENT}" --docker-compose-override-file "${PWD}/docker-compose.plaintext.ssl.yml"
Expand Down
80 changes: 0 additions & 80 deletions connect/connect-ibm-mq-sink/security/certs-create.sh

This file was deleted.

7 changes: 3 additions & 4 deletions connect/connect-ibm-mq-source/ibm-mq-mtls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@ then
fi
cd -

cd ${DIR}/security
log "🔐 Generate keys and certificates used for SSL"
docker run -u0 --rm -v $PWD:/tmp ${CP_CONNECT_IMAGE}:${CONNECT_TAG} bash -c "/tmp/certs-create.sh > /dev/null 2>&1 && chown -R $(id -u $USER):$(id -g $USER) /tmp/ && chmod a+r /tmp/*"
cd ${DIR}
cd ../../connect/connect-ibm-mq-source/security
playground tools certs-create --output-folder "$PWD" --container connect --container ibmmq
cd -

PLAYGROUND_ENVIRONMENT=${PLAYGROUND_ENVIRONMENT:-"plaintext"}
playground start-environment --environment "${PLAYGROUND_ENVIRONMENT}" --docker-compose-override-file "${PWD}/docker-compose.plaintext.mtls.yml"
Expand Down
7 changes: 3 additions & 4 deletions connect/connect-ibm-mq-source/ibm-mq-ssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@ then
fi
cd -

cd ${DIR}/security
log "🔐 Generate keys and certificates used for SSL"
docker run -u0 --rm -v $PWD:/tmp ${CP_CONNECT_IMAGE}:${CONNECT_TAG} bash -c "/tmp/certs-create.sh > /dev/null 2>&1 && chown -R $(id -u $USER):$(id -g $USER) /tmp/ && chmod a+r /tmp/*"
cd ${DIR}
cd ../../connect/connect-ibm-mq-source/security
playground tools certs-create --output-folder "$PWD" --container connect --container ibmmq
cd -

PLAYGROUND_ENVIRONMENT=${PLAYGROUND_ENVIRONMENT:-"plaintext"}
playground start-environment --environment "${PLAYGROUND_ENVIRONMENT}" --docker-compose-override-file "${PWD}/docker-compose.plaintext.ssl.yml"
Expand Down
80 changes: 0 additions & 80 deletions connect/connect-ibm-mq-source/security/certs-create.sh

This file was deleted.

7 changes: 3 additions & 4 deletions connect/connect-mqtt-sink/mqtt-sink-mtls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
source ${DIR}/../../scripts/utils.sh

cd ${DIR}/security
log "🔐 Generate keys and certificates used for SSL"
docker run -u0 --rm -v $PWD:/tmp ${CP_CONNECT_IMAGE}:${CONNECT_TAG} bash -c "/tmp/certs-create.sh > /dev/null 2>&1 && chown -R $(id -u $USER):$(id -g $USER) /tmp/ && chmod a+r /tmp/*"
cd ${DIR}
cd ../../connect/connect-mqtt-sink/security
playground tools certs-create --output-folder "$PWD" --container connect --container mosquitto
cd -

PLAYGROUND_ENVIRONMENT=${PLAYGROUND_ENVIRONMENT:-"plaintext"}
playground start-environment --environment "${PLAYGROUND_ENVIRONMENT}" --docker-compose-override-file "${PWD}/docker-compose.plaintext.mtls.yml"
Expand Down
Loading

0 comments on commit e1a05d3

Please sign in to comment.