Skip to content
Snippets Groups Projects
Commit e06adfad authored by Carsten Karbach's avatar Carsten Karbach
Browse files

Allow to add client certificate during docker build

parent 4841ea74
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,8 @@
APACHE_SSL_CERT=./configs/certificates/ssl-cert-eventsapi.pem
APACHE_SSL_CERT_KEY=./configs/certificates/ssl-cert-eventsapi.key
CLIENT_CERT_NAME=docker
# Create local relative folder for certificates
mkdir ./servercerts
if test -e "$APACHE_SSL_CERT";then
......@@ -12,6 +14,8 @@ if test -e "$APACHE_SSL_CERT_KEY";then
cp $APACHE_SSL_CERT_KEY ./servercerts/ssl-cert-eventsapi.key
fi
cp ./configs/certificates/"$CLIENT_CERT_NAME"* ./servercerts/
cp ~/workspace/dockerenv/*.rpm rpms
docker build -t karbach/restapi:v1 .
......
#!/bin/bash
# docker run -d -p 443:443 -p 80:80 -v /home/jards/workspace/EventsAPI/dev:/var/www/html/EventsAPI -v /home/jards/workspace/EventsAPI/otherconfigs/ssh:/root/.ssh karbach/restapi:v1
docker run -d -p 443:443 -p 80:80 karbach/restapi:v1
\ No newline at end of file
......@@ -48,6 +48,7 @@ find $FOLDER -type f -name '*.shell' -exec chmod 711 {} +
find $FOLDER -type f -name '*.phar' -exec chmod 711 {} +
find $FOLDER -type f -name 'pre-commit' -exec chmod 711 {} +
chmod 777 './data'
chmod 755 './rest/events'
COMPOSER_SUCCESS=1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment