From 8ca7aad3c3db4ffbb45b9ae3cb10e86d510d98fb Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Tue, 3 Sep 2024 20:17:59 +0100 Subject: [PATCH] docs: Expand docker docmentation --- crates/cli/README.md | 52 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/crates/cli/README.md b/crates/cli/README.md index fee4685..a3e06e4 100644 --- a/crates/cli/README.md +++ b/crates/cli/README.md @@ -576,6 +576,58 @@ world = { repo = "user/world", branch = "master", main = "master", next = "upcom The token is created [here](https://github.com/settings/tokens/new) and requires the `repo` and `admin:repo_hook` permissions. +## Docker + +`git-next` is available as a [Docker image](https://git.kemitix.net/kemitix/-/packages/container/git-next/). + +```shell +docker pull docker pull git.kemitix.net/kemitix/git-next:latest +``` + +### Docker Compose + +Here is an example `docker-compose.yml`: + +```yaml +services: + server: + image: git.kemitix.net/kemitix/git-next:latest + container_name: git-next-server + restart: unless-stopped + environment: + RUST_LOG: "hyper=warn,info" + ports: + - 8080:8092 + volumes: + - ./:/app/ +``` + +Note: this assumes the `git-next-server.toml` has a `listen.http.port` of +`8092` and that you are using a reverse proxy to route traffic arriving at +`listen.url` to port `8080`. + +### Docker Run + +This will run with the `server start` options: + +```shell +docker run -it -v .:/app/ git.kemitix.net/kemitix/git-next:latest +``` + +To perform `server init`: + +```shell +docker run -it -v .:/app/ git.kemitix.net/kemitix/git-next:latest server init +``` + +To perform repo `init`: + +```shell +docker run -it -v .:/app/ git.kemitix.net/kemitix/git-next:latest init +``` + +TUI support is not available in the docker container. See [kemitix/git-next#154](https://git.kemitix.net/kemitix/git-next/issues/154). + ## Contributing Contributions to `git-next` are welcome! If you find a bug or have a feature