diff options
author | Malfurious <m@lfurio.us> | 2023-09-16 08:07:37 -0400 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2023-09-16 08:07:37 -0400 |
commit | 77ae1784961d203d47c9db8736570a2d1e90f7b7 (patch) | |
tree | 57e0339c501afb6939031f41fd769b3d04e5b582 /docker | |
parent | a6f2c9e34b7a0bdaff2a44b54ca7999728f36773 (diff) | |
parent | 51b47c3d0eb8e9c638d002aec566ef158ff5d0cd (diff) | |
download | srcnode-77ae1784961d203d47c9db8736570a2d1e90f7b7.tar.gz srcnode-77ae1784961d203d47c9db8736570a2d1e90f7b7.zip |
Merge branch 'cgit-alpine-port'
Port the cgit docker image to build from Alpine Linux, and finish the
file tree clean up started by the previous merge.
* cgit-alpine-port:
cgit: Update SSH clone URLs
cgit: Update scan-path / repository mount location
cgit: Update user and file paths for alpine distro
cgit: Port Dockerfile for alpine base
cgit: Consolidate config files into a single directory
Diffstat (limited to 'docker')
-rw-r--r-- | docker/.gitignore | 1 | ||||
-rw-r--r-- | docker/Dockerfile.cgit | 16 | ||||
-rw-r--r-- | docker/cgitrc | 38 | ||||
-rw-r--r-- | docker/httpd.conf | 35 |
4 files changed, 0 insertions, 90 deletions
diff --git a/docker/.gitignore b/docker/.gitignore deleted file mode 100644 index 2fa7496..0000000 --- a/docker/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*.pub diff --git a/docker/Dockerfile.cgit b/docker/Dockerfile.cgit deleted file mode 100644 index 768a53d..0000000 --- a/docker/Dockerfile.cgit +++ /dev/null @@ -1,16 +0,0 @@ -# https://git.zx2c4.com/cgit/ -# https://wiki.archlinux.org/title/Cgit - -FROM archlinux - -# Install cgit and webserver -RUN pacman-key --init -RUN pacman -Syu --needed --noconfirm apache cgit - -# Copy configuration files -# Back-end datastore is expected to be mounted to /data (read-only) -COPY httpd.conf /etc/httpd/conf/httpd.conf -COPY cgitrc /etc/cgitrc - -EXPOSE 80 -CMD ["/usr/bin/httpd", "-DFOREGROUND"] diff --git a/docker/cgitrc b/docker/cgitrc deleted file mode 100644 index 6df01d2..0000000 --- a/docker/cgitrc +++ /dev/null @@ -1,38 +0,0 @@ -# cgit config -# see cgitrc(5) for details -# -# possible todos: header, footer - -css=/cgit.css -logo=/cgit.png -logo-link=/ - -root-title=NormalMode.org Repositories -root-desc=Public repositories hosted on normalmode.org - -clone-url=https://$HTTP_HOST$SCRIPT_NAME/$CGIT_REPO_URL ssh://gitolite@$HTTP_HOST/$CGIT_REPO_URL - -enable-blame=1 -enable-follow-links=1 -enable-git-config=1 -enable-http-clone=1 -enable-index-links=1 -enable-index-owner=1 -enable-log-filecount=1 -enable-log-linecount=1 -enable-tree-linenumbers=1 - -section-sort=1 -repository-sort=age -branch-sort=age -agefile=agefile - -max-repo-count=512 -max-stats=year - -snapshots=tar.gz zip -remove-suffix=1 -section-from-path=-1 -strict-export=gl-creator - -scan-path=/data/repositories/ diff --git a/docker/httpd.conf b/docker/httpd.conf deleted file mode 100644 index 50f88aa..0000000 --- a/docker/httpd.conf +++ /dev/null @@ -1,35 +0,0 @@ -# https://httpd.apache.org/docs/current/ -# https://httpd.apache.org/docs/current/mod/directives.html - -LoadModule alias_module modules/mod_alias.so -LoadModule authz_core_module modules/mod_authz_core.so -LoadModule cgid_module modules/mod_cgid.so -LoadModule mpm_event_module modules/mod_mpm_event.so -LoadModule unixd_module modules/mod_unixd.so - -ServerRoot "/etc/httpd" -ServerAdmin webmaster@example.com -ServerName localhost -Listen 80 -User http -Group http - -ErrorLog "/var/log/httpd/error_log" -LogLevel warn - -<Directory "/"> - AllowOverride None - Require all denied -</Directory> - -<Directory "/usr/share/webapps/cgit/"> - AllowOverride None - Options ExecCGI FollowSymlinks - Require all granted -</Directory> - -Alias /cgit.css "/usr/share/webapps/cgit/cgit.css" -Alias /cgit.png "/usr/share/webapps/cgit/cgit.png" -Alias /favicon.ico "/usr/share/webapps/cgit/favicon.ico" - -ScriptAlias / "/usr/share/webapps/cgit/cgit.cgi/" |