Commit c9fbf9b2 authored by Daniel Seybold's avatar Daniel Seybold

moved creation of result folder to entrypoint to fix issue with mounting host volume

parent 0f9d5e3c
Pipeline #46307 passed with stage
in 9 minutes
......@@ -59,8 +59,6 @@ RUN chmod +x loadgen.sh
RUN mkdir /opt/telegraf ; cd /opt/telegraf ; wget https://dl.influxdata.com/telegraf/releases/telegraf_1.7.0-1_amd64.deb
RUN wget https://omi-gitlab.e-technik.uni-ulm.de/cloudiator/catalogue-scripts/raw/master/scripts/monitoring/telegraf/telegraf.conf -O /opt/telegraf/telegraf.conf
RUN mkdir -p /opt/results/YCSB/
RUN mkdir -p /opt/results/TPCC/
# expose ports
EXPOSE 8181
......
......@@ -38,8 +38,7 @@ function writeConfigOptions(){
}
function configureSwaggerUI(){
PUBLIC_ADDRESS=$(dig +short myip.opendns.com @resolver1.opendns.com)
sed -i "s/localhost:8181/$PUBLIC_ADDRESS:8181/g" /opt/workload-api/src/main/webapp/index.html
sed -i "s/localhost:8181/$PUBLIC_ADDRESS:8181/g" /opt/workload-api/src/main/webapp/WEB-INF/web.xml
......@@ -85,9 +84,14 @@ function init(){
# configure Swagger UI
configureSwaggerUI
# prepare result folder here and not in Dockerfile as host /tmp will be mounted for /opt/results
mkdir -p /opt/results/YCSB/
mkdir -p /opt/results/TPCC/
# start telegraf service
startTelegraf
## post-config initialization
......
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