Skip to content

Commit

Permalink
Update Dockerfile for new arango config files (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKissgen authored Mar 20, 2024
1 parent 960d5a4 commit 681802f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ RUN mkdir ../gradleFolder && wget https://services.gradle.org/distributions/grad
&& unzip -d ../gradleFolder ../gradleFolder/gradle-7.3.2-bin.zip && rm -R ../gradleFolder/gradle-7.3.2-bin.zip

# Replace HOST for database configuration (standard & for testing) with the db container name
RUN sed -i "s/^HOST.*/HOST=arangodb/" ocd/arangoDB/config_test.properties
RUN sed -i "s/^HOST.*/HOST=arangodb/" ocd/arangoDB/standard_config.properties
RUN sed -i "s/^HOST.*/HOST=arangodb/" ocd/arangoDB/config.properties


# This is to clean the previously generated agents and avoid error in case WebOCD was built before image creation
Expand All @@ -26,4 +25,4 @@ RUN ../gradleFolder/gradle-7.3.2/bin/gradle testWithoutDB
# Add a loop that waits for arangodb to run, before webocd service starts when start_network.sh is used
RUN sed -i '2 i while ! nc -z arangodb 8529; do sleep 10; done' bin/start_network.sh
RUN chmod +x bin/start_network.sh
CMD ["bin/start_network.sh"]
CMD ["bin/start_network.sh"]

0 comments on commit 681802f

Please sign in to comment.