This repository has been 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
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from mcode/revert-15-fork-sync
Revert "Fork Auto Sync"
- Loading branch information
Showing
14 changed files
with
80 additions
and
181 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -25,4 +25,3 @@ jobs: | |
context: . | ||
push: true | ||
tags: codexrems/crd:REMSvlatest | ||
|
This file contains 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,12 +1,12 @@ | ||
FROM gradle:6.9.0-jdk11 | ||
# Copy app files to container | ||
COPY --chown=gradle:gradle . /CRD/ | ||
# Set working directory so that all subsequent command runs in this folder | ||
WORKDIR /CRD/server/ | ||
# 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 | ||
# Copy app files to container | ||
COPY --chown=gradle:gradle . /CRD/ | ||
# 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 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,14 +1,14 @@ | ||
# Base image | ||
FROM gradle:6.9.0-jdk11 | ||
# Copy app files to container | ||
COPY --chown=gradle:gradle . /CRD/ | ||
# Set working directory so that all subsequent command runs in this folder | ||
WORKDIR /CRD | ||
# Embed CDS Library | ||
# RUN gradle embedCdsLibrary | ||
RUN gradle build | ||
# Expose port to access the app | ||
EXPOSE 8090 | ||
EXPOSE 8091 | ||
# Command to run our app | ||
CMD ./dockerRunnerDev.sh | ||
FROM gradle:6.9.0-jdk11 | ||
# Copy app files to container | ||
COPY --chown=gradle:gradle . /CRD/ | ||
# Set working directory so that all subsequent command runs in this folder | ||
WORKDIR /CRD | ||
# Embed CDS Library | ||
# RUN gradle embedCdsLibrary | ||
RUN gradle build | ||
# Expose port to access the app | ||
EXPOSE 8090 | ||
EXPOSE 8091 | ||
# Command to run our app | ||
CMD ./dockerRunnerDev.sh |
This file contains 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,28 +1,28 @@ | ||
#!/bin/bash | ||
|
||
# Handle closing application on signal interrupt (ctrl + c) | ||
trap 'kill $CONTINUOUS_BUILD_PID $SERVER_PID; gradle --stop; exit' INT | ||
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 | ||
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..." | ||
# 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 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 in debug mode..." | ||
gradle bootRun -Pdebug 2>&1 | tee ./logs/runner.log ) & SERVER_PID=$! | ||
# Start server process once initial build finishes | ||
( while ! grep -m1 'BUILD SUCCESSFUL' < ./logs/builder.log; do | ||
sleep 1 | ||
done | ||
echo "starting crd server in debug mode..." | ||
gradle bootRun -Pdebug | 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..." | ||
# Handle application background process exiting | ||
wait $CONTINUOUS_BUILD_PID $SERVER_PID | ||
EXIT_CODE=$? | ||
echo "application exited with exit code $EXIT_CODE..." |
This file was deleted.
Oops, something went wrong.
This file contains 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 was deleted.
Oops, something went wrong.
This file contains 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 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 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 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
Oops, something went wrong.