본문 바로가기

DevOps

(14)
[DevOps] CI/CD, Jenkins에 대한 개념이해하기 개발자로 입사한지 어느덧 6개월차가 되었다.하지만 경력입사자로 3년차 개발자가 되었고 현재 진행중인 프로젝트가 생각보다 시간이 너무 남아 중간중간 비는 시간에 신입사원 교육을 진행하게 되었다. 처음 시작은 CI/CD에 대한 교육이다.Jenkins를 선택한 이유GitLab Runner로 CD만 해봄, Github Actions으로만 CI/CD 해봄한 번도 안해본 Jenkins로 진행하며 토론식으로 교육을 하고자 한다. 제대로 CI/CD 개념을 학습하고자하며 다음과 같은 학습목표를 세우게 되었다.CI/CD 개념에 대해 이해한다.Jenkins에 대해 이해 한다.Jenkins에 대한 기능과 용어를 정리한다.Jenkins를 이용해 CI/CD 파이프라인을 구축한다.배포도구들의 차이점에 대해 정리해본다. 들어가기전 ..
[Mac/VMWare] Mac M1 VMWare Fusion 설치, CentOS 9 설치, Mariadb 설치 1. VMware Fusion 설치 후 가상머신 안에 CentOS을 설치합니다. 2. CentOS에 MariaDB 설치합니다. 3. 본인의 로컬PC에서 가상머신에 설치 된 MariaDB와 연결합니다. VMware Fusion 설치 https://www.vmware.com/ Introducing VMware Cross-Cloud Services Discover how VMware Cross-Cloud services give organizations freedom and control without trade-offs. www.vmware.com VMware Fusion 을 설치하기 위해서는 회원가입이 필요합니다. 회원가입 후 Products > Fusion for Mac > Use for Free wit..
[모니터링] Docker + Prometheus + Grafana에 설치하기 Docker + docker-compose 설치 docker 설치 및 docker-compose 설치는 이미 설치했다고 가정한다. 만약 설치하지 않았다면 다음 url에서 설치 할 수 있다. https://jung-mmmmin.tistory.com/124 [Docker] Docker 부터 docker compose 설치 실행환경 cat /etc/*-release | uniq DISTRIB_ID=Ubuntu DISTRIB_RELEASE=22.04 Docker 설치 sudo apt-get update 필요한 패키지 설치 sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common Docker..
nginx.conf 설정 NGINX 모듈 기본 구조 Nginx는 크게 핵심 모듈(Core Module), 이벤트 모듈(Event Module), 구성 모듈(Configuration Module), HTTP 모듈로 구성되어있다. nginx.conf 파일에는 접속자수, 동작 프로세스수등 퍼포먼스에 기본적인 설정 항목을 담고 있다. 핵심모듈(Core Module) : Nginx의 프로세스 관리, 보안, 필수 기능 등등 설정하는 부분이다. 이벤트 모듈(Event Module) : Nginx가 네트워크 동작방법에 설정하는 부분이다. 구성 모듈(Configuration Module) : Nginx에서 구조 include를 통해 외부 파일을 포함시키는 부분이다. HTTP 모듈 : Nginx에서 웹사이트를 설정하는 부분이다. Nginx 프로세..
[Docker] Postgresql 도커에 설치 및 접속 docker로 postgresql 을 설치하는 방법에 대해 알아본다. 이미 도커가 설치되어있다고 가정하고 시작한다. 만약 도커가 설치되어있지 않다면 다음 게시물을 참조바란다. https://jung-mmmmin.tistory.com/124 [Docker] Docker 부터 docker compose 설치 실행환경 cat /etc/*-release | uniq DISTRIB_ID=Ubuntu DISTRIB_RELEASE=22.04 Docker 설치 sudo apt-get update 필요한 패키지 설치 sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common Docker의 공 jung..
EC2 한국시간으로 타임존(timeZone) 설정하기 처음 EC2 인스턴스를 할당받으면 다음과 같이 할당되어있다 이를 바꾸기 위한 방법을 기록한다. ubuntu@ip-172-xx-xxx-xxx:~$ date Mon Jan 8 09:29:51 UTC 2024 sudo ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime sudo timedatectl set-timezone 'Asia/Seoul' tzselect 4 > 23 > 1 Please identify a location so that time zone rules can be set correctly. Please select a continent, ocean, "coord", or "TZ". 1) Africa 7) Europe 2) Americas 8) Ind..
맥북 영구 alias 등록하기 맥북은 bash쉘이 아닌 zsh쉘을 기본으로 사용한다. 그렇기 때문에 ~/.bashrc 가 아닌 ~/.zshrc 파일을 열어 수정을 해줘야 한다. zshrc 파일로 영구 등록 1. vi ~/.zshrc 2. 원하는 alias를 등록해준다. alias [별명]=[linux 명령어] alias aws='cd Desktop/aws' alias testjm='ssh -i "XXXXX.pem" ubuntu@XXXXXXXX' 3. esc -> :wq 로 저장한다. 4. 터미널을 끄고 다시 시작한다.
[AWS/Kafka] Docker 설치 후 Kafka 설정 https://jung-mmmmin.tistory.com/124 [Docker] Docker 부터 docker compose 설치 실행환경 cat /etc/*-release | uniq DISTRIB_ID=Ubuntu DISTRIB_RELEASE=22.04 Docker 설치 sudo apt-get update 필요한 패키지 설치 sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common Docker의 공 jung-mmmmin.tistory.com https://jung-mmmmin.tistory.com/113 [Docker/Kafka] zookeeper/Kafka 설치 로컬에서 설치해..