Create an entrypoint for pki_setup
This commit is contained in:
parent
de88470a0d
commit
8336f82311
@ -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
6
pki/entrypoint.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user