Jump to content

Service/Social Help: Difference between revisions

From Sugar Labs
No edit summary
Tag: visualeditor
No edit summary
 
(4 intermediate revisions by one other user not shown)
Line 16: Line 16:


It uses the <code>socialhelp</code> partition which is 20G ext4 on the lvm
It uses the <code>socialhelp</code> partition which is 20G ext4 on the lvm
=== Ports ===
Shfr: 8000
Discourse: 8002 (2222 ssh)


== Setup ==
== Setup ==
Line 32: Line 26:
  sudo ./launcher rebuild app
  sudo ./launcher rebuild app
   
   
  sudo ./launcher start app --docker-args "-m 4g --cpuset='6-7'"
  sudo ./launcher start app --docker-args "-m 5g --cpuset='6-7'"  
Most of the helpful discourse documentation is found [https://meta.discourse.org/t/how-do-i-update-my-docker-image-to-latest/23325 on their discourse forum].


Then the re director:
Then the re-director & sso:


docker pull samdroid/aslo-shfr
    container.yml start /containers/org.sugarlabs.socialhelp_sso/ -d
    container.yml start /containers/org.sugarlabs.use-socialhelp/ -d


# Get id of old instance
    # If they fail to start, make sure that they are built:
docker ps
    container.yml build /containers/org.sugarlabs.socialhelp_sso/
docker kill [id]
    container.yml build /containers/org.sugarlabs.use-socialhelp/


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
== Todo ==


The api key is stored in  <code>/srv/socialhelp/discourse_api_key.txt</code>
* how to upgrade to next version of discourse

Latest revision as of 23:09, 19 September 2017

Hostnames & Emails

socialhelp.sugarlabs.org

use.socialhelp.sugarlabs.org (HTTP only, redirects to use-socialhelp on https)

use-socialhelp.sugarlabs.org

socialhelp AT sugarlabs DOT org

Hosted On

Freedom using docker

All the stuff lives in /srv/socialhelp

It uses the socialhelp partition which is 20G ext4 on the lvm

Setup

First do the discourse:

cd /srv/socialhelp/discourse

# Generate the container - will take some time
sudo ./launcher rebuild app

sudo ./launcher start app --docker-args "-m 5g --cpuset='6-7'" 

Most of the helpful discourse documentation is found on their discourse forum.

Then the re-director & sso:

   container.yml start /containers/org.sugarlabs.socialhelp_sso/ -d
   container.yml start /containers/org.sugarlabs.use-socialhelp/ -d
   # If they fail to start, make sure that they are built:
   container.yml build /containers/org.sugarlabs.socialhelp_sso/
   container.yml build /containers/org.sugarlabs.use-socialhelp/

Todo

  • how to upgrade to next version of discourse