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