Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
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
12 changes: 12 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.git
target
build
bin
logs
.gradle
server/.gradle
server/bin
server/build
server/ValueSetCache
operations/build
resources/build
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ fabric.properties

# Log file
*.log
logs/

# BlueJ files
*.ctxt
Expand Down Expand Up @@ -131,7 +132,6 @@ gradle-app.setting

# Settings, classpath and bin directories
.settings/
.vscode/
.classpath
*/.settings
*/.classpath
Expand All @@ -148,7 +148,6 @@ gradle-app.setting
.classpath
.settings/
bin/
.vscode/

# ignore the embeded CDS Library
CDS-Library
Expand Down
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Debug CRD (Local + Docker)", // gradle bootRun -Pdebug,
"request": "attach",
"hostName": "localhost",
"port": 8091,
}
]
}
1 change: 1 addition & 0 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ WORKDIR /CRD
RUN gradle build
# Expose port to access the app
EXPOSE 8090
EXPOSE 8091
# Command to run our app
CMD ./dockerRunnerDev.sh
27 changes: 0 additions & 27 deletions dockerRunner.sh

This file was deleted.

4 changes: 2 additions & 2 deletions dockerRunnerDev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ gradle build --continuous 2>&1 | tee ./logs/builder.log & CONTINUOUS_BUILD_PID=$
( 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=$!
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
Expand Down
2 changes: 0 additions & 2 deletions hooks/post_checkout

This file was deleted.

5 changes: 5 additions & 0 deletions server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ processResources {
}
}

bootRun {
if (project.hasProperty('debug')) {
jvmArgs=["-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=0.0.0.0:8091"]
}
}

dependencies {
developmentOnly("org.springframework.boot:spring-boot-devtools")
Expand Down