This repository was archived by the owner on Jul 31, 2023. It is now read-only.
forked from HL7-DaVinci/CRD
-
Notifications
You must be signed in to change notification settings - Fork 1
Docker Updates #5
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
1b4c786
Merge branch 'master' into dockerDev
c0364f0
updated production dockerfile to use jdk 11 and set post checkout hoo…
fc7a038
production docker and log/db location changes
c7084c2
watch CDS-Library as resource files
smalho01 0ca42be
Merge branch 'master' into dockerDev
smalho01 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,12 @@ | ||
| FROM gradle:jdk8-alpine | ||
| EXPOSE 8090/tcp | ||
| FROM gradle:6.9.0-jdk11 | ||
| # Copy app files to container | ||
| COPY --chown=gradle:gradle . /CRD/ | ||
| WORKDIR /CRD/server/ | ||
| RUN ../gradlew build | ||
| CMD ["../gradlew", "bootRun"] | ||
| # Set working directory so that all subsequent command runs in this folder | ||
| WORKDIR /CRD | ||
| # Embed CDS Library | ||
| # RUN gradle embedCdsLibrary | ||
| # Expose port to access the app | ||
| RUN gradle build | ||
| EXPOSE 8090 | ||
| # Command to run our app | ||
| CMD gradle bootRun |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| #!/bin/bash | ||
|
|
||
| # Handle closing application on signal interrupt (ctrl + c) | ||
| trap 'kill $CONTINUOUS_BUILD_PID $SERVER_PID; gradle --stop; exit' INT | ||
|
|
||
| mkdir logs | ||
| # Reset log file content for new application boot | ||
| echo "*** Logs for 'gradle installBootDist --continuous' ***" > ./logs/builder.log | ||
| echo "*** Logs for 'gradle bootRun' ***" > ./logs/runner.log | ||
|
|
||
| # Print that the application is starting in watch mode | ||
| echo "starting application in watch mode..." | ||
|
|
||
| # Start the continious build listener process | ||
| echo "starting continuous build listener..." | ||
| gradle build --continuous 2>&1 | tee ./logs/builder.log & CONTINUOUS_BUILD_PID=$! | ||
|
|
||
| # Start server process once initial build finishes | ||
| ( while ! grep -m1 'BUILD SUCCESSFUL' < ./logs/builder.log; do | ||
| sleep 1 | ||
| done | ||
| echo "starting crd server..." | ||
| gradle bootRun 2>&1 | tee ./logs/runner.log ) & SERVER_PID=$! | ||
|
|
||
| # Handle application background process exiting | ||
| wait $CONTINUOUS_BUILD_PID $SERVER_PID | ||
| EXIT_CODE=$? | ||
| echo "application exited with exit code $EXIT_CODE..." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| #!/bin/bash | ||
| git clone https://github.com/HL7-DaVinci/CDS-Library.git server/CDS-Library | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we change this line to use
CDS-Libraryin themcodespace?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, the hooks/post_checkout file is for the DRLS CI/CD pipeline, so we can ignore it since we won't be using that.