git ssb

1+

dinoworm 🐛 / ssb-pub



Commit c75f30cb41dc542f4b5bb30e7f4faeef212f4572

less is more

Michael Williams committed on 11/15/2017, 8:08:17 PM
Parent: 324fe93b6d9e9bb15a99a9a81405fe6c221bf263

Files changed

README.mdchanged
run.shchanged
README.mdView
@@ -11,15 +11,15 @@
1111 on a fresh Debian 9 box, as root
1212
1313 ```shell
1414 apt update
15-apt upgrade
16-apt install apt-transport-https ca-certificates curl software-properties-common
15 +apt upgrade -y
16 +apt install -y apt-transport-https ca-certificates curl software-properties-common
1717 wget https://download.docker.com/linux/debian/gpg -O docker-gpg
1818 sudo apt-key add docker-gpg
1919 echo "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | sudo tee -a /etc/apt/sources.list.d/docker.list
2020 apt update
21-apt install docker-ce
21 +apt install -y docker-ce
2222 systemctl start docker
2323 systemctl enable docker
2424 ```
2525
@@ -42,20 +42,21 @@
4242 ```
4343
4444 ## start service
4545
46-#### 1. create a directory on the docker host for persisting the pub's data
46 +#### step 1. create a directory on the docker host for persisting the pub's data
4747
4848 ```shell
49-mkdir ~/ssb-pub-data
49 +mkdir /root/ssb-pub-data
50 +chown -R 1000:1000 /root/ssb-pub-data
5051 ```
5152
52-#### 2. run the container
53 +#### step 2. run the container
5354
5455 ```shell
5556 docker run --name my-ssb-pub \
5657 -d -v ~/ssb-pub-data/:/home/node/.ssb/ \
57- -e HOST="<hostname.yourdomain.tld>" \
58 + -e ssb_host="<hostname.yourdomain.tld>" \
5859 -p 8008:8008 --restart unless-stopped \
5960 ahdinosaur/ssb-pub
6061 ```
6162
@@ -64,20 +65,24 @@
6465 from your remote machine
6566
6667 ```shell
6768 docker run -it --rm \
68- -d -v ~/ssb-pub-data/:/home/node/.ssb/ \
69 + -v ~/ssb-pub-data/:/home/node/.ssb/ \
6970 ahdinosaur/ssb-pub \
7071 invite.create 1
7172 ```
7273
7374 from your local machine, using ssh
7475
7576 ```shell
76-ssh root@<hostname.yourdomain.tld> invite.create 1
77 +ssh root@<hostname.yourdomain.tld> \
78 + docker run -it --rm \
79 + -v ~/ssb-pub-data/:/home/node/.ssb/ \
80 + ahdinosaur/ssb-pub \
81 + invite.create 1
7782 ```
7883
7984 ## control service
8085
8186 - `docker stop my-ssb-pub`
82-- `docker stop my-ssb-pub`
87 +- `docker start my-ssb-pub`
8388 - `docker restart my-ssb-pub`
run.shView
@@ -1,2 +1,2 @@
1-#!/bin/bash
2-sbot --host $HOST
1 +#!/bin/sh
2 +sbot

Built with git-ssb-web