summaryrefslogtreecommitdiffstats
path: root/docker/Dockerfile.gitolite (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-09-15gitolite: Refactor Dockerfile for debian baseMalfurious1-25/+0
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>
2023-08-12gitolite: Make admin pubkey an optional input to Docker imageMalfurious1-9/+3
Automating the build of this image will be awkward if we need a user-supplied input file each time. At best, it will probably lead to building out of per-instance configuration branches that store the file... The initial administrator pubkey is only really needed to include in the first image that is run at any given site, since a new install doesn't have a config/repository datastore yet. Once that is the case, the procedure in the Dockerfile to init the /var/lib/gitolite directory (now refactored to a shell script file) can be skipped, since that directory will be replaced by the previous container's volume. This is probably not the final form of this kind of build design change, but will work for now to get up and running easily with cychedelic. Signed-off-by: Malfurious <m@lfurio.us>
2022-08-16gitolite: Override default sshd_configMalfurious1-2/+4
Provide a config file for the back-end SSH daemon. Primarily, this explicitly disables root login, password auth, and additional unnecessary frills. Additionally, the sftp subsystem is omitted. Now that this file is added, hostkey files (and the external volume containing them) are moved to a new dedicated location (/hostkeys/...). This allows us to bake sshd_config into the built gitolite image, instead of it also living in the external volume. This makes it easier for future changes to be incorporated by simply updating the image. Signed-off-by: Malfurious <m@lfurio.us>
2022-08-13Add port expose directives to DockerfilesMalfurious1-0/+1
This is useful as documentation to the user, but can be necessary to work with some docker-compose setups. Signed-off-by: Malfurious <m@lfurio.us>
2022-08-06Fix datastore permissionsMalfurious1-0/+2
For compatibility with the front-end docker image, ensure git repositories (and their parent directories) have mode 0755, aka: go+rx. Signed-off-by: Malfurious <m@lfurio.us>
2022-08-02Add gitolite gitconfig fileMalfurious1-0/+1
Signed-off-by: Malfurious <m@lfurio.us>
2022-08-02Add default gitolite RC fileMalfurious1-1/+1
Signed-off-by: Malfurious <m@lfurio.us>
2022-08-02Add Dockerfile for gitolite/ssh serviceMalfurious1-0/+25
Signed-off-by: Malfurious <m@lfurio.us>