diff --git a/Dockerfile b/Dockerfile index a545dda..82b5062 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,5 +28,7 @@ RUN apt-get update && \ USER 1000 COPY --from=builder /app/target/release/git-next /usr/local/bin +ENV HOME=/app + ENTRYPOINT [ "/usr/local/bin/git-next" ] CMD [ "server", "start" ] diff --git a/crates/cli/src/tui/README.md b/crates/cli/src/tui/README.md index 3f608b0..103b261 100644 --- a/crates/cli/src/tui/README.md +++ b/crates/cli/src/tui/README.md @@ -8,6 +8,17 @@ The build `git-next` with the Terminal UI use: `cargo install git-next --feature To run `git-next` with the Terminal UI use: `git-next server start --ui` +### Docker + +If using the docker image you will need to create a directory to mount that contains the +`git-next-server.toml` file. Mount this directory as `/app`. In the example below we use +the current directory for this. + +If you want to persist the clones of your monitored repos then point `storage.path` in +`git-next-server.toml` to the the directory `/app`, (e.g. `path = "/app/data"`). + +`docker run -it -v .:/app/ git.kemitix.net/kemitix/git-next:latest server start --ui` + ## logs When the Terminal UI is enabled via the `--ui` parameter, logs are written to the file: