🏡 index : ~doyle/chartered.git

author Jordan Doyle <jordan@doyle.la> 2021-09-29 3:02:06.0 +01:00:00
committer Jordan Doyle <jordan@doyle.la> 2021-09-29 3:02:06.0 +01:00:00
commit
d9689b8a4bc16943298225ca57e518ec58ad6b18 [patch]
tree
ce9d6b6460791d86077ab842c45fef391ddd541c
parent
23ea4c6e50460e78eab053151ae4252a8361528b
download
d9689b8a4bc16943298225ca57e518ec58ad6b18.tar.gz

Instructions for using chartered-web/chartered-git dockerfiles



Diff

 book/src/getting-started/installation.md | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/book/src/getting-started/installation.md b/book/src/getting-started/installation.md
index 71c7c83..c1c3efc 100644
--- a/book/src/getting-started/installation.md
+++ a/book/src/getting-started/installation.md
@@ -50,6 +50,20 @@
Alternative crate stores will be considered, please consider contributing or
[create an issue on GitHub][gh-issue]. <span style="color: transparent;">MySQL support, however, is a no-go.</span>

`chartered-web` & `chartered-git` can be built from source easily or ran using the
Dockerfile:

```

$ docker build https://github.com/w4/chartered.git#main \
    --target chartered-web \

    -t chartered-web:master

$ docker build https://github.com/w4/chartered.git#main \
    --target chartered-git \

    -t chartered-git:master

$ docker run -d chartered-web
$ docker run -d chartered-git
```


[gh-issue]: https://github.com/w4/chartered/issues

### Frontend
@@ -60,11 +74,12 @@
to run on your own server without another way of hosting static content:

```sh

# buildkit doesn't yet support subdirectories for git repositories
$ DOCKER_BUILDKIT=0 docker build \
    https://github.com/w4/chartered.git#main:chartered-frontend \

    --build-arg BASE_URL=https://api.my.instance.chart.rs \

    -t chartered-frontend:master

$ docker run -p 8080:80 chartered-frontend:master
$ docker run -d -p 8080:80 chartered-frontend:master
$ curl http://127.0.0.1:8080
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8">...

```