Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
Clivern committed Aug 19, 2024
1 parent 768e1e9 commit 7567941
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
FROM gradle:8.10-jdk22 as builder
FROM gradle:8.10-jdk17 as builder

RUN apt-get update -y && apt-get upgrade -y

COPY --chown=gradle:gradle . /home/gradle/src

WORKDIR /home/gradle/src

RUN ./gradlew build --info
RUN ./gradlew clean build

FROM openjdk:22-jdk-slim

Expand All @@ -15,7 +17,7 @@ RUN mkdir -p /app/storage
VOLUME /app/storage

COPY --from=builder /home/gradle/src/build/libs/osaka-0.0.1.jar /app/releases/osaka-0.0.1.jar
COPY --from=builder /home/gradle/src/main/resources/application.properties /app/configs/application.properties
COPY --from=builder /home/gradle/src/src/main/resources/application.properties /app/configs/application.properties

EXPOSE 8080

Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/com/clivern/osaka/OsakaApplication.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@

package com.clivern.osaka

import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.boot.autoconfigure.SpringBootApplication

@SpringBootApplication
class OsakaApplication
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@

package com.clivern.osaka.controller

import org.springframework.http.ResponseEntity
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RestController
import org.springframework.http.ResponseEntity

@RestController
class HealthController {

data class HealthStatus (
val status: String
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@

package com.clivern.osaka.controller

import org.springframework.http.ResponseEntity
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RestController
import org.springframework.http.ResponseEntity

@RestController
class HomeController {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@

package com.clivern.osaka.controller

import org.springframework.http.ResponseEntity
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RestController
import org.springframework.http.ResponseEntity

@RestController
class ReadyController {
Expand Down

0 comments on commit 7567941

Please sign in to comment.