ibm-messaging / event-streams-samples

Apache License 2.0
95 stars 168 forks source link

starting node sample on windows #55

Open jpeckham opened 4 years ago

jpeckham commented 4 years ago

https://github.com/ibm-messaging/event-streams-samples/blob/master/kafka-nodejs-console-sample/docs/Docker_Local.md instructions aren't working for windows

in dos command line you have to be single line and escape quotes. I don't think single tick worked:

SET VCAP_SERVICES = "{ \"instance_id\": \"...\", \"mqlight_lookup_url\": \"...\", \"api_key\": \"...\",\"kafka_admin_url\": \"....\",\"kafka_rest_url\": \"...\",\"kafka_brokers_sasl\": [ ... ],\"user\": \"...\", \"password\": \"...\"}"

interpolating env variable is different docker run -e VCAP_SERVICES="%VCAP_SERVICES%" nodejs-console-sample