Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Dockerfile for new arango config files #120

Merged
merged 1 commit into from
Mar 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"]
Loading