Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5fd88a7

Browse files
Added custom/phpdev build
1 parent afc430d commit 5fd88a7

File tree

6 files changed

+19
-13
lines changed

6 files changed

+19
-13
lines changed

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
.idea
12
.DS_Store

‎BUILDS.md‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
Working builds
1+
Available Builds
22
=======
33

4+
## phpdev:latest
5+
6+
Php dev box loaded with extensions
7+
48
```bash
5-
./build.sh phpdevbase --env dev --php 7.2.5 --customize phpdev
9+
./build.sh phpdev:base --env dev --php 7.2.5 --customize phpdev
610
```

‎Dockerfile‎

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
#Arguments for stage one
1+
#Arguments for stage one
22
ARG BUILD_VERSION=7
33

4-
#Pull php:$version-fpm-alpine (https://store.docker.com/images/php)
4+
#Pull php:$version-fpm-alpine (https://store.docker.com/images/php)
55
FROM php:$BUILD_VERSION-fpm-alpine
66

7-
#Mantainer info
7+
#Mantainer info
88
MAINTAINER Adrian7 <adrian.silimon@yahoo.com>
99

10-
#Arguments for stage two
10+
#Arguments for stage two
1111
ARG BUILD_CONFIG=dev
1212

13-
#Install
13+
#Install
1414

15-
RUN apk --no-cache add libmcrypt-dev autoconf gcc freetype libpng libjpeg-turbo freetype-dev libpng-dev libjpeg-turbo-dev make libc-dev \
15+
RUN apk --no-cache add libmcrypt-dev autoconf gcc freetype libpng libjpeg-turbo freetype-dev libpng-dev \
16+
libjpeg-turbo-dev make libc-dev pcre-dev \
1617
wget git openssh nginx ca-certificates supervisor bash \
1718
&& pecl install mcrypt-1.0.1 xdebug \
1819
&& docker-php-ext-enable mcrypt xdebug \
@@ -48,7 +49,7 @@ COPY ./config-${BUILD_CONFIG}/supervisord.conf /etc/supervisord.conf
4849

4950
COPY ./init-scripts/container.sh /home/bin/container
5051
COPY ./init-scripts/start.sh /start.sh
51-
COPY ./init-scripts/welcome.php /tmp/welcome.php
52+
COPY ./init-scripts/welcome.php /home/welcome.php
5253

5354
ENV PHP_BUILD_CONFIG=$BUILD_CONFIG
5455

‎config-dev/nginx/host.conf‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
server {
2-
listen 80; ## listen for ipv4; this line is default and implied
3-
listen [::]:80 default ipv6only=on; ## listen for ipv6
42

3+
listen 80; ## listen for ipv4; this line is default and implied
54
root __ROOTDIR__;
65
index index.php index.html index.htm;
76

‎custom/.gitignore‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
*
2-
!example
2+
!example
3+
!phpdev

‎init-scripts/container.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ else
122122
then
123123

124124
#Copy welcome file to index
125-
cp /tmp/welcome.php "${SERVER_ROOT}/index.php"
125+
cp /home/welcome.php "${SERVER_ROOT}/index.php"
126126

127127
fi
128128

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /