cns->registry
This commit is contained in:
parent
b398dac1d0
commit
3e0b946516
@ -24,7 +24,7 @@ if [ -z "$CERC_REGISTRY_APP_LRN" ]; then
|
|||||||
CERC_REGISTRY_APP_LRN="lrn://$authority/applications/$app"
|
CERC_REGISTRY_APP_LRN="lrn://$authority/applications/$app"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
APP_RECORD=$(laconic -c $CONFIG_FILE cns name resolve "$CERC_REGISTRY_APP_LRN" | jq '.[0]')
|
APP_RECORD=$(laconic -c $CONFIG_FILE registry name resolve "$CERC_REGISTRY_APP_LRN" | jq '.[0]')
|
||||||
if [ -z "$APP_RECORD" ] || [ "null" == "$APP_RECORD" ]; then
|
if [ -z "$APP_RECORD" ] || [ "null" == "$APP_RECORD" ]; then
|
||||||
echo "No record found for $CERC_REGISTRY_APP_LRN."
|
echo "No record found for $CERC_REGISTRY_APP_LRN."
|
||||||
exit 1
|
exit 1
|
||||||
@ -36,7 +36,7 @@ record:
|
|||||||
version: 1.0.0
|
version: 1.0.0
|
||||||
name: "$rcd_name@$rcd_app_version"
|
name: "$rcd_name@$rcd_app_version"
|
||||||
application: "$CERC_REGISTRY_APP_LRN@$rcd_app_version"
|
application: "$CERC_REGISTRY_APP_LRN@$rcd_app_version"
|
||||||
dns: "$CERC_REGISTRY_DEPLOYMENT_SHORT_HOSTNAME"
|
dns: "$CERC_REGISTRY_DEPLOYMENT_HOSTNAME"
|
||||||
deployment: "$CERC_REGISTRY_DEPLOYMENT_LRN"
|
deployment: "$CERC_REGISTRY_DEPLOYMENT_LRN"
|
||||||
config:
|
config:
|
||||||
env:
|
env:
|
||||||
@ -48,7 +48,7 @@ record:
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat $RECORD_FILE
|
cat $RECORD_FILE
|
||||||
RECORD_ID=$(laconic -c $CONFIG_FILE cns record publish --filename $RECORD_FILE --user-key "${CERC_REGISTRY_USER_KEY}" --bond-id ${CERC_REGISTRY_BOND_ID} | jq -r '.id')
|
RECORD_ID=$(laconic -c $CONFIG_FILE registry record publish --filename $RECORD_FILE --user-key "${CERC_REGISTRY_USER_KEY}" --bond-id ${CERC_REGISTRY_BOND_ID} | jq -r '.id')
|
||||||
echo $RECORD_ID
|
echo $RECORD_ID
|
||||||
|
|
||||||
rm -f $RECORD_FILE $CONFIG_FILE
|
rm -f $RECORD_FILE $CONFIG_FILE
|
||||||
|
Loading…
Reference in New Issue
Block a user