gotls13-p1: make it possible to use certificates in test server

This commit is contained in:
Kris 2018-08-19 19:58:51 +00:00
parent 04625f3317
commit 2ce65e6682
5 changed files with 13 additions and 5 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
cert/
certs/

View File

@ -2,7 +2,7 @@ FROM buildpack-deps
EXPOSE 443
#ADD cert/privkey.pem /
#ADD cert/fullchain.pem /
ADD certs/privkey.pem /
ADD certs/fullchain.pem /
ADD bin/server /
CMD [ "/server", "-b", "0.0.0.0:443" ]
CMD [ "/server", "-b", "0.0.0.0:443", "-cert", "/privkey.pem:/fullchain.pem" ]

View File

@ -1,8 +1,15 @@
NAME=gotls13-p1
build:
mkdir -p certs
cp ../../cert/fullchain.pem certs/
cp ../../cert/privkey.pem certs/
docker build -t ${NAME} .
run:
docker run --detach --restart always --name ${NAME} -p 50600:443 ${NAME}
restart:
docker restart ${NAME}
docker stop ${NAME}
docker rm ${NAME}
docker run --detach --restart always --name ${NAME} -p 50600:443 ${NAME}

Binary file not shown.

View File

@ -5,4 +5,4 @@ EXPOSE 443
#ADD cert/privkey.pem /
#ADD cert/fullchain.pem /
ADD bin/server /
CMD [ "/server", "-b", "0.0.0.0:443", "-enable_sidh" ]
CMD [ "/server", "-b", "0.0.0.0:443", "-qr" ]