From 027b0fbb5cace267e62be2fdee2a2c3397fe8f7f Mon Sep 17 00:00:00 2001 From: dongdigua Date: Fri, 26 May 2023 19:21:35 +0800 Subject: [PATCH] gemini play with docker --- gmi/cleanup_home.gmi | 1 + gmi/collections.gmi | 4 +++- gmi/docker/Dockerfile | 13 +++++++++++++ gmi/docker/run-wrapper.sh | 7 +++++++ gmi/docker/update-git.sh | 4 ++++ js/random-quote.js | 1 + 6 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 gmi/docker/Dockerfile create mode 100755 gmi/docker/run-wrapper.sh create mode 100755 gmi/docker/update-git.sh diff --git a/gmi/cleanup_home.gmi b/gmi/cleanup_home.gmi index 85514b3..84683f5 100644 --- a/gmi/cleanup_home.gmi +++ b/gmi/cleanup_home.gmi @@ -1,4 +1,5 @@ # Clean My Home Directory +2023-05-13 Sat Luke Smith's Video: => https://videos.lukesmith.xyz/w/t5WcCYv58zDur45LRC1KFE Spring Cleaning your Home! (~/, That is...) diff --git a/gmi/collections.gmi b/gmi/collections.gmi index 9d6ead8..0372f2e 100644 --- a/gmi/collections.gmi +++ b/gmi/collections.gmi @@ -21,7 +21,7 @@ SDF Public Access UNIX System .. Est. 1987 => gemini://gem.sdf.org/oak3/ ++ Oak3's Cafe Gem => gopher://circumlunar.space + Circumlunar => gemini://gemini.circumlunar.space/~solderpunk/ ++ solderpunk -the founder +the creater of gemini > This is where I "eat my own dogfood" => gemini://gemini.circumlunar.space/users/hundredrabbits/ ++ HundredRabbits exploring and documenting minimum viable solutions for living and technological tooling @@ -44,3 +44,5 @@ Gemcast, Esperanto undergoes frequent maintenance, PDA? => gemini://gemini.cyberbot.space/smolzine/ ++ smolzine => gemini://warmedal.se/~bjorn + bjorn +=> gemini://ploum.net/index_en.gmi + Ploum +author of offpunk diff --git a/gmi/docker/Dockerfile b/gmi/docker/Dockerfile new file mode 100644 index 0000000..6ffe405 --- /dev/null +++ b/gmi/docker/Dockerfile @@ -0,0 +1,13 @@ +FROM alpine:latest + +RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories \ + && sed -i 'a https://mirrors.tuna.tsinghua.edu.cn/alpine/edge/testing' /etc/apk/repositories \ + && apk add agate git + +RUN git clone https://github.com/dongdigua/dongdigua.github.io.git --depth 1 + +COPY run-wrapper.sh . +COPY update-git.sh /etc/periotic/daily/ + + +CMD [ "./run-wrapper.sh" ] diff --git a/gmi/docker/run-wrapper.sh b/gmi/docker/run-wrapper.sh new file mode 100755 index 0000000..838fcdd --- /dev/null +++ b/gmi/docker/run-wrapper.sh @@ -0,0 +1,7 @@ +#! /bin/sh + +crond -f & +agate --content dongdigua.github.io/gmi --hostname $GEMINI_HOST + +wait -n +echo $? diff --git a/gmi/docker/update-git.sh b/gmi/docker/update-git.sh new file mode 100755 index 0000000..234bc81 --- /dev/null +++ b/gmi/docker/update-git.sh @@ -0,0 +1,4 @@ +#! /bin/sh + +cd dongdigua.github.io +git pull --rebase diff --git a/js/random-quote.js b/js/random-quote.js index 0487058..08e632e 100644 --- a/js/random-quote.js +++ b/js/random-quote.js @@ -15,6 +15,7 @@ var data = [ "我们从这里启航♫", "Learn. Unlearn. Relearn.", "My .emacs have 600+ lines!", + "Reduce the frequency of your Github CI crontab to protect the environment.", "The internet is FULL, go away!", "May the --force be with you",