From d9689b8a4bc16943298225ca57e518ec58ad6b18 Mon Sep 17 00:00:00 2001 From: Jordan Doyle Date: Wed, 29 Sep 2021 03:02:06 +0100 Subject: [PATCH] Instructions for using chartered-web/chartered-git dockerfiles --- 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]. MySQL support, however, is a no-go. +`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 ... ``` -- rgit 0.1.3