Removed gitweb references
This commit is contained in:
5
Dockerfile
Normal file
5
Dockerfile
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
FROM httpd
|
||||||
|
|
||||||
|
RUN apt-get update -y && apt-get install -y prometheus-apache-exporter
|
||||||
|
|
||||||
|
EXPOSE 9117
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
# path to git projects (<project>.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:";
|
|
||||||
@@ -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/
|
|
||||||
|
|
||||||
<Directory "/usr/lib/git-core">
|
|
||||||
Options +ExecCGI +Indexes
|
|
||||||
Order allow,deny
|
|
||||||
Allow from all
|
|
||||||
Require all granted
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
<Directory "/usr/lib/cgi-bin">
|
|
||||||
Options +ExecCGI +Indexes
|
|
||||||
Order allow,deny
|
|
||||||
Allow from all
|
|
||||||
Require all granted
|
|
||||||
</Directory>
|
|
||||||
@@ -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"]
|
|
||||||
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
FROM httpd
|
|
||||||
|
|
||||||
RUN apt-get update -y && apt-get install -y git gitweb prometheus-apache-exporter
|
|
||||||
|
|
||||||
EXPOSE 9117
|
|
||||||
Reference in New Issue
Block a user