DEVOPS-1897 Docker refactoring
This commit is contained in:
parent
0a3f5eef66
commit
e22f584a2f
13 changed files with 22 additions and 21 deletions
|
|
@ -51,18 +51,15 @@ COPY --from=builder /build/.build/ervu-sign-module /opt/ervu-sign-module/ervu-si
|
|||
|
||||
EXPOSE 9009
|
||||
|
||||
ARG ESIA_CA_CERT=test_ca_rtk3.cer
|
||||
COPY conf/${ESIA_CA_CERT} ${ESIA_CA_CERT}
|
||||
RUN /opt/cprocsp/bin/amd64/certmgr -install -store mRoot -file "${ESIA_CA_CERT}"
|
||||
COPY --chown=ervu:ervu conf/cacerts /cacerts
|
||||
COPY --chown=ervu:ervu conf/certs /certs
|
||||
|
||||
RUN echo "Installing CA certificates" \
|
||||
&& find /cacerts -regex ".*\.\(cer\|crt\)$" -exec /opt/cprocsp/bin/amd64/certmgr -install -store mCA -file {} \;
|
||||
|
||||
USER ervu
|
||||
|
||||
ARG ESIA_CERT="TESIA GOST 2012 new.cer"
|
||||
ARG ESIA_CA_CRL=b0fd8eb959d9489d5b7b4c143a06cad7952a0744.crl
|
||||
COPY --chown=ervu:ervu conf/${ESIA_CERT} ${ESIA_CERT}
|
||||
COPY --chown=ervu:ervu conf/${ESIA_CA_CRL} ${ESIA_CA_CRL}
|
||||
|
||||
RUN /opt/cprocsp/bin/amd64/certmgr -install -file "${ESIA_CERT}" \
|
||||
&& /opt/cprocsp/bin/amd64/certmgr -install -store uCA -crl -file "${ESIA_CA_CRL}"
|
||||
RUN echo "Installing certificates" \
|
||||
&& find /certs -regex ".*\.\(cer\|crt\)$" -exec /opt/cprocsp/bin/amd64/certmgr -install -file {} \;
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue