Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Dockerfiles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Picasoft
Technique
Dockerfiles
Commits
6893d910
Commit
6893d910
authored
5 years ago
by
Andres Maldonado
Browse files
Options
Downloads
Patches
Plain Diff
[Nginx] Upgrade PHP to 7.3
parent
f8608c9d
No related branches found
No related tags found
No related merge requests found
Pipeline
#58428
failed
5 years ago
Stage: ci-base
Stage: build
Stage: security-tests
Stage: push
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
pica-nginx/Dockerfile
+7
-7
7 additions, 7 deletions
pica-nginx/Dockerfile
pica-nginx/nginx.conf
+1
-1
1 addition, 1 deletion
pica-nginx/nginx.conf
pica-nginx/supervisord.conf
+1
-1
1 addition, 1 deletion
pica-nginx/supervisord.conf
with
9 additions
and
9 deletions
pica-nginx/Dockerfile
+
7
−
7
View file @
6893d910
FROM
debian:buster-slim
MAINTAINER
antoine@barbare.me
RUN
apt-get update
-y
&&
apt-get
install
-y
php7.
0
php7.
0
-fpm php7.
0
-gd php7.
0
-xml nginx supervisor curl
tar
RUN
apt-get update
-y
&&
apt-get
install
-y
php7.
3
php7.
3
-fpm php7.
3
-gd php7.
3
-xml nginx supervisor curl
tar
RUN
mkdir
-p
/run/nginx
&&
\
mkdir
-p
/var/www
...
...
@@ -10,12 +10,12 @@ ADD nginx.conf /etc/nginx/nginx.conf
ADD
supervisord.conf /etc/supervisord.conf
ADD
start.sh /start.sh
RUN
echo
"cgi.fix_pathinfo = 0;"
>>
/etc/php/7.
0
/fpm/php.ini
&&
\
sed
-i
-e
"s|;daemonize
\s
*=
\s
*yes|daemonize = no|g"
/etc/php/7.
0
/fpm/php-fpm.conf
&&
\
sed
-i
-e
"s|listen
\s
*=
\s
*127
\.
0
\.
0
\.
1:9000|listen = /var/run/php-fpm7.sock|g"
/etc/php/7.
0
/fpm/pool.d/www.conf
&&
\
sed
-i
-e
"s|;listen
\.
owner
\s
*=
\s
*|listen.owner = |g"
/etc/php/7.
0
/fpm/pool.d/www.conf
&&
\
sed
-i
-e
"s|;listen
\.
group
\s
*=
\s
*|listen.group = |g"
/etc/php/7.
0
/fpm/pool.d/www.conf
&&
\
sed
-i
-e
"s|;listen
\.
mode
\s
*=
\s
*|listen.mode = |g"
/etc/php/7.
0
/fpm/pool.d/www.conf
&&
\
RUN
echo
"cgi.fix_pathinfo = 0;"
>>
/etc/php/7.
3
/fpm/php.ini
&&
\
sed
-i
-e
"s|;daemonize
\s
*=
\s
*yes|daemonize = no|g"
/etc/php/7.
3
/fpm/php-fpm.conf
&&
\
sed
-i
-e
"s|listen
\s
*=
\s
*127
\.
0
\.
0
\.
1:9000|listen = /var/run/php-fpm7.sock|g"
/etc/php/7.
3
/fpm/pool.d/www.conf
&&
\
sed
-i
-e
"s|;listen
\.
owner
\s
*=
\s
*|listen.owner = |g"
/etc/php/7.
3
/fpm/pool.d/www.conf
&&
\
sed
-i
-e
"s|;listen
\.
group
\s
*=
\s
*|listen.group = |g"
/etc/php/7.
3
/fpm/pool.d/www.conf
&&
\
sed
-i
-e
"s|;listen
\.
mode
\s
*=
\s
*|listen.mode = |g"
/etc/php/7.
3
/fpm/pool.d/www.conf
&&
\
chmod
+x /start.sh
EXPOSE
80
...
...
This diff is collapsed.
Click to expand it.
pica-nginx/nginx.conf
+
1
−
1
View file @
6893d910
...
...
@@ -32,7 +32,7 @@ http {
location
~
\.php$
{
try_files
$uri
=
404
;
fastcgi_pass
unix:/run/php/php7.
0
-fpm.sock
;
fastcgi_pass
unix:/run/php/php7.
3
-fpm.sock
;
fastcgi_index
index.php
;
fastcgi_param
SCRIPT_FILENAME
$document_root$fastcgi_script_name
;
include
fastcgi_params
;
...
...
This diff is collapsed.
Click to expand it.
pica-nginx/supervisord.conf
+
1
−
1
View file @
6893d910
...
...
@@ -11,7 +11,7 @@ file=/var/run/supervisor.sock
supervisor
.
rpcinterface_factory
=
supervisor
.
rpcinterface
:
make_main_rpcinterface
[
program
:
php
]
command
=/
usr
/
sbin
/
php
-
fpm7
.
0
-
F
command
=/
usr
/
sbin
/
php
-
fpm7
.
3
-
F
stdout_logfile
=/
dev
/
stdout
stdout_logfile_maxbytes
=
0
redirect_stderr
=
true
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment