mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-24 23:30:56 +00:00
14 lines
404 B
Bash
14 lines
404 B
Bash
|
#!/bin/bash
|
||
|
set -e
|
||
|
|
||
|
TAG="federation-test"
|
||
|
|
||
|
sudo docker build ../../ --file Dockerfile -t "dessalines/lemmy:$TAG"
|
||
|
sudo docker save "dessalines/lemmy:$TAG" -o "$TAG.tar"
|
||
|
sudo chown "$(id -u):$(id -g)" "$TAG.tar"
|
||
|
|
||
|
scp "$TAG.tar" enterprise.lemmy.ml:
|
||
|
rm "$TAG.tar"
|
||
|
ssh lemmy-test "cat $TAG.tar | docker load"
|
||
|
ssh lemmy-test "rm $TAG.tar"
|
||
|
ssh lemmy-test "cd /lemmy/enterprise.lemmy.ml && docker-compose up -d"
|