Skip to content

Instantly share code, notes, and snippets.

@nmoller
nmoller / Dockerfile
Created April 17, 2019 22:01
Dockerfile idea
FROM alpine/git AS base
WORKDIR /opt/base
RUN git clone --single-branch --branch master --depth 1 https://github.com/openwebwork/webwork2.git
RUN git clone --single-branch --branch master --depth 1 https://github.com/openwebwork/pg.git
RUN git clone --single-branch --branch master --depth 1 https://github.com/mathjax/MathJax
RUN git clone --single-branch --branch master --depth 1 https://github.com/openwebwork/webwork-open-problem-library
# Clean up
@nmoller
nmoller / php.ini
Created October 1, 2017 22:14
Php config
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
@nmoller
nmoller / mpm_prefork.conf
Created October 1, 2017 22:13
Prefork config
# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# MaxRequestWorkers: maximum number of server processes allowed to start
# MaxConnectionsPerChild: maximum number of requests a server process serves
<IfModule mpm_prefork_module>
StartServers 8
MinSpareServers 5
@nmoller
nmoller / apache2.conf
Created October 1, 2017 22:11
Apache conf
# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.4/ for detailed information about
# the directives and /usr/share/doc/apache2/README.Debian about Debian specific
# hints.
#
#
# Summary of how the Apache 2 configuration works in Debian:
# The Apache 2 web server configuration in Debian is quite different to
# upstream's suggested way to configure the web server. This is because Debian's
@nmoller
nmoller / Dockerfile 7.0.20
Created October 1, 2017 21:37
Version 7.0.20
FROM php:7.0.20-apache
LABEL maintainer "Nelson Moller"
# Pour avoir /etc/ssl/certs/ssl-cert-snakeoil.pem ssl-cert
# https offert gracieusement par netscaler
RUN apt-get update && apt-get install -y \
# pour installer toutes les déps.
libmemcached-dev zlib1g-dev libmcrypt-dev libxml2-dev libpng-dev libicu-dev\
&& pecl install memcached-3.0.3 \
&& docker-php-ext-enable memcached \
@nmoller
nmoller / Dockerfile 5.6.31
Last active October 1, 2017 21:35
Version 5.6.31
FROM php:5.6.31-apache
LABEL maintainer "Nelson Moller"
# Pour avoir /etc/ssl/certs/ssl-cert-snakeoil.pem ssl-cert
# https offert gracieusement par netscaler
RUN apt-get update && apt-get install -y \
# pour installer toutes les déps.
libmemcached-dev zlib1g-dev libmcrypt-dev libxml2-dev libpng-dev libicu-dev\
&& pecl install memcached-3.0.3 \
&& docker-php-ext-enable memcached \