Deno docker update (#174)

Fix #150: update Dockerfile and docker-compose
This commit is contained in:
Zef Hemel
2022-12-07 18:43:47 +01:00
committed by GitHub
parent acec440444
commit 5b8c25f8b3
8 changed files with 109 additions and 27 deletions
+32 -1
View File
@@ -40,7 +40,7 @@ Or checkout these two videos:
[plugs](https://silverbullet.md/🔌_Plugs), and you can customize it to your
liking and your workflows.
## Installing Silver Bullet
## Installing Silver Bullet with Deno
### Installing Deno
@@ -101,6 +101,37 @@ Simply run this:
And restart Silver Bullet. You should be good to go.
## Installing Silver Bullet with Docker
There is a [docker image on docker hub](https://hub.docker.com/r/zefhemel/silverbullet). To use it, first create a volume to keep your space (markdown) files:
```shell
docker volume create myspace
```
Then, run the container, e.g. as follows:
```shell
docker run -p 3000:3000 -v myspace:/space -d --name silverbullet zefhemel/silverbullet
```
If you'd like to pass in additional command line arguments (e.g. `--user` to add authentication) you can just append those to the command, e.g.:
```shell
docker run -p 3000:3000 -v myspace:/space -d --name silverbullet zefhemel/silverbullet --user me:letmein
```
To build your own version of the docker image, run `./scripts/build_docker.sh`.
You can also use docker-compose if you prefer. From a silverbullet check-out run:
```shell
deno task bundle
PORT=3000 docker-compose up
```
or similar.
## Troubleshooting
If you upgraded to the new Deno-based Silver Bullet from an old version, you may