aboutsummaryrefslogtreecommitdiffstats
path: root/terminaldweller.com/cgit
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2023-01-22 17:36:07 +0000
committerterminaldweller <thabogre@gmail.com>2023-01-22 17:36:07 +0000
commitc836ea89a48f53ec1dd05c1dcdc606bb44c8b619 (patch)
tree22882efad0fdc677d353dec723d813825bbcb5d2 /terminaldweller.com/cgit
parentupdate (diff)
downloadscripts-c836ea89a48f53ec1dd05c1dcdc606bb44c8b619.tar.gz
scripts-c836ea89a48f53ec1dd05c1dcdc606bb44c8b619.zip
update
Diffstat (limited to 'terminaldweller.com/cgit')
-rw-r--r--terminaldweller.com/cgit/bootstrap/Dockerfile8
-rwxr-xr-xterminaldweller.com/cgit/bootstrap/bootstrap.sh1
-rw-r--r--terminaldweller.com/cgit/bootstrap/crontab1
-rwxr-xr-xterminaldweller.com/cgit/bootstrap/docker-entrypoint.sh2
-rw-r--r--terminaldweller.com/cgit/cgit/cgitrc2
-rw-r--r--terminaldweller.com/cgit/docker-compose.yaml8
6 files changed, 11 insertions, 11 deletions
diff --git a/terminaldweller.com/cgit/bootstrap/Dockerfile b/terminaldweller.com/cgit/bootstrap/Dockerfile
index 2467f36..be4f278 100644
--- a/terminaldweller.com/cgit/bootstrap/Dockerfile
+++ b/terminaldweller.com/cgit/bootstrap/Dockerfile
@@ -1,8 +1,10 @@
FROM alpine:3.16
-RUN apk update && apk add --no-cache git cronie busybox-initscripts
+#RUN apk update && apk add --no-cache git cronie busybox-initscripts
+RUN apk update && apk add --no-cache git apk-cron
# RUN rc-service crond start && rc-update add crond
COPY ./bootstrap.sh /bootstrap.sh
COPY ./docker-entrypoint.sh /docker-entrypoint.sh
-COPY ./crontab /etc/crontabs/root
-RUN chmod 0744 /bootstrap.sh
+COPY ./cron /etc/periodic/15min/cron
+# COPY ./crontab /etc/crontabs/root
+# RUN chmod 0744 /bootstrap.sh
ENTRYPOINT ["/docker-entrypoint.sh"]
diff --git a/terminaldweller.com/cgit/bootstrap/bootstrap.sh b/terminaldweller.com/cgit/bootstrap/bootstrap.sh
index 3481546..ba2e1b0 100755
--- a/terminaldweller.com/cgit/bootstrap/bootstrap.sh
+++ b/terminaldweller.com/cgit/bootstrap/bootstrap.sh
@@ -14,7 +14,6 @@ REPOS="cgrep \
devourer \
hived \
mdrtl \
- simplex \
scripts \
vagrantboxes \
dockerimages \
diff --git a/terminaldweller.com/cgit/bootstrap/crontab b/terminaldweller.com/cgit/bootstrap/crontab
deleted file mode 100644
index 2346740..0000000
--- a/terminaldweller.com/cgit/bootstrap/crontab
+++ /dev/null
@@ -1 +0,0 @@
-0 */6 * * * /bootstrap.sh --update
diff --git a/terminaldweller.com/cgit/bootstrap/docker-entrypoint.sh b/terminaldweller.com/cgit/bootstrap/docker-entrypoint.sh
index d6d7009..2f67a11 100755
--- a/terminaldweller.com/cgit/bootstrap/docker-entrypoint.sh
+++ b/terminaldweller.com/cgit/bootstrap/docker-entrypoint.sh
@@ -5,4 +5,4 @@ set -x
. /bootstrap.sh
bootstrap
update_repos
-crond -n -s -P
+crond -f -l 2
diff --git a/terminaldweller.com/cgit/cgit/cgitrc b/terminaldweller.com/cgit/cgit/cgitrc
index 4db7d5b..90abd90 100644
--- a/terminaldweller.com/cgit/cgit/cgitrc
+++ b/terminaldweller.com/cgit/cgit/cgitrc
@@ -3,7 +3,7 @@
#
#
# Enable caching of up to 1000 output entries
-cache-size=100
+# cache-size=100
## ttl for root page
cache-root-ttl=5
diff --git a/terminaldweller.com/cgit/docker-compose.yaml b/terminaldweller.com/cgit/docker-compose.yaml
index 3d6c9bf..3fe10ae 100644
--- a/terminaldweller.com/cgit/docker-compose.yaml
+++ b/terminaldweller.com/cgit/docker-compose.yaml
@@ -8,7 +8,7 @@ services:
- cgitnet
ports:
- "127.0.0.1:8041:80"
- - "8042:22"
+ - "127.0.0.1:8042:22"
- "8043:443"
restart: unless-stopped
environment:
@@ -22,7 +22,7 @@ services:
# - /etc/hosts:/etc/hosts:ro
# - /etc/localtime:/etc/localtime:ro
- ./cgit.conf:/etc/lighttpd/cgit.conf:ro
- - /etc/letsencrypt/archive/git.terminaldweller.com/ssl.pem:/etc/certs/git.pem:ro
+ - /etc/letsencrypt/archive/git.terminaldweller.com/:/etc/certs/:ro
bootstrap:
image: bootstrap
build:
@@ -32,8 +32,8 @@ services:
volumes:
- storage:/etc/gitrepos/
entrypoint: ["/docker-entrypoint.sh"]
- cap_drop:
- - ALL
+ # cap_drop:
+ # - ALL
healthcheck:
test: exit 1
interval: 1d