How to write the following script in Powershell

你说的曾经没有我的故事 提交于 2021-01-29 18:55:22

问题


This question is related to: bash: C:/Program: No such file or directory

What is the equivalent syntax to write the following in Powershell so that I can run this on Windows 10 without any problems?

export DEBEZIUM_VERSION=1.1
docker-compose -f docker-compose-sqlserver.yaml up

cat debezium-sqlserver-init/inventory.sql | docker exec -i tutorial_sqlserver_1 bash -c '/opt/mssql-tools/bin/sqlcmd -U sa -P $SA_PASSWORD'

curl -i -X POST -H "Accept:application/json" -H  "Content-Type:application/json" http://localhost:8083/connectors/ -d @register-sqlserver.json

docker-compose -f docker-compose-sqlserver.yaml exec kafka /kafka/bin/kafka-console-consumer.sh \
    --bootstrap-server kafka:9092 \
    --from-beginning \
    --property print.key=true \
    --topic server1.dbo.customers

docker-compose -f docker-compose-sqlserver.yaml exec sqlserver bash -c '/opt/mssql-tools/bin/sqlcmd -U sa -P $SA_PASSWORD -d testDB'

docker-compose -f docker-compose-sqlserver.yaml down

来源:https://stackoverflow.com/questions/61020999/how-to-write-the-following-script-in-powershell

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!