lemmy/docker/federation/run-federation-test.bash

29 lines
516 B
Bash
Raw Normal View History

2020-01-02 23:28:43 +00:00
#!/bin/bash
set -e
2020-05-07 17:07:33 +00:00
# already start rust build in the background
pushd ../../server/ || exit
cargo build &
popd || exit
2020-04-13 13:06:41 +00:00
if [ "$1" = "-yarn" ]; then
pushd ../../ui/ || exit
yarn
2020-04-13 13:06:41 +00:00
yarn build
popd || exit
fi
2020-01-02 23:28:43 +00:00
2020-05-07 17:07:33 +00:00
# wait for rust build to finish
2020-01-02 23:28:43 +00:00
pushd ../../server/ || exit
cargo build
popd || exit
sudo docker build ../../ --file Dockerfile -t lemmy-federation:latest
2020-01-02 23:28:43 +00:00
for Item in alpha beta gamma ; do
sudo mkdir -p volumes/pictrs_$Item
sudo chown -R 991:991 volumes/pictrs_$Item
done
sudo docker-compose up