Skip to content

Commit

Permalink
expose PANORAMA_VAR_HOME
Browse files Browse the repository at this point in the history
  • Loading branch information
rammpeter committed Aug 24, 2017
1 parent a04e9bc commit d3d33b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ MAINTAINER Peter@ramm-oberhermsdorf.de

WORKDIR /opt/panorama
COPY Panorama.war run_Panorama_docker.sh /opt/panorama/
RUN mkdir /var/opt/panorama
#RUN echo "Europe/Berlin" > /etc/timezone; dpkg-reconfigure -f noninteractive tzdata
EXPOSE 8080
CMD /opt/panorama/run_Panorama_docker.sh
Expand Down
6 changes: 4 additions & 2 deletions run_Panorama_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ export PANORAMA_HOME=$PWD
export HTTP_PORT=8080

# Writable directory for work area, usage-log and client_info-store, used by Panorama internally
export PANORAMA_VAR_HOME=$PANORAMA_HOME
export PANORAMA_VAR_HOME=/var/opt/panorama

# Remove all possible old work areas
rm -rf $PANORAMA_VAR_HOME/work

echo "Starting Panorama at $PANORAMA_HOME, variable data is stored at $PANORAMA_VAR_HOME"

# Ensure existence of work dir
mkdir -p $PANORAMA_VAR_HOME/work

Expand All @@ -36,7 +38,7 @@ java -Xmx${MAX_JAVA_HEAP_SPACE_MB}m \
-XX:ReservedCodeCacheSize=80M \
-Djruby.compile.fastest=true \
-Djruby.compile.threadless=true \
-Djava.io.tmpdir=./work \
-Djava.io.tmpdir=$PANORAMA_VAR_HOME/work \
-Dwarbler.port=$HTTP_PORT \
-jar $PANORAMA_HOME/Panorama.war

Expand Down

0 comments on commit d3d33b2

Please sign in to comment.