summaryrefslogtreecommitdiffstats
path: root/docker/federation/run-federation-test.bash
blob: 2c8b681ce3e65e0fe8cdcd3dbc994debffb05903 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
set -e

if [ "$1" = "-yarn" ]; then
  pushd ../../ui/ || exit
  yarn
  yarn build
  popd || exit
fi

pushd ../../server/ || exit
cargo build
popd || exit

sudo docker build ../../ -f Dockerfile -t lemmy-federation:latest

sudo docker-compose up