Skip to content

Commit ae8bf4e

Browse files
sophia0328qzheng527
authored and
qzheng527
committedAug 30, 2019
update cgit README.md
Signed-off-by: Gong Sophia <[email protected]>
1 parent 451800d commit ae8bf4e

File tree

1 file changed

+88
-27
lines changed

1 file changed

+88
-27
lines changed
 

‎cgit/README.md

+88-27
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,88 @@
1-
# cgit
2-
==========
3-
This provides a Clear Linux* cgit service
4-
5-
Build
6-
-----
7-
```
8-
docker build -t clearlinux/cgit .
9-
```
10-
11-
Or just pull it from Dockerhub
12-
---------------------------
13-
```
14-
docker pull clearlinux/cgit
15-
```
16-
17-
Start cgit Container
18-
-----------------------
19-
```
20-
docker run -p 80:80 -v <git repo path>:/var/www/cgit clearlinux/cgit
21-
```
22-
23-
Extra Build ARGs
24-
----------------
25-
- ``swupd_args`` Specifies [SWUPD](https://github.com/clearlinux/swupd-client/blob/master/docs/swupd.1.rst#options) flags
26-
27-
Default build args in Docker are on: https://docs.docker.com/engine/reference/builder/#arg
1+
# Clear Linux* OS `cgit` container image
2+
3+
<!-- Required -->
4+
## What is this image?
5+
6+
`clearlinux/cgit` is a Docker image with `cgit` running on top of the
7+
[official clearlinux base image](https://hub.docker.com/_/clearlinux).
8+
9+
<!-- application introduction -->
10+
> [Cgit](https://git.zx2c4.com/cgit/) is a hyperfast web frontend for git repositories written in C.
11+
12+
For other Clear Linux* OS
13+
based container images, see: https://hub.docker.com/u/clearlinux
14+
15+
## Why use a clearlinux based image?
16+
17+
<!-- CL introduction -->
18+
> [Clear Linux* OS](https://clearlinux.org/) is an open source, rolling release
19+
> Linux distribution optimized for performance and security, from the Cloud to
20+
> the Edge, designed for customization, and manageability.
21+
22+
Clear Linux* OS based container images use:
23+
* Optimized libraries that are compiled with latest compiler versions and
24+
flags.
25+
* Software packages that follow upstream source closely and update frequently.
26+
* An aggressive security model and best practices for CVE patching.
27+
* A multi-staged build approach to keep a reduced container image size.
28+
* The same container syntax as the official images to make getting started
29+
easy.
30+
31+
To learn more about Clear Linux* OS, visit: https://clearlinux.org.
32+
33+
<!-- Required -->
34+
## Deployment:
35+
36+
### Deploy with Docker
37+
The easiest way to get started with this image is by simply pulling it from
38+
Docker Hub.
39+
40+
41+
1. Pull the image from Docker Hub:
42+
```
43+
docker pull clearlinux/cgit
44+
```
45+
46+
2. Start a container using the examples below:
47+
48+
```
49+
docker run -p 80:80 -v <git repo path>:/var/www/cgit clearlinux/cgit
50+
```
51+
52+
<!-- Optional -->
53+
### Deploy with Kubernetes
54+
55+
<!-- Required -->
56+
## Build and modify:
57+
58+
The Dockerfiles for all Clear Linux* OS based container images are available at
59+
https://github.com/clearlinux/dockerfiles. These can be used to build and
60+
modify the container images.
61+
62+
1. Clone the clearlinux/dockerfiles repository.
63+
```
64+
git clone https://github.com/clearlinux/dockerfiles.git
65+
```
66+
67+
2. Change to the directory of the application:
68+
```
69+
cd cgit/
70+
```
71+
72+
3. Build the container image:
73+
```
74+
docker build -t clearlinux/cgit .
75+
```
76+
77+
Refer to the Docker documentation for [default build arguments](https://docs.docker.com/engine/reference/builder/#arg).
78+
Additionally:
79+
80+
- `swupd_args` - specifies arguments to pass to the Clear Linux* OS software
81+
manager. See the [swupd man pages](https://github.com/clearlinux/swupd-client/blob/master/docs/swupd.1.rst#options)
82+
for more information.
83+
84+
<!-- Required -->
85+
## Licenses
86+
87+
All licenses for the Clear Linux* Project and distributed software can be found
88+
at https://clearlinux.org/terms-and-policies

0 commit comments

Comments
 (0)
Please sign in to comment.