4 # make sure there are no old containers or old data around
5 sudo docker-compose down
8 mkdir -p volumes/pictrs_{alpha,beta,gamma}
9 sudo chown -R 991:991 volumes/pictrs_{alpha,beta,gamma}
11 sudo docker build ../../ --file ../prod/Dockerfile --tag dessalines/lemmy:travis
13 sudo docker-compose up -d
16 echo "Waiting for Lemmy to start..."
17 while [[ "$(curl -s -o /dev/null -w '%{http_code}' 'localhost:8540/api/v1/site')" != "200" ]]; do sleep 1; done
18 while [[ "$(curl -s -o /dev/null -w '%{http_code}' 'localhost:8550/api/v1/site')" != "200" ]]; do sleep 1; done
19 while [[ "$(curl -s -o /dev/null -w '%{http_code}' 'localhost:8560/api/v1/site')" != "200" ]]; do sleep 1; done
24 sudo docker-compose down