mirror of
https://github.com/clearlinux/dockerfiles.git
synced 2026-11-22 05:42:47 +00:00
committed by
William Douglas
parent
b09dbafcec
commit
256680f7c6
@@ -15,6 +15,7 @@ env:
|
||||
- DOCKERFILE_DIR=nginx
|
||||
- DOCKERFILE_DIR=redis
|
||||
- DOCKERFILE_DIR=httpd
|
||||
- DOCKERFILE_DIR=cgit
|
||||
|
||||
script:
|
||||
- cd $DOCKERFILE_DIR
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
FROM clearlinux/httpd
|
||||
|
||||
ARG swupd_args
|
||||
RUN swupd update $swupd_args
|
||||
RUN swupd bundle-add sudo curl scm-server $swupd_args
|
||||
RUN rm -rf /var/lib/swupd
|
||||
|
||||
COPY cgitrc /etc/cgitrc
|
||||
COPY httpd-cgit.conf /etc/httpd/conf.d/httpd-cgit.conf
|
||||
@@ -0,0 +1,27 @@
|
||||
# cgit
|
||||
==========
|
||||
This provides a Clear Linux* cgit service
|
||||
|
||||
Build
|
||||
-----
|
||||
```
|
||||
docker build -t clearlinux/cgit .
|
||||
```
|
||||
|
||||
Or just pull it from Dockerhub
|
||||
---------------------------
|
||||
```
|
||||
docker pull clearlinux/cgit
|
||||
```
|
||||
|
||||
Start cgit Container
|
||||
-----------------------
|
||||
```
|
||||
docker run -p 80:80 -v <git repo path>:/var/www/cgit clearlinux/cgit
|
||||
```
|
||||
|
||||
Extra Build ARGs
|
||||
----------------
|
||||
- ``swupd_args`` Specifies [SWUPD](https://clearlinux.org/documentation/swupdate_how_to_run_the_updater.html) flags
|
||||
|
||||
Default build args in Docker are on: https://docs.docker.com/engine/reference/builder/#arg
|
||||
@@ -0,0 +1,6 @@
|
||||
scan-path=/var/www/cgit/
|
||||
cache-scanrc-ttl=1
|
||||
|
||||
css=/cgit-data/cgit.css
|
||||
logo=/cgit-data/cgit.png
|
||||
favicon=/cgit-data/favicon.ico
|
||||
@@ -0,0 +1,31 @@
|
||||
# set server name to start httpd from docker
|
||||
ServerName localhost
|
||||
|
||||
DocumentRoot "/var/www"
|
||||
<Directory "/var/www">
|
||||
Options Indexes FollowSymLinks
|
||||
AllowOverride None
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
# cgid module is required to run the cgit binary
|
||||
LoadModule cgid_module lib/httpd/modules/mod_cgid.so
|
||||
<IfModule cgid_module>
|
||||
ScriptSock /var/run/cgid.sock
|
||||
</IfModule>
|
||||
|
||||
# Path to cgit stylesheet, graphics
|
||||
Alias /cgit-data /usr/share/cgit
|
||||
<Directory "/usr/share/cgit">
|
||||
AllowOverride None
|
||||
Options None
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
# Path to cgit binary
|
||||
ScriptAlias /cgit /usr/libexec/cgit/cgi-bin/cgit
|
||||
<Directory "/usr/libexec/cgit/cgi-bin">
|
||||
AllowOverride None
|
||||
Options None
|
||||
Require all granted
|
||||
</Directory>
|
||||
Reference in New Issue
Block a user