container tomcat에 app 배포 [Jenkins, GitHub, Maven 이용]

2023. 10. 11. 22:28docker

tomcat container

docker run --name tomcat -p 8083:8080 tomcat:9.0

container 확인

 

 

image 확인

 

 

container 내 tomcat에 아래 명령어를 통해 접속하자.

docker exec -it tomcat /bin/bash

 

 

설치 패키지

apt update

apt -y install nano

 

 

설정

역할 추가

 

 

webapps.dist에서 host-manager/META-INF와 manager /META-INF의 context.xml 수정


 

파일 복사 후 docker를 나가서 'docker restart tomcat' 실행

 

 

tomcat 접속 화면

 

 

jenkins에서 빌드 설정 후 빌드 시작 클릭

 

 

빌드 성공 후 hello-docker 접속 가능


 

hello-docker.war 배포 확인

'docker' 카테고리의 다른 글

Ansible 개요와 설치  (0) 2023.10.16
SCM  (0) 2023.10.11
ubuntu tomcat에 app 배포 [Jenkins, GitHub, Maven 이용]  (0) 2023.10.11
windows tomcat에 app 배포 [Jenkins, GitHub, Maven 이용]  (0) 2023.10.11
Tomcat  (0) 2023.10.11