Commit b86d6c4a authored by Daniel Seybold's avatar Daniel Seybold

updated readme

parent f0e66631
Pipeline #40560 passed with stage
in 10 minutes and 30 seconds
......@@ -26,6 +26,8 @@ The API enables the execution of different DBMS workloads based on a JSON based
#### From Source:
*NOT MAINTAINED ANYMORE*
1. Use an Ubtunu 16.04 image
2. Run the following commands as sudo:
......@@ -39,8 +41,11 @@ sudo mvn jetty:run
#### From Docker Registry:
1. provide the INFLUXDB_URL for the InfluxDB, e.g. 1.2.3.4:8086
2. provide the PUBLIC_IP of the host for using the SwaggerUI
```dockerfile
docker run -d -p 8181:8181 -e INFLUXDB_URL=IP:PORT -v /tmp:/opt/results -v /tmp:/var/log omi-registry.e-technik.uni-ulm.de/mowgli/workload-api:latest
docker run -d -p 8181:8181 -e PUBLIC_IP=localhost -e INFLUXDB_URL=IP:PORT -v /tmp:/opt/results -v /tmp:/var/log omi-registry.e-technik.uni-ulm.de/mowgli/workload-api:latest
```
......
......@@ -13,7 +13,7 @@ GLOBAL_VAR="xyz"
# validate if all container variables are set
##############################################################################
function validate(){
vars="INFLUXDB_URL PUBLIC_ADDRESS"
vars="INFLUXDB_URL PUBLIC_IP"
for var in $vars; do
if [[ $(env | awk -F "=" '{print $1}' | grep "^$var$") != "$var" ]]; then
echo "$var not set but required."
......@@ -33,7 +33,7 @@ function writeConfigOptions(){
echo "write config options"
export INFLUXDB_URL=$INFLUXDB_URL
export PUBLIC_ADDRESS=$PUBLIC_ADDRESS
export PUBLIC_ADDRESS=$PUBLIC_IP
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment