Skip to content

Commit

Permalink
Avoids failing on creating directory tree
Browse files Browse the repository at this point in the history
Issue Omnition#35 fix

Avoids failing on creating directories tree by validating if the folders already exists before creating.
  • Loading branch information
eduardoroliveira authored Jan 25, 2021
1 parent 07c81ea commit e7c7625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
FROM openjdk:8-jre-alpine

# Define working directory.
RUN mkdir /opt /opt/omnition /opt/omnition/topologies
RUN if [ ! -e "/opt/omnition/topologies" ]; then mkdir -p "/opt/omnition/topologies"; fi;
COPY target/SyntheticLoadGenerator-1.0-SNAPSHOT-jar-with-dependencies.jar /opt/omnition/synthetic-load-generator.jar
COPY topologies/* /opt/omnition/topologies/
COPY start.sh /opt/omnition/
Expand Down

0 comments on commit e7c7625

Please sign in to comment.