CICD
-
AWS에서 Elastic Kubernetes Service (EKS) 생성하기CICD 2022. 2. 24. 20:10
EKS Cluster에서 Master Node Identity and Access Management (IAM) Role 생성 EKS Worker Node IAM Role 생성 EKS Cluster 생성 (K8S Master Node 생성) 생성된 Master Node 에 Worker Node 붙이기 Kubectl로 생성된 클러스터에 접속하기 위한 세팅 1. EKS Cluster에서 Master Node Identity and Access Management (IAM) Role 생성 2. EKS Worker Node IAM Role 생성 AmazonEKS_CNI_Policy AmazonEKSWorkerNodePolicy AmazonEC2ContainerRegistryReadOnly 3. EKS Clust..
-
[Jenkins] React Build Error: Treating warnings as errors because process.env.CI = true.CICD 2022. 2. 10. 16:05
Jenkins에서 yarn build로 React Project를 빌드하면 다음과 같은 에러가 발생한다. Treating warnings as errors because process.env.CI = true. Most CI servers set it automatically. Failed to compile. 이 에러는 React project 내에 lint 에러가 존재 할 때 compile을 fail 시켜 버리기 때문이다. 코드 자채에는 문제가 없으므로 빌드가 되면 빌드 결과물에는 문제가 없다. 해결 방법 Jenkins logs (Fig 1.)에 나와 있듯이 CI=true가 default로 설정 되어 있기 때문에 CI=false로 해주어야 React project 내에 lint error를 무시하고 ..
-
[Jenkins] Publish Over SSH plugin install (Deprecated)CICD 2022. 2. 10. 15:52
Publish Over SSH 플러그인을 기존에 사용 중이 었으면 이미 설치가 되어 있기 때문에 문제가 없지만 Jenkins를 새로 설치 한 후에 Publish Over SSH 플러그인을 설치하려면 Jenkins Plugin Manager에서 설치가 불가능 하다. 이 플러그인은 Deprecated 되어 있기 때문에 검색이 되지 않는다. 따라서 설치 하기 위해서는 "publish-over-ssh.hpi" 파일을 다운로드 받아서 Jenkins에서 수동으로 설치해 주어야 한다. 1. publish-ver-ssh.hpi 다운로드 https://archives.jenkins-ci.org/plugins/publish-over-ssh/latest/ 이 url에서 파일을 다운로드 받는다. 2. Jenkins Plugi..
-
[Jenkins] Docker Build Error: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?CICD 2022. 2. 10. 15:38
Jenkin에서 Docker plugin을 제공해 주지만 Execute Shell에서 docker build 명령어로 직접 빌드 하려면 Jenkins Docker image 안에 Docker를 설치 해야 하고 Docker image 안에서 Docker를 빌드하면 다음과 같은 에러가 난다. Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? 저 에러를 구글에서 검색하면 docker 서비스를 재사작 하라고 한다. ..
-
[Jenkins] Jenkins에서 React 빌드 에러: gyp verb check python checking for Python executable "python" in the PATHCICD 2022. 2. 10. 15:04
Jenkins로 리액트 프로젝트를 빌드 하는데 다음과 같은 오류가 발생하였다. gyp verb check python checking for Python executable "python2" in the PATH gyp verb `which` failed Error: not found: python2 gyp verb check python checking for Python executable "python" in the PATH gyp verb `which` failed Error: not found: python python과 python2.7 을 모두 설치 해 준 후에는 다음과 같은 에러가 발생 하였다. gyp ERR! build error gyp ERR! stack Error: `make` fai..
-
[Jenkins] gitlab authentication error: fatal: Authentication failed for http://~CICD 2022. 2. 10. 14:54
Jenkins에서 Gitlab repo를 pull 받아와서 build 하려고 하는데 authentication error가 났다. terminal에서 pull을 해보면 login을 하라고 나오고 해당 gitlab repo 아이디와 비밀번호를 치면 정삭적으로 pull 이 되는데 Jenkins에서 Git pull을 하면 login을 해줄 수 없기 때문에 다음과 같은 에러가 난다. Warning: CredentialId "root" could not be found. Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --force --progress -- http://192.168.158.12:9000/teespace/teespace-..
-
[Jenkins] Docker로 설치된 jenkins에 react 프로젝트 빌드를 위해 nodejs, npm, yarn 설치CICD 2022. 2. 10. 11:48
빌드 서버에 Jenkins를 Docker로 띄워서 사용 하던 중에 Jenkins Docker image가 완전히 날아갔다. 불행히도 백업을 해두지 않아서 기존에 사용하던 Jenkins 버전도 몰라서 기존의 볼륨 마운트해서 사용하던 jenkins_home 폴더에 최신 Jenkinks 버전 (2.333)을 받아서 재설치 하였다. Jenkins에는 Nodejs 플러그인도 있지만 기존 Jenkins 프로젝트에서 Excute shell 에서 yarn 명령어를 통해서 React 프로젝트를 빌드해 주었기 때문에 Jenkins Docker image에 nodejs, npm, yarn을 설치해 주어야 했다. Execute shell 에서 실행되는 명령어는 Docker image 안에서 실행되는 shell script라고..
-
Tomcat 에 Spring - Tibero 올리기CICD 2021. 11. 22. 15:05
docker hub에서 최신 tomcat9을 사용 (Debian 운영체제 기반) 1. /usr/local/tomcat/conf/server.xml 파일 설정 태그 사이에 해당 내용을 넣어준다. 2. /usr/local/tomcat/conf/context.xml 파일 설정 태그 사이에 해당 내용을 넣어준다. 3. 스프링 프로젝트 내에 /src/resources/conf/context-datasource.xml 파일 설정 (이 파일이 없으면 해당 경로에 생성) 파일 안에 해당 내용 추가 4. 스프링 프로젝트 내에 /src/resources/application.properties 파일 설정 파일 안에 해당 내용 추가 spring.datasource.url=jdbc:tibero:thin:@220.90.231...