I want to automate a deployment which includes starting a Minio server. However, when I start the Minio server with minio server myserver
there is a process running which I usually would kill with Ctrl+C and go on with the next steps of the deployment.
Now I am writing a bash script that will automate all of these steps for me but I cannot get over that point when I create the minio server.
What I tried:
#!/usr/bin/env bash
git clone https://github.com/openfaas/faas
docker swarm init
cd faas && ./deploy_stack.sh --no-auth
minio server myserver && kill $(pgrep minio server myserver)
cd data && mc mb incoming && mc mb processed