From e2d9b8f975daf09e15b8c910deace421a26309e3 Mon Sep 17 00:00:00 2001 From: geraldwuhoo Date: Wed, 20 Nov 2024 17:41:44 -0800 Subject: [PATCH] delete start.sh and update README --- tools/docker/README.md | 8 ++------ tools/docker/start.sh | 8 -------- 2 files changed, 2 insertions(+), 14 deletions(-) delete mode 100644 tools/docker/start.sh diff --git a/tools/docker/README.md b/tools/docker/README.md index 970e4c3..8d64ec7 100644 --- a/tools/docker/README.md +++ b/tools/docker/README.md @@ -30,12 +30,8 @@ cd agate ``` ## build the image -Enter the `tools/docker` directory: -``` -cd tools/docker -``` -And now build the docker image: +Now build the docker image: ``` docker build -t agate . @@ -45,7 +41,7 @@ This process will take a few minutes because all the rust modules have to be com ## start the docker container ``` -docker run -t -d --name agate -p 1965:1965 -v /var/www/gmi:/gmi -v /var/www/gmi/.certificates:/app/.certificates -e HOSTNAME=example.org -e LANG=en-US agate:latest +docker run -t -d --name agate -p 1965:1965 -v path/to/gmi:/gmi:ro -v path/to/certs:/certs:rw agate:latest --hostname localhost ``` You have to replace `/var/www/gmi/` with the folder where you'd like to have gemtext files and `/var/www/gmi/.certificates/` with the folder where you'd like to have your certificates stored. You also have to have to replace `example.org` with your domain name and if plan to speak in a different language than english in your gemini space than you should replace `en-US` with your countries language code (for example de-DE or fr-CA). diff --git a/tools/docker/start.sh b/tools/docker/start.sh deleted file mode 100644 index fad3533..0000000 --- a/tools/docker/start.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -echo "Using hostname ${HOSTNAME:-localhost}" -echo "Using lang ${LANG:-en-US}" - -exec agate --content /gmi/ \ - --hostname "${HOSTNAME:-localhost}" \ - --lang "${LANG:-en-US}"