2020-04-24 16:30:31 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
pushd ../../server/
|
|
|
|
cargo build
|
|
|
|
popd
|
|
|
|
|
2020-07-01 12:54:29 +00:00
|
|
|
pushd ../../ui
|
|
|
|
yarn
|
|
|
|
popd
|
|
|
|
|
|
|
|
mkdir -p volumes/pictrs_{alpha,beta,gamma}
|
|
|
|
sudo chown -R 991:991 volumes/pictrs_{alpha,beta,gamma}
|
|
|
|
|
2020-04-24 16:30:31 +00:00
|
|
|
sudo docker build ../../ --file ../federation/Dockerfile --tag lemmy-federation:latest
|
|
|
|
|
2020-07-01 12:54:29 +00:00
|
|
|
sudo mkdir -p volumes/pictrs_alpha
|
|
|
|
sudo chown -R 991:991 volumes/pictrs_alpha
|
2020-06-27 18:54:42 +00:00
|
|
|
|
2020-04-24 16:30:31 +00:00
|
|
|
sudo docker-compose --file ../federation/docker-compose.yml --project-directory . up -d
|
|
|
|
|
|
|
|
pushd ../../ui
|
|
|
|
echo "Waiting for Lemmy to start..."
|
2020-04-27 16:57:00 +00:00
|
|
|
while [[ "$(curl -s -o /dev/null -w '%{http_code}' 'localhost:8540/api/v1/site')" != "200" ]]; do sleep 1; done
|
|
|
|
while [[ "$(curl -s -o /dev/null -w '%{http_code}' 'localhost:8550/api/v1/site')" != "200" ]]; do sleep 1; done
|
2020-06-03 21:55:32 +00:00
|
|
|
while [[ "$(curl -s -o /dev/null -w '%{http_code}' 'localhost:8560/api/v1/site')" != "200" ]]; do sleep 1; done
|
2020-04-24 16:30:31 +00:00
|
|
|
yarn api-test || true
|
|
|
|
popd
|
|
|
|
|
|
|
|
sudo docker-compose --file ../federation/docker-compose.yml --project-directory . down
|
|
|
|
|
|
|
|
sudo rm -r volumes/
|