Service/Social Help: Difference between revisions
No edit summary |
No edit summary Tag: visualeditor |
||
| Line 13: | Line 13: | ||
[[Machine/justice|Freedom]] using docker | [[Machine/justice|Freedom]] using docker | ||
All the stuff lives in | All the stuff lives in <code>/srv/socialhelp</code> | ||
It uses the | It uses the <code>socialhelp</code> partition which is 20G ext4 on the lvm | ||
=== Ports === | === Ports === | ||
Shfr: 8000 | Shfr: 8000 | ||
Discourse: 8002 (2222 ssh) | Discourse: 8002 (2222 ssh) | ||
| Line 26: | Line 27: | ||
First do the discourse: | First do the discourse: | ||
cd /srv/socialhelp/discourse | |||
<nowiki>#</nowiki> Generate the container - will take some time | |||
sudo ./launcher rebuild app | |||
sudo ./launcher start app --docker-args "-m 4g --cpuset='6-7'" | |||
Then the re director: | Then the re director: | ||
docker pull samdroid/aslo-shfr | |||
# Get id of old instance | |||
docker ps | |||
docker kill [id] | |||
docker run -e API_KEY=DISCOURSE_API_KEY -m 500m --cpuset="7" -c 1 -p 8000:8000 --name="SHFR-Beaver" -d samdroid/aslo-shfr:latest | |||
The api key is stored | The api key is stored in <code>/srv/socialhelp/discourse_api_key.txt</code> | ||