Skip to content

Commit 9f7833d

Browse files
sophia0328qzheng527
authored and
qzheng527
committed
update php-fpm/README.md
Signed-off-by: Gong Sophia <[email protected]>
1 parent 3ea1d67 commit 9f7833d

File tree

1 file changed

+97
-37
lines changed

1 file changed

+97
-37
lines changed

php-fpm/README.md

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

0 commit comments

Comments
 (0)