10 Commits

Author SHA1 Message Date
revlis44
7b47a02d9a ddd
All checks were successful
PR-CI / build-test (pull_request) Successful in 33s
2025-12-09 12:09:19 +09:00
revlis44
7fb2bfdfa4 dd 2025-12-09 12:06:34 +09:00
revlis44
98a8159d9f d 2025-12-09 12:05:22 +09:00
632eaa721e favicon 강제 캐쉬
Some checks failed
Main-Build / build-and-push (push) Failing after 17s
2025-12-09 11:58:08 +09:00
b6ab357703 favicon 강제 캐쉬
Some checks failed
Main-Build / build-and-push (push) Failing after 16s
2025-12-09 11:49:01 +09:00
8fca06fcbc favicon 강제 캐쉬
Some checks failed
Main-Build / build-and-push (push) Failing after 15s
2025-12-09 11:43:21 +09:00
53887b77ed Merge pull request '파비콘 추가' (#14) from feature/favicon into master
Some checks failed
Main-Build / build-and-push (push) Failing after 16s
Reviewed-on: #14
Reviewed-by: saydev <gomdobi@sayinfo.co.kr>
2025-12-09 02:07:25 +00:00
fc1420a0ea Merge pull request 'favicon 변경' (#13) from feature/favicon into master
Some checks failed
Main-Build / build-and-push (push) Failing after 28s
Reviewed-on: #13
Reviewed-by: saydev <gomdobi@sayinfo.co.kr>
2025-12-09 01:55:45 +00:00
80b13f2893 JVM 옵션 정리
Some checks failed
Main-Build / build-and-push (push) Has been cancelled
2025-12-09 10:43:50 +09:00
75b5328f27 무중단 배포용 Jenkinsfile 생성
Some checks failed
Main-Build / build-and-push (push) Has been cancelled
2025-12-09 09:39:26 +09:00
11 changed files with 46 additions and 78 deletions

View File

@@ -8,49 +8,21 @@ jobs:
build-and-push:
runs-on: ubuntu-latest
container:
image: ci-maven-node:1.0
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: "8"
- uses: actions/checkout@v4
- name: Maven Build WAR
run: mvn -B clean package -DskipTests
# ------------------------------
# 🔻 Harbor 관련 기능 임시 비활성화
# ------------------------------
# - name: Docker login to Harbor
# run: |
# echo "${{ secrets.HARBOR_PASSWORD }}" | docker login harbor.sayinfo.co.kr -u ${{ secrets.HARBOR_USERNAME }} --password-stdin
# - name: Build Docker image
# run: |
# docker build -t sayit-helpdesk:latest .
# - name: Tag image for Harbor
# run: |
# docker tag sayit-helpdesk:latest harbor.sayinfo.co.kr/helpdesk/helpdesk-service:latest
# - name: Push image to Harbor
# run: |
# docker push harbor.sayinfo.co.kr/helpdesk/helpdesk-service:latest
# ------------------------------
# 끝 (Harbor 비활성화)
# ------------------------------
- name: Build Docker image (local only, no push)
- name: Login Harbor
run: |
docker build -t sayit-helpdesk:local-test .
echo "${{ secrets.HARBOR_PASSWORD }}" | docker login harbor.sayinfo.co.kr -u ${{ secrets.HARBOR_USERNAME }} --password-stdin
- name: Done
run: echo "Main branch build completed (Harbor push disabled)."
- name: Build Docker image
run: |
docker build -t sayit-helpdesk:latest .
- name: Push to Harbor
run: |
docker tag sayit-helpdesk:latest harbor.sayinfo.co.kr/helpdesk/helpdesk-service:latest
docker push harbor.sayinfo.co.kr/helpdesk/helpdesk-service:latest

View File

@@ -2,33 +2,15 @@ name: PR-CI
on:
pull_request:
types: [opened, synchronize] # PR 생성 + 커밋 push 때만 실행
types: [opened, synchronize]
branches: ["master"]
jobs:
build-test:
runs-on: ubuntu-latest
container:
image: ci-maven-node:1.0
steps:
- name: Checkout source
uses: actions/checkout@v4
- uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: "8"
- name: Cache Maven repo
uses: actions/cache@v4
with:
path: ~/.m2
key: m2-${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
restore-keys: |
m2-${{ runner.os }}-
- name: Maven Build (compile + dependency check)
- name: Maven Build (skip tests)
run: mvn -B clean package -DskipTests

View File

@@ -7,7 +7,7 @@ RUN apk add --no-cache curl && \
https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v${OTEL_VERSION}/opentelemetry-javaagent.jar \
-o /opentelemetry-javaagent.jar
# 2단계: Tomcat 이미지 (Java 8 기준, Java 17 쓸 거면 jdk17-temurin 그대로 사용)
# 2단계: Tomcat 이미지 (Java 8 기준)
FROM tomcat:9.0-jdk8-temurin
ENV TZ=Asia/Seoul \
@@ -15,23 +15,30 @@ ENV TZ=Asia/Seoul \
OTEL_EXPORTER_OTLP_ENDPOINT=http://192.168.100.203:4317 \
OTEL_EXPORTER_OTLP_PROTOCOL=grpc \
OTEL_RESOURCE_ATTRIBUTES="deployment.environment=prod" \
JAVA_TOOL_OPTIONS="-javaagent:/opt/opentelemetry-javaagent.jar"
JAVA_TOOL_OPTIONS="\
-Xms1g \
-Xmx1g \
-XX:+UseG1GC \
-XX:MaxGCPauseMillis=200 \
-XX:+UnlockExperimentalVMOptions \
-XX:+UseStringDeduplication \
-XX:+HeapDumpOnOutOfMemoryError \
-XX:HeapDumpPath=/tmp \
-XX:+DisableExplicitGC \
-javaagent:/opt/opentelemetry-javaagent.jar"
# 타임존 설정
RUN ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime
# OTEL 에이전트 복사
COPY --from=otel /opentelemetry-javaagent.jar /opt/opentelemetry-javaagent.jar
# OTEL 1000:1000 으로 구동 가능 하도록 처리
RUN chown 1000:1000 /opt/opentelemetry-javaagent.jar
# 🔽 기본 웹앱 정리
# 기본 웹앱 정리
RUN rm -rf /usr/local/tomcat/webapps/*
# Maven 빌드된 WAR 복사
# Maven 빌드 결과 파일명에 맞게 수정
COPY target/sayit-helpdesk.war /usr/local/tomcat/webapps/ROOT.war
# TOMCAT 구동전 톰캣은 1000:1000 으로 구동 할 수 있도록 조정
RUN chown -R 1000:1000 /usr/local/tomcat/
EXPOSE 8080

14
Jenkinsfile vendored
View File

@@ -1,9 +1,10 @@
// Jenkinsfile — Kaniko build + K8s deploy (latest only)
// Jenkinsfile — Kaniko build + K8s deploy (빌드번호 태그 사용)
def L = 'kaniko-and-deploy'
def REG = 'harbor.sayinfo.co.kr'
def IMAGE = 'sayit-helpdesk/helpdesk-service' // Harbor 프로젝트/레포 이름에 맞게 유지 또는 수정
def APP_NS = 'sayit-helpdesk' // 실제 K8s 네임스페이스와 일치해야 함
def DEPLOY = 'sayit-helpdesk-service' // 실제 Deployment 이름과 일치해야 함
def IMAGE = 'sayit-helpdesk/helpdesk-service' // Harbor 프로젝트/레포 이름
def APP_NS = 'sayit-helpdesk' // 실제 K8s 네임스페이스
def DEPLOY = 'sayit-helpdesk-service' // 실제 Deployment 이름
def IMAGE_TAG = "${env.BUILD_NUMBER}"
podTemplate(
label: L,
@@ -104,7 +105,7 @@ spec:
/kaniko/executor \\
--context=. \\
--dockerfile=Dockerfile \\
--destination=${REG}/${IMAGE}:latest \\
--destination=${REG}/${IMAGE}:${IMAGE_TAG} \\
--snapshot-mode=redo \\
--skip-tls-verify \\
--cache=true \\
@@ -117,8 +118,7 @@ spec:
container('kubectl') {
sh """
set -eux
kubectl -n ${APP_NS} set image deploy/${DEPLOY} ${DEPLOY}=${REG}/${IMAGE}:latest
kubectl -n ${APP_NS} rollout restart deploy/${DEPLOY}
kubectl -n ${APP_NS} set image deploy/${DEPLOY} ${DEPLOY}=${REG}/${IMAGE}:${IMAGE_TAG}
kubectl -n ${APP_NS} rollout status deploy/${DEPLOY} --timeout=300s
kubectl -n ${APP_NS} get deploy ${DEPLOY} -o wide

View File

@@ -17,6 +17,7 @@
<script src="js/common/login.js"></script>
<base target="_self" />
<title><%=MainGlobals.SITE_TITLE%></title>
<link rel="icon" type="image/x-icon" href="${pageContext.request.contextPath}/Favicon.ico?v=20251209" />
<style>
.login_wrap_body{ background:url(${pageContext.request.contextPath}/images/admin/login_bg.gif) repeat left top; font-family:"맑은 고딕",Malgun Gothic,AppleGothic,sans-serif,"돋움", Dotum; }
.login_wrap{display:block; height:100%; left:0; position:fixed; top:0; width:100%; z-index:10000;}

View File

@@ -12,6 +12,7 @@
<meta name="keywords" content="" />
<base target="_self" />
<title><%=MainGlobals.SITE_TITLE%></title>
<link rel="icon" type="image/x-icon" href="${pageContext.request.contextPath}/Favicon.ico?v=20251209" />
<script type="text/javascript">var G_CONTEXT_PATH = '${pageContext.request.contextPath}';</script>
<script type="text/javascript" src="${pageContext.request.contextPath}/dwr/engine.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/dwr/util.js"></script>

View File

@@ -22,6 +22,7 @@ if(UserHelper.isAuthenticated()) {
<meta name="keywords" content="" />
<base target="_self" />
<title><%=MainGlobals.SITE_TITLE%></title>
<link rel="icon" type="image/x-icon" href="${pageContext.request.contextPath}/Favicon.ico?v=20251209" />
<script type="text/javascript">var G_CONTEXT_PATH = '${pageContext.request.contextPath}';</script>
<script type="text/javascript" src="${pageContext.request.contextPath}/dwr/engine.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/dwr/util.js"></script>

View File

@@ -23,6 +23,7 @@ if(UserHelper.isAuthenticated()) {
<meta name="keywords" content="" />
<base target="_self" />
<title><%=MainGlobals.SITE_TITLE%></title>
<link rel="icon" type="image/x-icon" href="${pageContext.request.contextPath}/Favicon.ico?v=20251209" />
<script type="text/javascript">var G_CONTEXT_PATH = '${pageContext.request.contextPath}';</script>
<script type="text/javascript" src="${pageContext.request.contextPath}/dwr/engine.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/dwr/util.js"></script>

View File

@@ -22,6 +22,7 @@ if(UserHelper.isAuthenticated()) {
<meta name="keywords" content="" />
<base target="_self" />
<title><%=MainGlobals.SITE_TITLE%></title>
<link rel="icon" type="image/x-icon" href="${pageContext.request.contextPath}/Favicon.ico?v=20251209" />
<script type="text/javascript">var G_CONTEXT_PATH = '${pageContext.request.contextPath}';</script>
<script type="text/javascript" src="${pageContext.request.contextPath}/dwr/engine.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/dwr/util.js"></script>

View File

@@ -13,6 +13,7 @@
<meta name="keywords" content="noframe" />
<base target="_self" />
<title><%=MainGlobals.SITE_TITLE%></title>
<link rel="icon" type="image/x-icon" href="${pageContext.request.contextPath}/Favicon.ico?v=20251209" />
<script type="text/javascript">var G_CONTEXT_PATH = "${pageContext.request.contextPath}";</script>
<script type="text/javascript" src="${pageContext.request.contextPath}/dwr/engine.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/dwr/util.js"></script>

View File

@@ -22,6 +22,7 @@ if(UserHelper.isAuthenticated()) {
<meta name="keywords" content="" />
<base target="_self" />
<title><%=MainGlobals.SITE_TITLE%></title>
<link rel="icon" type="image/x-icon" href="${pageContext.request.contextPath}/Favicon.ico?v=20251209" />
<script type="text/javascript">var G_CONTEXT_PATH = '${pageContext.request.contextPath}';</script>
<script type="text/javascript" src="${pageContext.request.contextPath}/dwr/engine.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/dwr/util.js"></script>