Skip to content
This repository was archived by the owner on Jan 1, 2026. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ RUN chmod +x /usr/bin/rmauth
# manage default value
ENV GITUSER gituser
ENV GITPASSWORD gitpassword
ENV GITHIGHLIGHT 0

# add ihm mdl
ENV IHM no-mdl
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ load when start image load file in
- GITPROJECT
- GITUSER (default gituser)
- GITPASSWORD (default gitpassword)
- GITHIGHLIGHT (default `0`)
- IHM (default "")

## Volume
Expand Down
5 changes: 5 additions & 0 deletions src/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ if [ "$1" = 'app' ]; then
cat /usr/share/gitweb/ihm/headstring.conf >> /etc/gitweb.conf
cp /usr/share/gitweb/ihm/gitweb.css /usr/share/gitweb/static/gitweb.css
fi
if [ "$GITHIGHLIGHT" = "1" ]; then
echo '' >> /etc/gitweb.conf
echo '# enable syntax highlighting' >> /etc/gitweb.conf
echo "\$feature{'highlight'}{'default'} = [1];" >> /etc/gitweb.conf
fi
service fcgiwrap start
nginx -g "daemon off;"
/bin/run-parts --verbose --regex '\.(sh)$' "/usr/share/gitweb/docker-entrypoint.post"
Expand Down