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

Use correct tag for building, add launch container script

parent b9aa44f1
Branches
Tags 0.7.0
No related merge requests found
...@@ -12,7 +12,7 @@ if test -e "$APACHE_SSL_CERT_KEY";then ...@@ -12,7 +12,7 @@ if test -e "$APACHE_SSL_CERT_KEY";then
cp $APACHE_SSL_CERT_KEY ./servercerts/ssl-cert-eventsapi.key cp $APACHE_SSL_CERT_KEY ./servercerts/ssl-cert-eventsapi.key
fi fi
docker build -t karbach/eventsapi:v1 . docker build -t karbach/restapi:v1 .
#Clear automatically created folders #Clear automatically created folders
rm -rf ./servercerts rm -rf ./servercerts
#!/bin/bash
docker run -d -p 443:443 -p 80:80 karbach/restapi:v1
...@@ -5,3 +5,9 @@ docker run -d -p 443:443 -p 80:80 karbach/restapi:v1 ...@@ -5,3 +5,9 @@ docker run -d -p 443:443 -p 80:80 karbach/restapi:v1
docker exec -ti <container-id> /bin/bash docker exec -ti <container-id> /bin/bash
# Add volume for data backup # Add volume for data backup
docker run -d -p 8081:80 -p 4433:443 -v /path/to/folder/on/host:/var/www/html/EventsAPI/data karbach/restapi:v1 docker run -d -p 8081:80 -p 4433:443 -v /path/to/folder/on/host:/var/www/html/EventsAPI/data karbach/restapi:v1
# Build with certificates:
- create folder ./configs/certificates
- add the files ./configs/certificates/ssl-cert-eventsapi.pem and ./configs/certificates/ssl-cert-eventsapi.key as certificate and key file
- go into EventsAPI root folder and run ./build_docker.sh
- launch the container with ./launch_docker.sh
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment