diff options
author | Malfurious <m@lfurio.us> | 2023-09-15 06:02:18 -0400 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2023-09-15 10:53:24 -0400 |
commit | 90858ead45f6702bdde31671246ad9c56fc7803e (patch) | |
tree | 4ce1cdbfd64ae494c26ced31a8e6a53bf836c944 /docker/Dockerfile.gitolite | |
parent | c3e4b42c98dd433bbc2f90beeae102a4993c17e5 (diff) | |
download | srcnode-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 'docker/Dockerfile.gitolite')
-rw-r--r-- | docker/Dockerfile.gitolite | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/docker/Dockerfile.gitolite b/docker/Dockerfile.gitolite deleted file mode 100644 index d2ca1ae..0000000 --- a/docker/Dockerfile.gitolite +++ /dev/null @@ -1,25 +0,0 @@ -# https://gitolite.com/gitolite/index.html -# https://github.com/sitaramc/gitolite -# https://wiki.archlinux.org/title/Gitolite - -FROM archlinux - -# The gitolite package implies git, openssh, and creates the host user -RUN pacman-key --init -RUN pacman -Syu --needed --noconfirm gitolite - -# Initialize the gitolite datastore -COPY . /app -RUN if [ -f "/app/admin.pub" ]; \ - then runuser -u gitolite -- /app/gitolite_init.sh "/app/admin.pub"; fi -VOLUME /var/lib/gitolite - -# sshd host keys are stored in a volume so that rebuilding/updating the -# image doesn't break user trust -COPY sshd_config /etc/ssh/ -RUN mkdir -p /hostkeys/etc/ssh/ -RUN ssh-keygen -A -f /hostkeys -VOLUME /hostkeys - -EXPOSE 22 -CMD ["/usr/bin/sshd", "-D"] |