Matt Harrison
10/20/2023, 8:34 PMkapa.ai
10/20/2023, 8:34 PM\n for new lines, while Windows uses \r\n. When you're trying to run the script on Windows, it's interpreting the \r as a command, hence the $'\r': command not found error. To resolve this, you can convert the line endings to the Windows format. If you have a tool like dos2unix, you can use it to convert your script file. If you don't have it, you can install it in your WSL2 Ubuntu subsystem with sudo apt-get install dos2unix, then run dos2unix run-ab-platform.sh. As for running Airbyte like a service, the extracts provided do not contain specific instructions for this. However, since Airbyte is a Docker-based application, you could consider using Docker's restart policies to ensure your Airbyte containers automatically start when they exit, or when Docker restarts. Here's an example of how to use the --restart flag with `docker run`: bash docker run -d --restart unless-stopped my-docker-app This command will start my-docker-app as a detached process (-d), and Docker will automatically start it unless it's explicitly stopped. Please note that the run-ab-platform.sh script is a convenient way to start Airbyte, but in a production environment, you might want to use Docker Compose or a container orchestration system like Kubernetes to manage your Airbyte services. For more detailed instructions and best practices for deploying Airbyte, you might want to check the [official Airbyte documentation](https://docs.airbyte.com/).