Refine local setup
- Add dependencies for gettext and PDF support - add whois and netbase to support whois checks - remove docker/mysql.php because configuration should be done via environment variables - install CAcert CA certificates to allow retrieval of translation data from translations.cacert.org - build i18n files on start of application container - disable broken OCSP stapling for local certificates - add language data during database initialization
This commit is contained in:
		
							parent
							
								
									c39be2c6c8
								
							
						
					
					
						commit
						ff5ea7dd39
					
				
					 6 changed files with 131 additions and 123 deletions
				
			
		|  | @ -5,16 +5,22 @@ RUN apt-get update \ | |||
|     apt-get install -y --no-install-recommends \ | ||||
|     ca-certificates \ | ||||
|     curl \ | ||||
|     gettext \ | ||||
|     libapache2-mod-php5 \ | ||||
|     locales-all \ | ||||
|     mariadb-client \ | ||||
|     make \ | ||||
|     netbase \ | ||||
|     nullmailer \ | ||||
|     php-apc \ | ||||
|     php-fpdf \ | ||||
|     php-gettext \ | ||||
|     php-mail \ | ||||
|     php-mail-mime \ | ||||
|     php-mail-mimedecode \ | ||||
|     php-net-smtp \ | ||||
|     php-net-socket \ | ||||
|     php-tcpdf \ | ||||
|     php5-apcu \ | ||||
|     php5-curl \ | ||||
|     php5-gd \ | ||||
|  | @ -27,6 +33,7 @@ RUN apt-get update \ | |||
|     php5-recode \ | ||||
|     psmisc \ | ||||
|     wamerican \ | ||||
|     whois \ | ||||
|     && apt-get clean \ | ||||
|     && rm -rf /var/lib/apt/lists/* | ||||
| 
 | ||||
|  | @ -34,7 +41,6 @@ STOPSIGNAL SIGWINCH | |||
| 
 | ||||
| COPY docker/apache-foreground /usr/local/bin/ | ||||
| COPY testca/ /usr/local/etc/testca/ | ||||
| COPY docker/mysql.php /usr/local/etc/application/mysql.php | ||||
| COPY docker/apache-virtualhost.conf /etc/apache2/sites-available/ | ||||
| COPY docker/cacert.conf /etc/apache2/conf-available/ | ||||
| COPY docker/php5-cacert.ini /etc/php5/mods-available/cacert.ini | ||||
|  | @ -48,7 +54,11 @@ RUN a2ensite apache-virtualhost ; \ | |||
|     a2enmod headers ; \ | ||||
|     a2enmod rewrite ; \ | ||||
|     a2enmod ssl ; \ | ||||
|     ln -s /etc/php5/mods-available/cacert.ini /etc/php5/apache2/conf.d/20-cacert.ini | ||||
|     ln -s /etc/php5/mods-available/cacert.ini /etc/php5/apache2/conf.d/20-cacert.ini ; \ | ||||
|     cd /usr/local/share/ca-certificates ; \ | ||||
|     curl -O http://www.cacert.org/certs/root_X0F.crt ; \ | ||||
|     curl -O http://www.cacert.org/certs/class3_X0E.crt ; \ | ||||
|     update-ca-certificates | ||||
| 
 | ||||
| EXPOSE 80 | ||||
| EXPOSE 443 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue