Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

environment: CI/CD 자동화 설정 완료 #16

Merged
merged 16 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
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
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