git ssb

1+

dinoworm 🐛 / ssb-pub



Commit 324fe93b6d9e9bb15a99a9a81405fe6c221bf263

keep iterating

Michael Williams committed on 11/15/2017, 10:07:23 AM
Parent: 2be53dc73ca3a3b263a56c562cc9210e33b81f6d

Files changed

Dockerfilechanged
README.mdchanged
DockerfileView
@@ -4,9 +4,9 @@
44
55 USER root
66 RUN mkdir /home/node/.npm-global ; \
77 mkdir -p /home/node/ssb-pub ; \
8- chown -R node:node /home/node/.npm-global
8 + chown -R node:node /home/node/
99 ENV PATH=/home/node/.npm-global/bin:$PATH
1010 ENV NPM_CONFIG_PREFIX=/home/node/.npm-global
1111
1212 WORKDIR /home/node/ssb-pub
README.mdView
@@ -5,13 +5,30 @@
55 easily host your own Secure ScuttleButt (SSB) pub in a docker container
66
77 to run a pub you need to have a static public IP, ideally with a DNS record (i.e.`<hostname.yourdomain.tld>`)
88
9 +## setup box
10 +
11 +on a fresh Debian 9 box, as root
12 +
13 +```shell
14 +apt update
15 +apt upgrade
16 +apt install apt-transport-https ca-certificates curl software-properties-common
17 +wget https://download.docker.com/linux/debian/gpg -O docker-gpg
18 +sudo apt-key add docker-gpg
19 +echo "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | sudo tee -a /etc/apt/sources.list.d/docker.list
20 +apt update
21 +apt install docker-ce
22 +systemctl start docker
23 +systemctl enable docker
24 +```
25 +
926 ## install image
1027
1128 #### (option a) pull image from docker hub
1229
13-```
30 +```shell
1431 docker pull ahdinosaur/ssb-pub
1532 ```
1633
1734 #### (option b) build image from source
@@ -38,14 +55,25 @@
3855 docker run --name my-ssb-pub \
3956 -d -v ~/ssb-pub-data/:/home/node/.ssb/ \
4057 -e HOST="<hostname.yourdomain.tld>" \
4158 -p 8008:8008 --restart unless-stopped \
42- ssb-pub
59 + ahdinosaur/ssb-pub
4360 ```
4461
4562 ## create invites
4663
64 +from your remote machine
65 +
66 +```shell
67 +docker run -it --rm \
68 + -d -v ~/ssb-pub-data/:/home/node/.ssb/ \
69 + ahdinosaur/ssb-pub \
70 + invite.create 1
4771 ```
72 +
73 +from your local machine, using ssh
74 +
75 +```shell
4876 ssh root@<hostname.yourdomain.tld> invite.create 1
4977 ```
5078
5179 ## control service

Built with git-ssb-web