Skip to content

Commit f1d7dc8

Browse files
committed
📖 📖
1 parent 03a4d55 commit f1d7dc8

File tree

2 files changed

+90
-0
lines changed

2 files changed

+90
-0
lines changed

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2017 Joseph Estefane
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# PHP Development Docker Images
2+
3+
Super simple Docker images for PHP development.
4+
5+
**Versions**
6+
7+
- 5.5-cli
8+
- 5.6-cli
9+
- 7.0-cli
10+
- 7.1-cli
11+
12+
**PHP modules installed:**
13+
14+
XDebug
15+
16+
PDO MySQL
17+
18+
## Usage
19+
20+
### PHP-CLI
21+
22+
```bash
23+
docker run --rm -it
24+
-w=/app \
25+
-v /path/to/project:/app \
26+
jestefane/php-dev:7.0-cli-1.0.0
27+
```
28+
29+
For example:
30+
31+
```shell
32+
docker run --rm -it -w=/app -v $(pwd):/app jestefane/php-dev:7.0-cli-1.0.0 hello-world.php
33+
```
34+
35+
### Composer
36+
37+
```shell
38+
docker run --rm -it \
39+
-w=/app \
40+
-v /path/to/project:/app \
41+
-v ~/.ssh:/root/.ssh \
42+
-v $HOME/.composer-docker:/composer \
43+
jestefane/php-dev:7.0-cli-1.0.0 composer
44+
```
45+
46+
For example:
47+
48+
```shell
49+
docker run --rm -it \
50+
-w=/app \
51+
-v $(pwd):/app \
52+
-v ~/.ssh:/root/.ssh \
53+
-v $HOME/.composer-docker:/composer \
54+
jestefane/php-dev:7.0-cli-1.0.0 composer install
55+
```
56+
57+
## Binaries
58+
59+
For simplicity , and to be able to use the tools normally, this repository contains binaries you can copy in `/usr/local/bin` (or anythwere in your `$PATH`).
60+
61+
```shell
62+
make cp_bins
63+
```
64+
65+
## Building images locally
66+
67+
```shell
68+
make builds
69+
```

0 commit comments

Comments
 (0)