Gemini agate image which publishes a static or kiln capsule from git repository
Go to file
valvin 8286a50b93
continuous-integration/drone/push Build is passing Details
fix(ci): remove condition on push event on main
2023-04-20 11:28:21 +00:00
content feat: add kiln feature 2022-09-18 14:57:43 +02:00
.drone.yml fix(ci): remove condition on push event on main 2023-04-20 11:28:21 +00:00
.gitlab-ci.yml chore: init repository 2021-02-20 21:47:59 +01:00
Dockerfile chore: upgrade agate and alpine 2023-04-20 13:23:55 +02:00
README.md fix(ci): add credentials to drone pipeline 2022-11-30 21:52:48 +01:00
entrypoint.sh fix: add missing prepare_content 2022-09-18 21:29:28 +02:00

README.md

Gemini Agate Image

Build Status

This image allowes to publish static content locate in a git repository on Gemini. Based on Agate gemini server.

This images takes these environment variables:

variable description default value
GEMINI_DOMAIN domain name of the capsule example.com
GEMINI_GIT_REPO url of the git repository containing content https://gitlab.com/valvin/gemini-agate-image
GEMINI_CONTENT_FOLDER folder inside the git repository which contains the content. it means you have content folder in your repo with default content
GEMINI_KILN_BUILD if set to yes kiln build will be execute after an update of the repository no
GEMINI_KILN_SRC used when kiln build is enabled. path inside de git repository where kiln config.toml is located .
GEMINI_GIT_PATH path in which git repository will be cloned /app/data
GEMINI_CERT_PATH path which contains certificates. this path has to be a volume if not new certs will be generated /certs
GEMINI_LANG langage of the content fr-FR

image take those commands:

  • none or run : launch agate after initialization process
  • update: update repository content

initialization process is:

  • check if cert are present in GEMINI_CERT_PATH if not it creates it
  • clone or update the content repository
  • launch agate

docker command example:

  • static files:
docker run --rm -it -e GEMINI_DOMAIN=mydomain.tld \
  -e GEMINI_GIT_REPO=https://gitlab.com/valvin/gemini-agate-image \
  -e GEMINI_CONTENT_FOLDER=content/static \
  -v $(pwd)/certs:/certs -p 1965:1965 \
  registry.gitlab.com/valvin/gemini-agate-image:latest
  • kiln capsule:
docker run --rm -it -e GEMINI_DOMAIN=mydomain.tld \
  -e GEMINI_GIT_REPO=https://gitlab.com/valvin/gemini-agate-image \
  -e GEMINI_CONTENT_FOLDER=content/kiln/public \
  -e GEMINI_KILN_BUILD=true \
  -e GEMINI_KILN_SRC=content/kiln \
  -v $(pwd)/certs:/certs -p 1965:1965 \
  registry.gitlab.com/valvin/gemini-agate-image:latest