Skip to content

Commit

Permalink
feat: Jenkins CI/CD Pipeline prod용 파일 작성 완료 (#477)
Browse files Browse the repository at this point in the history
Co-authored-by: 한관희 <[email protected]>
  • Loading branch information
mingmingmon and limehee authored Aug 18, 2024
1 parent ca9c757 commit cdc2d97
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 1 deletion.
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/clab.jar /clab.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", "/clab.jar"]
File renamed without changes.
2 changes: 1 addition & 1 deletion jenkins/config.yml → jenkins/prod/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ admin:
username: "admin" # Backend admin username
password: "admin_password" # Backend admin password
docker:
dockerfile-path: "/jenkins/Dockerfile" # Path to the Dockerfile
dockerfile-path: "/jenkins/prod/Dockerfile" # Path to the Dockerfile
nginx-container-name: "nginx" # Nginx container name
postgresql-container-name: "postgresql" # PostgreSQL container name
File renamed without changes.
File renamed without changes.
50 changes: 50 additions & 0 deletions jenkins/stage/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
jenkins-domain: "https://jenkins.example.com" # Jenkins domain

slack:
webhook-url: "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX" # Slack webhook URL
color-success: "#F2C744" # Slack message color for success
color-failure: "#8D1E0E" # Slack message color for failure

postgresql:
user: "postgres_user" # PostgreSQL username
password: "postgres_password" # PostgreSQL password
backup-dir: "/var/backups/postgresql" # Directory for PostgreSQL backups

dockerhub:
repo: "yourdockerhub/repository" # Docker Hub repository name
user: "dockerhub_user" # Docker Hub username
password: "dockerhub_password" # Docker Hub password

external-server:
config-path: "/path/to/external/config" # Path for external server configuration
cloud-path: "/path/to/external/cloud" # Path for external server cloud storage
logs-path: "/path/to/external/logs" # Path for external server logs

internal-server:
config-path: "/path/to/internal/config" # Path for internal server configuration
cloud-path: "/path/to/internal/cloud" # Path for internal server cloud storage
logs-path: "/path/to/internal/logs" # Path for internal server logs

containers:
blue: "blue-container" # Blue-Green deployment: Blue container name
green: "green-container" # Blue-Green deployment: Green container name
blue-url: "http://blue-container:8080" # URL for the Blue container environment
green-url: "http://green-container:8080" # URL for the Green container environment
image-name: "application-image" # Docker image name for the application

networks:
application: "application-network" # Docker network for the application
monitoring: "monitoring-network" # Docker network for monitoring

spring:
profile: "default" # Spring profile setting
port-a: 8080 # Application port A
port-b: 8081 # Application port B

admin:
username: "admin" # Backend admin username
password: "admin_password" # Backend admin password
docker:
dockerfile-path: "/jenkins/stage/Dockerfile" # Path to the Dockerfile
nginx-container-name: "nginx" # Nginx container name
postgresql-container-name: "postgresql" # PostgreSQL container name

0 comments on commit cdc2d97

Please sign in to comment.