-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Jenkins CI/CD Pipeline prod용 파일 작성 완료 (#477)
Co-authored-by: 한관희 <[email protected]>
- Loading branch information
1 parent
ca9c757
commit cdc2d97
Showing
6 changed files
with
63 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |