Create an entrypoint for pki_setup

This commit is contained in:
nemunaire 2015-01-16 21:01:02 +01:00 committed by Nemunaire
parent de88470a0d
commit 8336f82311
2 changed files with 8 additions and 4 deletions

View File

@ -14,6 +14,7 @@ RUN apt-get -y update && \
COPY CA.sh /var/www/fic-server/pki/
COPY openssl.cnf /var/www/fic-server/pki/
COPY entrypoint.sh /var/www/fic-server/pki/
# ENVIRONNEMENT #######################################################
@ -21,9 +22,6 @@ VOLUME ["/var/www/fic-server/PKI"]
WORKDIR /var/www/fic-server/pki
ENTRYPOINT bash ./CA.sh -newca && \
bash ./CA.sh -newserver "$1" && \
openssl dhparam -check -5 4096 -out /var/www/fic-server/shared/params.4096 && \
bash ./CA.sh -gencrl
ENTRYPOINT ["./entrypoint.sh"]
CMD 127.0.0.1

6
pki/entrypoint.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
bash ./CA.sh -newca && \
bash ./CA.sh -newserver "$1" && \
openssl dhparam -check -5 4096 -out /var/www/fic-server/shared/params.4096 && \
bash ./CA.sh -gencrl