File tree Expand file tree Collapse file tree 10 files changed +32
-13
lines changed
Expand file tree Collapse file tree 10 files changed +32
-13
lines changed Original file line number Diff line number Diff line change @@ -108,5 +108,6 @@ RUN phpenmod overrides && \
108108 # Set nginx to listen on defined port \
109109 sed -i "s/listen [0-9]*;/listen ${CONTAINER_PORT};/" $CONF_NGINX_SITE
110110
111- RUN goss -g goss.ubuntu.yaml validate
111+ RUN goss -g /tests/php-fpm/ubuntu.goss.yaml validate && \
112+ /tmp/aufs_hack.sh
112113
Original file line number Diff line number Diff line change @@ -135,4 +135,5 @@ COPY ./container/root /
135135RUN cp /etc/php/7.0/mods-available/* $CONF_PHPMODS && \
136136 rm $CONF_PHPMODS/00_opcache.ini
137137
138- RUN goss -g goss.alpine.yaml validate
138+ RUN goss -g /tests/php-fpm/alpine.goss.yaml validate && \
139+ /tmp/aufs_hack.sh
Original file line number Diff line number Diff line change @@ -117,4 +117,5 @@ RUN cp /etc/php/7.0/mods-available/* $CONF_PHPMODS && \
117117 # Set nginx to listen on defined port \
118118 sed -i "s/listen [0-9]*;/listen ${CONTAINER_PORT};/" $CONF_NGINX_SITE
119119
120- RUN goss -g goss.beta.yaml validate
120+ RUN goss -g /tests/php-fpm/beta.goss.yaml validate && \
121+ /tmp/aufs_hack.sh
Original file line number Diff line number Diff line change 88fwrite ( $ stderr , 'Using STDERR pipe for output ' );
99
1010phpinfo ();
11+
12+ // Use the below form to test uploads
13+ ?>
14+
15+ <form method="post" action="/" enctype="multipart/form-data">
16+ <p>
17+ Please specify a file, or a set of files:<br>
18+ <input type="file" name="datafile">
19+ </p>
20+ <div>
21+ <input type="submit" value="Send">
22+ </div>
23+ </form>
Original file line number Diff line number Diff line change @@ -24,4 +24,4 @@ apt-get autoclean -y && \
2424apt-get autoremove -y && \
2525rm -rf /var/lib/{cache,log}/ && \
2626rm -rf /var/lib/apt/lists/ && \
27- rm -rf /tmp/ * / var/tmp/*
27+ rm -rf /var/tmp/*
Original file line number Diff line number Diff line change 11gossfile :
2- goss. base.yaml : {}
2+ base.goss .yaml : {}
33
44package :
55 php7 :
Original file line number Diff line number Diff line change 1+ gossfile :
2+ ../../goss.nginx.yaml : {}
3+
14group :
25 www-data :
36 exists : true
Original file line number Diff line number Diff line change 11# Note: base cannot be used because versions are different
22# gossfile:
3- # goss. base.yaml: {}
3+ # base.goss .yaml: {}
44group :
55 www-data :
66 exists : true
Original file line number Diff line number Diff line change 11gossfile :
2- goss. base.yaml : {}
2+ base.goss .yaml : {}
33
44package :
55 php7.0 :
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ ubuntu:
1515 S6_KILL_GRACETIME : 1
1616 volumes :
1717 - ./container/root/app:/app
18- - ./container/root/goss. base.yaml:/goss. base.yaml
19- - ./container/root/goss. ubuntu.yaml:/goss. ubuntu.yaml
18+ - ./container/root/tests/php-fpm/ base.goss. yaml:/tests/php-fpm/ base.goss .yaml
19+ - ./container/root/tests/php-fpm/ ubuntu.goss. yaml:/tests/php-fpm/ ubuntu.goss .yaml
2020alpine :
2121 build : .
2222 dockerfile : Dockerfile-alpine
@@ -35,8 +35,8 @@ alpine:
3535 S6_KILL_GRACETIME : 1
3636 volumes :
3737 - ./container/root/app:/app
38- - ./container/root/goss. base.yaml:/goss. base.yaml
39- - ./container/root/goss. alpine.yaml:/goss. alpine.yaml
38+ - ./container/root/tests/php-fpm/ base.goss. yaml:/tests/php-fpm/ base.goss .yaml
39+ - ./container/root/tests/php-fpm/ alpine.goss. yaml:/tests/php-fpm/ alpine.goss .yaml
4040edge :
4141 build : .
4242 dockerfile : Dockerfile-edge
5555 S6_KILL_GRACETIME : 1
5656 volumes :
5757 - ./container/root/app:/app
58- - ./container/root/goss. base.yaml:/goss. base.yaml
59- - ./container/root/goss. beta.yaml:/goss. beta.yaml
58+ - ./container/root/tests/php-fpm/ base.goss. yaml:/tests/php-fpm/ base.goss .yaml
59+ - ./container/root/tests/php-fpm/ beta.goss. yaml:/tests/php-fpm/ beta.goss .yaml
You can’t perform that action at this time.
0 commit comments