Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Modjular Piwigo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Modjular
Modjular Piwigo
Commits
8bc8267f
Commit
8bc8267f
authored
Oct 13, 2020
by
Jeffrey Phillips Freeman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Got things in working order.
parent
cc1e3161
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
36 deletions
+9
-36
Dockerfile
Dockerfile
+9
-5
piwigo.conf
piwigo.conf
+0
-31
No files found.
Dockerfile
View file @
8bc8267f
...
...
@@ -40,13 +40,17 @@ RUN echo "**** install packages ****" && \
re2c
\
unzip
\
wget
&&
\
echo
"**** download piwigo ****"
&&
\
PIWIGO_RELEASE
=
$(
curl
-sX
GET
"https://api.github.com/repos/Piwigo/Piwigo/releases/latest"
|
awk
'/tag_name/{print $4;exit}'
FS
=
'[""]'
)
&&
\
mkdir
/piwigo
&&
\
curl
-o
/piwigo/piwigo.zip
-L
"http://piwigo.org/download/dlcounter.php?code=
${
PIWIGO_RELEASE
}
"
&&
\
apt-get clean
&&
\
rm
-r
/var/lib/apt/lists/
*
RUN
PIWIGO_RELEASE
=
$(
curl
-sX
GET
"https://api.github.com/repos/Piwigo/Piwigo/releases/latest"
|
awk
'/tag_name/{print $4;exit}'
FS
=
'[""]'
)
&&
\
curl
-o
/tmp/piwigo.zip
-L
"http://piwigo.org/download/dlcounter.php?code=
${
PIWIGO_RELEASE
}
"
&&
\
unzip
-q
/tmp/piwigo.zip
-d
/tmp
&&
\
mkdir
-p
/config/www/gallery
&&
\
mv
/tmp/piwigo/
*
/config/www/gallery
&&
\
rm
-rf
/tmp/piwigo
*
RUN
sed
-i
's/^[[:space:]]*[;]*[[:space:]]*memory_limit[[:space:]]*=[[:space:]]*.*/memory_limit = 256M/'
/etc/php/7.3/fpm/php.ini
&&
\
sed
-i
's/^[[:space:]]*[;]*[[:space:]]*cgi.fix_pathinfo[[:space:]]*=[[:space:]]*.*/cgi.fix_pathinfo = 0/'
/etc/php/7.3/fpm/php.ini
&&
\
sed
-i
's/^[[:space:]]*[;]*[[:space:]]*upload_max_filesize[[:space:]]*=[[:space:]]*.*/upload_max_filesize = 512M/'
/etc/php/7.3/fpm/php.ini
&&
\
...
...
@@ -59,4 +63,4 @@ COPY 39-start-fpm.sh /docker-entrypoint.d/
# ports and volumes
EXPOSE
80 443
VOLUME
["/config", "/pictures"]
VOLUME
["/config
/log", "/config/www/gallery/galleries/", "/config/www/gallery/_data/", "/config/www/gallery/upload/", "/config/www/gallery/plugins/", "/config/www/gallery/themes/", "/config/www/gallery/template-extension/", "/config/www/gallery/local/
", "/pictures"]
piwigo.conf
View file @
8bc8267f
...
...
@@ -22,34 +22,3 @@ server {
fastcgi_split_path_info
^(.+\.
php
)(/.+)$;
}
}
#server {
# listen 80 default_server;
#
# listen 443 ssl;
#
# root /config/www/gallery;
# index index.html index.htm index.php;
#
# server_name _;
#
# ssl_certificate /config/keys/cert.crt;
# ssl_certificate_key /config/keys/cert.key;
#
# client_max_body_size 0;
#
# location / {
# try_files $uri $uri/ /index.html /index.php?$args =404;
# }
#
# location ~ \.php$ {
# fastcgi_split_path_info ^(.+\.php)(/.+)$;
# # With php5-cgi alone:
# fastcgi_pass 127.0.0.1:9000;
# # With php5-fpm:
# #fastcgi_pass unix:/var/run/php5-fpm.sock;
# fastcgi_index index.php;
# include /etc/nginx/fastcgi_params;
#
# }
#}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment