Created
October 11, 2017 14:45
-
-
Save trickkiste/8fef4e69180de21ef13a3352dd07df6c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "topic": "$NAMESPACE_LISTENER/tick", | |
| "service_uuid": "$SERVICE_UUID", | |
| "service_name": "$SERVICE_NAME", | |
| "service_host": "$SERVICE_HOST", | |
| "created_at": "$NOW", | |
| "payload": { | |
| "tick_uuid": "$TICK_UUID", | |
| "tick_timestamp": "$NOW" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #/!bin/ash | |
| FILENAME=$1 | |
| while read line | |
| do | |
| sleep 0.2 | |
| echo $line | NOW=`date -u +"%FT%T.000Z"` envsubst | |
| done <$FILENAME | tee /dev/stderr | SERVICE_UUID=SSSSSSSS-1285-4E4C-A44E-AAAABBBB0000 SERVICE_NAME=micro-worker-ffmpeg SERVICE_HOST=machine NAMESPACE_LISTENER=flaneur NAMESPACE_PUBLISHER=flaneur node processor.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment