summaryrefslogtreecommitdiffstats
path: root/docker/gitolite_init.sh
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2023-09-15 06:02:18 -0400
committerMalfurious <m@lfurio.us>2023-09-15 10:53:24 -0400
commit90858ead45f6702bdde31671246ad9c56fc7803e (patch)
tree4ce1cdbfd64ae494c26ced31a8e6a53bf836c944 /docker/gitolite_init.sh
parentc3e4b42c98dd433bbc2f90beeae102a4993c17e5 (diff)
downloadsrcnode-90858ead45f6702bdde31671246ad9c56fc7803e.tar.gz
srcnode-90858ead45f6702bdde31671246ad9c56fc7803e.zip
gitolite: Refactor Dockerfile for debian base
Building from debian:latest will make for a smaller image, a faster build, and will make the image more accessible to a wider variety of platforms. The effort started by 19e7dc8932c is expanded upon such that the image cleanly bakes in all static config files into the image - ie. the entire hosting user's home directory, except for the repositories directory. This removal of config management from the gitolite-admin repo is part of the reason why it is being decoupled from this repo. The gitolite image will now never utilize a user pubkey during build. Instead, it can be invoked with an alternative entrypoint to interactively configure a new install. Signed-off-by: Malfurious <m@lfurio.us>
Diffstat (limited to '')
-rwxr-xr-xdocker/gitolite_init.sh6
1 files changed, 0 insertions, 6 deletions
diff --git a/docker/gitolite_init.sh b/docker/gitolite_init.sh
deleted file mode 100755
index bd70222..0000000
--- a/docker/gitolite_init.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-gitolite setup -pk "$1"
-chmod 755 /var/lib/gitolite
-chmod -R 755 /var/lib/gitolite/repositories
-ln -sf .gitolite/conf/.gitolite.rc /var/lib/gitolite
-ln -sf .gitolite/conf/.gitconfig /var/lib/gitolite