Skip to content

Commit 428af8e

Browse files
committed
Bump Docker image version to 1.7a
1 parent 06a2117 commit 428af8e

File tree

2 files changed

+16
-30
lines changed

2 files changed

+16
-30
lines changed

README.md

+15-29
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
For hosting PHP powered websites.
44

55
## Inheritance and added packages
6+
67
- Docker Image **tsle/ws-apache-base** (see [https://github.com/tsitle/dockerimage-ws-apache\_base](https://github.com/tsitle/dockerimage-ws-apache_base))
78
- PHP 7.1 (CLI + FPM)
89
- PHP packages (see below)
@@ -11,6 +12,7 @@ For hosting PHP powered websites.
1112
- xml-core
1213

1314
## PHP Packages included
15+
1416
- bcmath
1517
- cli
1618
- common
@@ -34,12 +36,15 @@ For hosting PHP powered websites.
3436
- zip
3537

3638
## Webserver TCP Port
39+
3740
The webserver is listening only on TCP port 80 by default.
3841

3942
## Docker Container usage
43+
4044
See the related GitHub repository [https://github.com/tsitle/dockercontainer-ws-apache\_php71\_mariadb101](https://github.com/tsitle/dockercontainer-ws-apache_php71_mariadb101)
4145

4246
## Docker Container configuration
47+
4348
From **tsle/ws-apache-base**:
4449

4550
- CF\_PROJ\_PRIMARY\_FQDN [string]: FQDN for website (e.g. "mywebsite.localhost") (default: empty)
@@ -60,6 +65,7 @@ From **tsle/ws-apache-base**:
6065
- CF\_CSR\_SUBJECT\_LOCATION [string]: For auto-generated SSL Certificates (default: LE)
6166
- CF\_CSR\_SUBJECT\_ORGANIZ [string]: For auto-generated SSL Certificates (default: The IT Company)
6267
- CF\_CSR\_SUBJECT\_ORGUNIT [string]: For auto-generated SSL Certificates (default: IT)
68+
- CF\_APACHE\_TIMEOUT [int]: Number of seconds before receives and sends time out (default: 300)
6369

6470
From this image:
6571

@@ -82,6 +88,7 @@ From this image:
8288
- CF\_XDEBUG\_REMOTE\_HOST [string]: Remote Host for XDebug (default 'dockerhost')
8389

8490
## Using cron
91+
8592
You'll need to create the crontab file `./mpcron/wwwphpfpm` and then add some task to the file:
8693

8794
```
@@ -116,35 +123,14 @@ services:
116123
tty: false
117124
```
118125

119-
## Enabling the PHP Module XDebug
120-
The PHP Module 'xdebug' is disabled by default.
121-
To enable it you'll need to follow these steps from within a Bash shell:
122-
(replace "DOCKERCONTAINER" with your Docker Container's name)
123-
124-
1. Start the Docker Container
125-
2. If your debugger (e.g. IntelliJ) is running on a different machine then
126-
you'll need to replace the default hostname "host" with your machine's hostname.
127-
Edit XDebug configuration:
128-
```
129-
$ docker exec -it DOCKERCONTAINER nano /etc/php/7.1/mods-available/xdebug.ini
130-
```
131-
132-
```
133-
xdebug.remote_host="host"
134-
```
135-
When done editing hit CTRL-X, then "J" and hit ENTER
136-
3. Now enable the PHP Module:
137-
```
138-
$ docker exec -it DOCKERCONTAINER phpenmod xdebug
139-
```
140-
```
141-
$ docker exec -it DOCKERCONTAINER service php7.1-fpm restart
142-
```
143-
144-
## Disabling the PHP Module XDebug
145-
```
126+
## Enabling/Disabling the PHP Module XDebug in a running container
127+
128+
```
129+
# enable:
130+
$ docker exec -it DOCKERCONTAINER phpenmod xdebug
131+
# disable:
146132
$ docker exec -it DOCKERCONTAINER phpdismod xdebug
147-
```
148-
```
133+
```
134+
```
149135
$ docker exec -it DOCKERCONTAINER service php7.1-fpm restart
150136
```

build_image.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ LVAR_DEBIAN_DIST="$(_getCpuArch debian_dist)"
6363

6464
LVAR_REPO_PREFIX="tsle"
6565
LVAR_PARENT_IMAGE_NAME="ws-apache-base-$LVAR_DEBIAN_DIST"
66-
LVAR_PARENT_IMAGE_VER="1.6"
66+
LVAR_PARENT_IMAGE_VER="1.7"
6767

6868
LVAR_PARENT_IMG_FULL="${LVAR_PARENT_IMAGE_NAME}:${LVAR_PARENT_IMAGE_VER}"
6969

0 commit comments

Comments
 (0)