fabric-samples/token-erc-721/chaincode-java/docker/docker-entrypoint.sh
renjithkn@gmail.com 487215b242 Java chaincode implementation of erc721 non-fungible tokens standard.
Signed-off-by: renjithpta <renjithkn@gmail.com>
Signed-off-by: renjithkn@gmail.com <renjithkn@gmail.com>
2022-04-07 05:02:22 +00:00

16 lines
431 B
Bash
Executable file

#!/usr/bin/env bash
#
# SPDX-License-Identifier: Apache-2.0
#
set -euo pipefail
: ${CORE_PEER_TLS_ENABLED:="false"}
: ${DEBUG:="false"}
if [ "${DEBUG,,}" = "true" ]; then
exec java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=0.0.0.0:8000 -jar /chaincode.jar
elif [ "${CORE_PEER_TLS_ENABLED,,}" = "true" ]; then
exec java -jar /chaincode.jar # todo
else
exec java -jar /chaincode.jar
fi