mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-22 06:36:14 +00:00
edb2e40383
* Testing out a travis 1. * Testing out a travis 2. * Testing out a travis 3. * Testing out a travis 4. * Testing out a travis 5. * Testing out a travis 6. Trying a failing test * Testing out a travis 7. Trying to cache the docker images. * Testing out a travis 8. Still not correctly failing. * Trying full path for docker_images dir. * Fixing test again, trying a dockerhub deploy. * Fixing test again, trying a dockerhub deploy 2. * Remove caching. * Trying to fix docker deploy. * Try using the travis tag * Using dessalines/lemmy:travis * Try using the prod dockerfile now. * Update http sigs dependency * Finally getting this mostly working. Co-authored-by: asonix <asonix@asonix.dog>
27 lines
793 B
Bash
Executable file
Vendored
27 lines
793 B
Bash
Executable file
Vendored
#!/bin/bash
|
|
set -e
|
|
|
|
# make sure there are no old containers or old data around
|
|
sudo docker-compose down
|
|
sudo rm -rf volumes
|
|
|
|
mkdir -p volumes/pictrs_{alpha,beta,gamma}
|
|
sudo chown -R 991:991 volumes/pictrs_{alpha,beta,gamma}
|
|
|
|
sudo docker build ../../ --file ../prod/Dockerfile --tag dessalines/lemmy:travis
|
|
|
|
sudo docker-compose up -d
|
|
|
|
pushd ../../ui
|
|
echo "Waiting for Lemmy to start..."
|
|
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
|
|
while [[ "$(curl -s -o /dev/null -w '%{http_code}' 'localhost:8560/api/v1/site')" != "200" ]]; do sleep 1; done
|
|
yarn
|
|
yarn api-test
|
|
popd
|
|
|
|
sudo docker-compose down
|
|
|
|
sudo rm -r volumes/
|