问题
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