diff --git a/Dockerfile b/Dockerfile index 196349b..853fd4a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,15 @@ -# VERSION 0.5 +# VERSION 0.6 # AUTHOR: Olav Grønås Gjerde # DESCRIPTION: Image with MoinMoin wiki, uwsgi, nginx and self signed SSL # TO_BUILD: docker build -t moinmoin . -# TO_RUN: docker run -it -p 80:80 -p 443:443 --name my_wiki moinmoin +# TO_RUN: docker run -d -p 80:80 -p 443:443 --name my_wiki moinmoin -FROM debian:jessie +FROM debian:stretch MAINTAINER Olav Grønås Gjerde # Set the version you want of MoinMoin -ENV MM_VERSION 1.9.8 -ENV MM_CSUM 4a616d12a03f51787ac996392f9279d0398bfb3b +ENV MM_VERSION 1.9.9 +ENV MM_CSUM 47c86460a1ba9369da2be4e5e19f445cf4a4e6d4 # Install software RUN apt-get update && apt-get install -qqy --no-install-recommends \ diff --git a/generate_ssl_key.sh b/generate_ssl_key.sh index 7751c61..9a0ad17 100755 --- a/generate_ssl_key.sh +++ b/generate_ssl_key.sh @@ -1,15 +1,3 @@ #!/bin/bash -#Required -domain=$1 -commonname=$domain - -#Change to your company details -country=NO -state=Rogaland -locality=Sola -organization=example.org - -openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 3600 \ - -nodes \ - -subj "/CN=$domain/C=$country/ST=$state/L=$locality/O=$organization" +openssl req -x509 -newkey rsa:4096 -sha256 -nodes -keyout key.pem -out cert.pem -subj "/CN=example.com" -days 3650