반응형 전체 글365 AWS Fargate를 사용해 jenkins master <-> agent를 구성해보자. Part 2. 목차. https://hwan-shell.tistory.com/375 (Jenkins ECS Fargate 설명) https://hwan-shell.tistory.com/376 (네트워크 구축) https://hwan-shell.tistory.com/377 (ECS, Cloud Map, EFS 구축) https://hwan-shell.tistory.com/378 (Jenkins Node 설정 및 테스트) 이번장에선 AWS Fargate, Cloud Map, EFS 셋팅을 해보겠습니다. 우선 Fargate에서 사용할 Cloud Map를 구현합니다. 1. AWS Cloud Map # Define Jenkins Cloud Map resource "aws_service_discovery_private_dns_n.. 2023. 4. 2. AWS Fargate를 사용해 jenkins master <-> agent를 구성해보자. Part 1. 목차. https://hwan-shell.tistory.com/375 (Jenkins ECS Fargate 설명) https://hwan-shell.tistory.com/376 (네트워크 구축) https://hwan-shell.tistory.com/377 (ECS, Cloud Map, EFS 구축) https://hwan-shell.tistory.com/378 (Jenkins Node 설정 및 테스트) 이번에는 Jenkins에서 사용할 Network를 Terraform으로 만들어 봅니다. Terraform 구조는 다음과 같습니다. |-- main.tf |-- resources | |-- cloud_map | | `-- main.tf | |-- ecs | | `-- main.tf | |-- efs | |.. 2023. 4. 1. AWS Fargate를 사용해 jenkins master <-> agent를 구성해보자. Info AWS Fargate를 사용해서 Jenkins를 구축하는 간단한 프로젝트를 진행해 봅니다. 목차. https://hwan-shell.tistory.com/375 (Jenkins ECS Fargate 설명) https://hwan-shell.tistory.com/376 (네트워크 구축) https://hwan-shell.tistory.com/377 (ECS, Cloud Map, EFS 구축) https://hwan-shell.tistory.com/378 (Jenkins Node 설정 및 테스트) AWS Fargate로 Jenkins master agent를 구성했을 때의 장단점은 다음과 같습니다. 장점 Agent를 관리할 필요가 없다. 여러 곳에서 Build를 해도 Throughput이 발생하지 않는다. .. 2023. 4. 1. Ubuntu Docker Image로 docker in docker 만들기 윈도우에서 리눅스 환경으로 개발을 하고싶거나 할 때 사용하면 유용할 것 같습니다. 윈도우에서 도커를 설치했다면 Dockerfile을 만들어 줍니다. FROM ubuntu:latest RUN apt-get update && \ apt-get install -y apt-transport-https ca-certificates curl software-properties-common RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - RUN add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ st.. 2023. 4. 1. 도커 Images size total은 실제 용량과 같을까? https://hwan-shell.tistory.com/370 도커의 Image layer 이 글을 작성하게 된 계기는 Container를 띄울 때 Container에 생성한 파일과 디렉토리들이 어디에 저장되고 관리되는지 궁금해서 찾다가 작성하게 되었습니다. 우리는 Docker를 사용할 때 아무생각 없 hwan-shell.tistory.com 도커에서는 Image layer라는 개념을 통해 공통된 Image layer를 공유합니다. $ docker images REPOSITORY TAG IMAGE ID CREATED SIZE hwani 1 3801c0b7b8a8 7 minutes ago 999MB hwani 2 3801c0b7b8a8 7 minutes ago 999MB node latest 0e0ab07.. 2023. 3. 30. 도커 syslog, rsyslog를 사용하여 log수집하는 방법. 도커를 실행하면 기본적으로 모든 stdout, stderr에 대한 출력 값을 볼 수 있습니다. $ docker logs [Container ID] 를 입력하면, 도커에서 실행된 모든 stdout, stderr를 확인할 수 있습니다. 1. syslog syslog는 유닉스/리눅스의 로그 정보를 담고 있는 파일입니다. 도커 log는 --log-driver=syslog 명령어를 사용해서 Host의 syslog로 전송이 가능 합니다. $ docker run -it --log-driver=syslog ubuntu root# echo hwani 그 후 컨테이너를 빠져나와서 Host의 syslog를 확인해보면 hwani라는 단어가 찍힌 것을 확인할 수 있습니다. # cat /var/log/messages | grep.. 2023. 3. 21. 이전 1 2 3 4 5 6 ··· 61 다음 728x90 반응형