Skip to content

Commit a268ea8

Browse files
committed
Fixes #1256
Point to ghcr docker images rather than docker hub
1 parent 5cc7b47 commit a268ea8

File tree

4 files changed

+14
-13
lines changed

4 files changed

+14
-13
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
FROM denoland/deno:debian-2.2.0
1+
FROM denoland/deno:debian-2.2.1
22

33
# The volume that will keep the space data
44

55
# Either create a volume:
66
# docker volume create myspace
77
# Then bind-mount it when running the container with the -v flag, e.g.:
8-
# docker run -v myspace:/space -p3000:3000 -it zefhemel/silverbullet
8+
# docker run -v myspace:/space -p3000:3000 -it ghcr.io/silverbulletmd/silverbullet
99
# Or simply mount an existing folder into the container:
10-
# docker run -v /path/to/my/folder:/space -p3000:3000 -it zefhemel/silverbullet
10+
# docker run -v /path/to/my/folder:/space -p3000:3000 -it ghcr.io/silverbulletmd/silverbullet
1111

1212
VOLUME /space
1313

@@ -53,5 +53,5 @@ RUN deno cache /silverbullet.js
5353
ADD ./docker-entrypoint.sh /docker-entrypoint.sh
5454

5555
# Run the server, allowing to pass in additional argument at run time, e.g.
56-
# docker run -p 3002:3000 -v myspace:/space -it zefhemel/silverbullet --user me:letmein
56+
# docker run -p 3002:3000 -v myspace:/space -it ghcr.io/silverbulletmd/silverbullet --user me:letmein
5757
ENTRYPOINT ["/tini", "--", "/docker-entrypoint.sh"]

scripts/build_docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22

33
deno task bundle
4-
docker build -t zefhemel/silverbullet .
4+
docker build -t silverbullet .

scripts/deploy_silverbullet_md.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
cd $(realpath $(dirname $(dirname $0)))
44

5-
IMAGE_NAME="zefhemel/silverbullet:edge"
5+
IMAGE_NAME="ghcr.io/silverbulletmd/silverbullet:edge"
66
WEBSITE_SPACE="./website"
77
WEBSITE_PORT=3000
88

website/Install/Docker.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Introduction
22
[Docker](https://www.docker.com/) is a convenient and secure way to install server applications either locally or on a server you control. If you don’t have docker already running on your machine and are macOS user, consider giving [OrbStack](https://orbstack.dev/) a try — it’s a super nice docker experience.
33

4-
Conveniently, SilverBullet is published as a [docker image on docker hub](https://hub.docker.com/r/zefhemel/silverbullet). The image comes in two flavors:
4+
Conveniently, SilverBullet is published as a [docker image on GHCR](https://github.com/silverbulletmd/silverbullet/pkgs/container/silverbullet). The image comes in two flavors:
55

66
* 64-bit Intel
77
* 64-bit ARM (e.g. for Raspberry Pis and Apple Silicon macs)
@@ -20,7 +20,7 @@ For your first run, you can run the following:
2020
# Create a local folder "space" to keep files in
2121
mkdir -p space
2222
# Run the SilverBullet docker container in the foreground
23-
sudo docker run -it -p 3000:3000 -v ./space:/space zefhemel/silverbullet
23+
sudo docker run -it -p 3000:3000 -v ./space:/space ghcr.io/silverbulletmd/silverbullet
2424
```
2525

2626
This will run SilverBullet in the foreground, interactively, so you can see the logs and instructions.
@@ -30,28 +30,28 @@ If this all works fine, just kill the thing with `Ctrl-c` (don’t worry, it’s
3030
Now you probably want to run the container in daemon (background) mode, give it a name, and automatically have it restart after you e.g. reboot your machine:
3131

3232
```shell
33-
docker run -d --restart unless-stopped --name silverbullet -p 3000:3000 -v ./space:/space zefhemel/silverbullet
33+
docker run -d --restart unless-stopped --name silverbullet -p 3000:3000 -v ./space:/space ghcr.io/silverbulletmd/silverbullet
3434
```
3535

3636
There you go!
3737

3838
Note that to get offline mode to work you need to serve SilverBullet with HTTPS, via for example a reverse proxy.
3939

4040
# Versions
41-
The `zefhemel/silverbullet` image will give you the latest released version. This is equivalent to `zefhemel/silverbullet:latest`. If you prefer, you can also pin to a specific release, e.g. `zefhemel/silverbullet:0.6.0`. If you prefer to live on the bleeding edge, you can use the `zefhemel/silverbullet:edge` image, which is updated on every commit to the `main` brain. This is the YOLO option.
41+
The `ghcr.io/silverbulletmd/silverbullet` image will give you the latest released version. This is equivalent to `ghcr.io/silverbulletmd/silverbullet:latest`. If you prefer, you can also pin to a specific release, e.g. `ghcr.io/silverbulletmd/silverbullet:0.10.1`. If you prefer to live on the bleeding edge, you can use the `ghcr.io/silverbulletmd/silverbullet:edge` image, which is updated on every commit to the `main` brain. This is the YOLO option.
4242

4343
## Upgrade
4444
You can upgrade SilverBullet as follows:
4545

4646
```shell
4747
# Pull the latest version of the image
48-
docker pull zefhemel/silverbullet
48+
docker pull ghcr.io/silverbulletmd/silverbullet
4949
# Kill the running container
5050
docker kill silverbullet
5151
# Remove the old container
5252
docker rm silverbullet
5353
# Start a fresh one (same command as before)
54-
docker run -d --restart unless-stopped --name silverbullet -p 3000:3000 -v $PWD/space:/space zefhemel/silverbullet
54+
docker run -d --restart unless-stopped --name silverbullet -p 3000:3000 -v $PWD/space:/space ghcr.io/silverbulletmd/silverbullet
5555
```
5656

5757
Since this is somewhat burdensome, it is recommended you use a tool like [watchtower](https://github.com/containrrr/watchtower) to automatically update your docker images and restart them. However, if we go there — we may as well use a tool like _docker compose_ to manage your containers, no?
@@ -69,14 +69,15 @@ Instructions:
6969
```yaml
7070
services:
7171
silverbullet:
72-
image: zefhemel/silverbullet
72+
image: ghcr.io/silverbulletmd/silverbullet
7373
restart: unless-stopped
7474
environment:
7575
- SB_USER=admin:admin
7676
volumes:
7777
- ./space:/space
7878
ports:
7979
- 3000:3000
80+
# To enable auto upgrades, run watchtower
8081
watchtower:
8182
image: containrrr/watchtower
8283
volumes:

0 commit comments

Comments
 (0)