diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..554c191 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM httpd + +RUN apt-get update -y && apt-get install -y prometheus-apache-exporter + +EXPOSE 9117 diff --git a/conf/gitweb.conf b/conf/gitweb.conf deleted file mode 100644 index 7a5b255..0000000 --- a/conf/gitweb.conf +++ /dev/null @@ -1,35 +0,0 @@ -# path to git projects (.git) -$projectroot = "/usr/local/apache2/htdocs/archive/Repositories/"; - -# directory to use for temp files -$git_temp = "/tmp"; - -# target of the home link on top of all pages -#$home_link = $my_uri || "/"; - -# html text to include at home page -#$home_text = "indextext.html"; - -# file with project list; by default, simply scan the projectroot dir. -#$projects_list = $projectroot; - -# stylesheet to use -@stylesheets = ("/common/catppuccin.css"); - -# javascript code for gitweb -$javascript = "/static/gitweb.js"; - -# logo to use -#$logo = "static/git-logo.png"; - -# the 'favicon' -$favicon = "/usr/local/apache2/htdocs/common/favicon.ico"; - -# git-diff-tree(1) options to use for generated patches -#@diff_opts = ("-M"); -@diff_opts = (); - -$site_name = "eom.dev - Repositories"; -$site_header = "/usr/local/apache2/htdocs/common/gitweb-header.html"; -$home_link_str = "archive/Repositories"; -$logo_label = "git:"; diff --git a/conf/httpd-gitweb.conf b/conf/httpd-gitweb.conf deleted file mode 100644 index a8cbb58..0000000 --- a/conf/httpd-gitweb.conf +++ /dev/null @@ -1,29 +0,0 @@ -LoadModule rewrite_module modules/mod_rewrite.so -LoadModule cgi_module modules/mod_cgi.so - -SetEnv GIT_PROJECT_ROOT /usr/local/apache2/htdocs/archive/Repositories -SetEnv GIT_HTTP_EXPORT_ALL -ScriptAliasMatch \ - "(?x)^/git/(.*/(HEAD | \ - info/refs | \ - objects/(info/[^/]+ | \ - [0-9a-f]{2}/[0-9a-f]{38} | \ - pack/pack-[0-9a-f]{40}\.(pack|idx)) | \ - git-(upload|receive)-pack))$" \ - /usr/lib/git-core/git-http-backend/$1 - -ScriptAlias /archive/Repositories/ /usr/lib/cgi-bin/gitweb.cgi/ - - - Options +ExecCGI +Indexes - Order allow,deny - Allow from all - Require all granted - - - - Options +ExecCGI +Indexes - Order allow,deny - Allow from all - Require all granted - diff --git a/gitserver.Dockerfile b/gitserver.Dockerfile deleted file mode 100644 index 2f98ccf..0000000 --- a/gitserver.Dockerfile +++ /dev/null @@ -1,36 +0,0 @@ -# Use an official Debian base image -FROM debian:stable-slim - -# Set environment variables to avoid prompts during installation -ENV DEBIAN_FRONTEND=noninteractive - -# Install required packages -RUN apt-get update && \ - apt-get install -y \ - git \ - openssh-server \ - && rm -rf /var/lib/apt/lists/* - -# Create a new user (replace 'git' with your desired username) -RUN useradd -m -s /usr/bin/git-shell git && \ - mkdir -p /home/git/.ssh && \ - chown -R git:git /home/git/.ssh - -# Set up SSH -# COPY sshd_config /etc/ssh/sshd_config -RUN echo "PermitRootLogin no" >> /etc/ssh/sshd_config && \ - echo "PasswordAuthentication no" >> /etc/ssh/sshd_config && \ - echo "ChallengeResponseAuthentication no" && \ - echo "UsePAM no" >> /etc/ssh/sshd_config && \ - echo "Subsystem git /usr/lib/git-core/git-shell" - -# Expose SSH port -EXPOSE 22 - -RUN ln -sf /home/git/data/archive /archive - -COPY gitserver.entrypoint.sh /entrypoint.sh - -# Start SSH server -CMD ["/bin/bash", "/entrypoint.sh"] - diff --git a/gitweb.Dockerfile b/gitweb.Dockerfile deleted file mode 100644 index a3a3852..0000000 --- a/gitweb.Dockerfile +++ /dev/null @@ -1,5 +0,0 @@ -FROM httpd - -RUN apt-get update -y && apt-get install -y git gitweb prometheus-apache-exporter - -EXPOSE 9117