Skip to content

Commit

Permalink
Merge pull request #16 from kgu-clab/environment/#15
Browse files Browse the repository at this point in the history
environment: CI/CD 자동화 설정 완료
  • Loading branch information
mingmingmon authored Sep 3, 2024
2 parents 94612d4 + dcf8a61 commit e5ffd8f
Show file tree
Hide file tree
Showing 7 changed files with 993 additions and 13 deletions.
6 changes: 6 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ dependencies {
implementation 'com.google.code.gson:gson:2.11.0' // JSON 라이브러리
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.5.0'

// Monitoring
implementation 'org.springframework.boot:spring-boot-starter-actuator' // Spring Boot Actuator
implementation 'io.micrometer:micrometer-registry-prometheus' // Prometheus
implementation 'ch.qos.logback:logback-classic:1.5.6' // Logback
implementation 'ch.qos.logback:logback-core:1.5.6' // Logback

// DB
implementation 'com.mysql:mysql-connector-j:9.0.0' // MySQL JDBC Driver
implementation 'org.springframework.boot:spring-boot-starter-data-jpa' // Spring Data JPA
Expand Down
12 changes: 12 additions & 0 deletions jenkins/prod/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Use the official OpenJDK 21 image from the Docker Hub
FROM openjdk:21-jdk

# Expose port 8080 to the outside world
EXPOSE 8080

# Copy the JAR file into the container
COPY build/libs/time.jar /time.jar

# Set the default active profile to 'stage'. Modify the 'spring.profiles.active' property to match your environment.
# For example, use '-Dspring.profiles.active=production' for production environment.
ENTRYPOINT ["java", "-jar", "-Dspring.profiles.active=prod", "/time.jar"]
Loading

0 comments on commit e5ffd8f

Please sign in to comment.