현재 버전

okdevtv git jenkins aws springboot docker

Jenkins + Docker + AWS EC2 + Spring Boot


Jenkins + Docker + AWS EC2

  • 🪄 배포 자동화 영상
  • https://youtube.com/playlist?list=PLDMPhWe3Cfpbgb2AepypBzWuuKy7-tw6q
  • Create EC2 instance 4G RAM
  • Install Jenkins with openjdk, docker, git
  • Create private and public keys between servers
  • Create two EC2 instances 1G RAM
  • Install docker and run daemon for each
  • Install Publish over SSH plugin
  • Register app1, app2 in jenkins global setting
  • Create jenkins item
  • Run
  • Update code and deploy
jenkins docker
FROM openjdk:11-jre-slim-buster
ARG JAR_FILE=build/libs/*.jar
COPY ${JAR_FILE} app.jar
ENTRYPOINT ["java","-jar","/app.jar"]
sudo docker build -t kenu/sb-kenu .
sudo docker stop `sudo docker ps -q`
sudo docker rmi -f kenu/sb-kenu
sudo docker run -d -p 8080:8080 kenu/sb-kenu


수정 이력

2021-02-16 10:20:13 에 아래 내용에서 변경 됨 #2

okdevtv logoOKdevTV

Jenkins + Docker + AWS EC2

  • 🪄 배포 자동화 영상
  • https://youtube.com/playlist?list=PLDMPhWe3Cfpbgb2AepypBzWuuKy7-tw6q
  • Create EC2 instance 4G RAM
  • Install Jenkins with openjdk, docker, git
  • Create private and public keys between servers
  • Create two EC2 instances 1G RAM
  • Install docker and run daemon for each
  • Install Publish over SSH plugin
  • Register app1, app2 in jenkins global setting
  • Create jenkins item
  • Run
  • Update code and deploy
jenkins docker
FROM openjdk:11-jre-slim-buster
ARG JAR_FILE=build/libs/*.jar
COPY ${JAR_FILE} app.jar
ENTRYPOINT ["java","-jar","/app.jar"]
sudo docker build -t kenu/sb-kenu .
sudo docker stop `sudo docker ps -q`
sudo docker rmi -f kenu/sb-kenu
sudo docker run -d -p 8080:8080 kenu/sb-kenu

2021-02-16 10:18:46 에 아래 내용에서 변경 됨 #1

okdevtv logoOKdevTV

Jenkins + Docker + AWS EC2

  • 🪄 배포 자동화 영상
  • https://youtube.com/playlist?list=PLDMPhWe3Cfpbgb2AepypBzWuuKy7-tw6q
  • Create EC2 instance 4G RAM
  • Install Jenkins with openjdk, docker, git
  • Create private and public keys between servers
  • Create two EC2 instances 1G RAM
  • Install docker and run daemon for each
  • Install Publish over SSH plugin
  • Register app1, app2 in jenkins global setting
  • Create jenkins item
  • Run
  • Update code and deploy
jenkins docker
FROM openjdk:11-jre-slim-buster
ARG JAR_FILE=build/libs/*.jar
COPY ${JAR_FILE} app.jar
ENTRYPOINT ["java","-jar","/app.jar"]
sudo docker build -t kenu/sb-kenu .
sudo docker stop `sudo docker ps -q`
sudo docker rmi -f kenu/sb-kenu
sudo docker run -d -p 8080:8080 kenu/sb-kenu