Ajay Yadav commited on
Commit
ffd1e41
·
1 Parent(s): 9373c61

Initial deployment of da-policyengine-dev

Browse files
Files changed (3) hide show
  1. Dockerfile +4 -5
  2. README.md +2 -2
  3. gradle.properties +33 -0
Dockerfile CHANGED
@@ -11,11 +11,10 @@ RUN apt-get update && apt-get install -y \
11
  # Copy application files
12
  COPY . .
13
 
14
- # Make gradlew executable
15
- RUN chmod +x ./gradlew
16
-
17
- # Build application
18
- RUN ./gradlew build -x test
19
 
20
  # Expose port
21
  EXPOSE 8080
 
11
  # Copy application files
12
  COPY . .
13
 
14
+ # Build application (if build.gradle.kts exists)
15
+ RUN if [ -f "build.gradle.kts" ]; then \
16
+ ./gradlew build -x test; \
17
+ fi
 
18
 
19
  # Expose port
20
  EXPOSE 8080
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: da-policyengine (dev)
3
  emoji: 🔧
4
  colorFrom: blue
5
  colorTo: green
@@ -35,4 +35,4 @@ Once deployed, API documentation will be available at:
35
 
36
  This service is automatically deployed via the DALab CI/CD pipeline.
37
 
38
- Last updated: Tue 06/17/2025 9:36:28.45
 
1
  ---
2
+ title: da-policyengine dev
3
  emoji: 🔧
4
  colorFrom: blue
5
  colorTo: green
 
35
 
36
  This service is automatically deployed via the DALab CI/CD pipeline.
37
 
38
+ Last updated: Tue 06/17/2025 10:37:54.82
gradle.properties ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Gradle Performance Configuration for DALab Microservices
2
+ # Multi-threading and parallel execution settings
3
+
4
+ # Enable parallel execution of tasks across projects
5
+ org.gradle.parallel=true
6
+
7
+ # Set number of parallel workers (4 parallel executors as requested)
8
+ org.gradle.workers.max=4
9
+
10
+ # Enable configuration caching to speed up subsequent builds
11
+ org.gradle.configuration-cache=true
12
+
13
+ # Enable build caching for faster incremental builds
14
+ org.gradle.caching=true
15
+
16
+ # Increase JVM heap size for Gradle daemon (adjust based on system memory)
17
+ org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=512m -XX:+UseG1GC
18
+
19
+ # Enable Gradle daemon for faster builds
20
+ org.gradle.daemon=true
21
+
22
+ # Configure file watching for continuous builds
23
+ org.gradle.vfs.watch=true
24
+
25
+ # Optimize Kotlin compilation (for da-policyengine)
26
+ kotlin.incremental=true
27
+ kotlin.parallel.tasks.in.project=true
28
+
29
+ # Spring Boot specific optimizations
30
+ spring.output.ansi.enabled=always
31
+
32
+ # Build scan acceptance for performance insights (optional)
33
+ # gradle.build-scan.upload-in-background=true