File tree Expand file tree Collapse file tree 12 files changed +183
-0
lines changed
Expand file tree Collapse file tree 12 files changed +183
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM alpine:3.10
2+
3+ VOLUME /etc/nginx/ssl
4+
5+ EXPOSE 80 443
6+
7+ ARG VERSION
8+
9+ RUN apk update && \
10+ apk add openssl unzip nginx bash ca-certificates s6 curl ssmtp mailx php7 php7-phar php7-curl \
11+ php7-fpm php7-json php7-zlib php7-xml php7-dom php7-ctype php7-opcache php7-zip php7-iconv \
12+ php7-pdo php7-pdo_mysql php7-pdo_sqlite php7-pdo_pgsql php7-mbstring php7-session php7-bcmath \
13+ php7-gd php7-mcrypt php7-openssl php7-sockets php7-posix php7-ldap php7-simplexml php7-fileinfo \
14+ php7-mysqli php7-dev php7-intl imagemagick ffmpeg ghostscript exiftool subversion mysql-client && \
15+ rm -rf /var/cache/apk/* && \
16+ rm -rf /var/www/localhost && \
17+ rm -f /etc/php7/php-fpm.d/www.conf
18+
19+ ADD . /var/www/app
20+ ADD docker/ /
21+ RUN svn co http://svn.resourcespace.com/svn/rs/releases/9.0/ ./var/www/app
22+
23+ VOLUME /var/www/app/include
24+ VOLUME /var/www/app/filestore
25+
26+ RUN rm -rf /var/www/app/docker && echo $VERSION > /version.txt
27+
28+ ENTRYPOINT ["/usr/local/bin/entrypoint.sh" ]
29+ CMD []
Original file line number Diff line number Diff line change 1+ ![ image] ( https://user-images.githubusercontent.com/26339368/60102174-2b753400-972b-11e9-80c4-166c4d64c85a.png )
2+
3+ ** Simplified Docker Container for Resourcespace**
4+
5+ # ResourceSpace Docker Container
6+ ResourceSpace running on Alpine with Nginx
7+
8+ ## Supported tags and respective Dockerfile links
9+ - [ v9.0] ( https://github.com/creecros/resourcespace-docker/tree/v9.0 )
10+
11+ ## Requirements
12+ - Mysql or MariaDB
13+
14+ ## Example usage:
15+ ```
16+ docker run -p 80:80 \
17+ creecros/resourcespace-docker:v9.0
18+ ```
19+
Original file line number Diff line number Diff line change 1+ 0 8 * * * cd /var/www/app && ./cli cronjob >/dev/null 2>&1
Original file line number Diff line number Diff line change 1+ user nginx;
2+ worker_processes 1;
3+ pid /var/run/nginx.pid ;
4+
5+ events {
6+ worker_connections 1024 ;
7+ }
8+
9+ http {
10+ include mime.types ;
11+ default_type application/octet-stream ;
12+
13+ sendfile on;
14+ tcp_nopush on;
15+ tcp_nodelay on;
16+ keepalive_timeout 65 ;
17+ server_tokens off;
18+ access_log off;
19+ error_log /dev/stderr;
20+
21+ fastcgi_buffers 16 16k ;
22+ fastcgi_buffer_size 32k ;
23+
24+ server {
25+ listen 80 ;
26+ listen 443 ssl http2;
27+ ssl_certificate /etc/nginx/ssl /resourcespace.crt;
28+ ssl_certificate_key /etc/nginx/ssl /resourcespace.key;
29+ server_name localhost;
30+ index index .php;
31+ root /var/www/app;
32+ client_max_body_size 100M ;
33+
34+ location / {
35+ try_files $uri $uri / /index .php$is_args$args ;
36+ }
37+
38+ location ~ \.php$ {
39+ try_files $uri =404 ;
40+ fastcgi_split_path_info ^( .+\.php)( /.+) $;
41+ fastcgi_pass unix:/var/run/php-fpm.sock;
42+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name ;
43+ fastcgi_index index .php;
44+ include fastcgi_params;
45+ }
46+
47+ location ~ * ^.+\.(log|sqlite)$ {
48+ return 404 ;
49+ }
50+
51+ location ~ /\.ht {
52+ return 404 ;
53+ }
54+
55+ location ~ * ^.+\.(ico|jpg|gif|png|css|js|svg|eot|ttf|woff|woff2|otf)$ {
56+ log_not_found off;
57+ expires 7d ;
58+ etag on;
59+ }
60+
61+ gzip on;
62+ gzip_comp_level 3;
63+ gzip_disable "msie6" ;
64+ gzip_vary on;
65+ gzip_types
66+ text/javascript
67+ application/javascript
68+ application/json
69+ text/xml
70+ application/xml
71+ application/rss+xml
72+ text/css
73+ text/plain;
74+ }
75+ }
Original file line number Diff line number Diff line change 1+ expose_php = Off
2+ error_reporting = E_ALL
3+ display_errors = Off
4+ log_errors = On
5+ error_log = /dev/stderr
6+ date.timezone = UTC
7+ allow_url_fopen = On
8+ memory_limit = 200M
9+ post_max_size = 100M
10+ upload_max_filesize = 100M
11+ opcache.max_accelerated_files = 7963
12+ opcache.validate_timestamps = On
13+ opcache.save_comments = 0
14+ opcache.load_comments = 0
15+ opcache.fast_shutdown = 1
16+ opcache.enable_file_override = On
17+ opcache.revalidate_freq = 0
Original file line number Diff line number Diff line change 1+ [global]
2+ error_log = /proc/self/fd/2
3+ log_level = error
4+ daemonize = no
5+
6+ [www]
7+ catch_workers_output = yes
8+ user = nginx
9+ group = nginx
10+ listen.owner = nginx
11+ listen.group = nginx
12+ listen = /var/run/php-fpm.sock
13+ pm = dynamic
14+ pm.max_children = 20
15+ pm.start_servers = 1
16+ pm.min_spare_servers = 1
17+ pm.max_spare_servers = 3
18+ pm.max_requests = 2048
19+ include = /etc/php7/php-fpm.d/env.conf
Original file line number Diff line number Diff line change 1+ env[DATABASE_URL] = $DATABASE_URL
2+ env[DEBUG] = $DEBUG
3+ env[API_AUTHENTICATION_TOKEN] = $API_AUTHENTICATION_TOKEN
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ /bin/true
Original file line number Diff line number Diff line change 1+ #!/bin/execlineb -P
2+ crond -f
Original file line number Diff line number Diff line change 1+ #!/bin/execlineb -P
2+
3+ nginx -g "daemon off;"
You can’t perform that action at this time.
0 commit comments