DevOps & Cloud Engineering(222)
-
WSL ubuntu sudo keep env (WSL_DISTRO_NAME)
- 개요 WSL ubuntu에서 WSL_DISTRO_NAME env를 root 계정에서 인식 못할 경우 - 설정 전 $ echo $WSL_DISTRO_NAME Ubuntu-22.04 $ sudo -i $ echo $WSL_DISTRO_NAME - sudoers env 설정 (WSL_DISTRO_NAME) vim /etc/sudoers Defaults env_keep=WSL_DISTRO_NAME - 설정 후 $ echo $WSL_DISTRO_NAME Ubuntu-22.04 $ sudo -i $ echo $WSL_DISTRO_NAME Ubuntu-22.04
2023.01.20 -
docker cache 삭제
- 개요 Local에서 Docker build 테스트하는 과정에서 cache로 인해 정상적인 테스트가 힘들 경우 아래 명령어를 통해 Cache 삭제 - 방법 docker builder prune - reference https://docs.docker.com/engine/reference/commandline/builder_prune/
2023.01.17 -
AWS Ground Rules
- Good for Security (Zero Trust) and save traffic costDo not use root user for commom case.Use individual IAM user.Use MFA for Every IAM user include root account.Use Role not accesskey.Separate VPC for ENV such as dev, staing, production.Separate private and public subnets on VPC.Use individual routing tables for private and public subnets on VPC. (NAT Gateway, Internet Gateway)Internet traffic..
2023.01.10 -
Install GPU nvidia-docker2 on CentOS 8
- 개요 CentOS에 nvidia-docker2를 설치하는 과정은 의존성 및 버전 정합성 이슈로 상당히 까다롭다 - 방법 sudo yum config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo sudo yum erase podman buildah sudo yum install docker-ce sudo systemctl start docker sudo systemctl enable docker sudo curl -L https://github.com/docker/compose/releases/download/v2.14.2/docker-compose-linux-x86_64 -o /usr/local/bin/docke..
2023.01.05 -
CentOS 8 docker-ce 및 docker compose 설치
- 개요 docker-ce, docker compose를 CentOS 8에 설치하는 방법 - 설치방법 sudo yum config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo sudo yum erase podman buildah sudo yum install docker-ce sudo systemctl start docker sudo systemctl enable docker sudo curl -L https://github.com/docker/compose/releases/download/v2.14.2/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose su..
2023.01.04 -
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
- 개요 CentOS 8 관련 repo를 enable하고 아래와 같은 에러가 날 경우 Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist - 해결 방법 sudo sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-* sudo sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-Linux-*
2023.01.03 -
transfer domain to another account
- 개요 domain을 다른 AWS Account로 이관하는 방법은 아래 순서로 진행을 해야 한다 - 1. 기존 account >> aws sts get-caller-identity --query "Account" --output text 1234567890 root@ ~ >> aws route53domains list-domains --region us-east-1 { "Domains": [ { "DomainName": "example.com", "AutoRenew": true, "TransferLock": true, "Expiry": "2055-04-05T16:39:07+09:00" } ] } root@ ~ >> aws route53domains transfer-domain-to-another-aws..
2023.01.02 -
cloudwatch logs to slack
- 개요 cloudwatch loggroup의 log를 filter에서 slack으로 알려주는 app 구성 방법 - 방법 (1) Slack App 생성 및 Webhook URL 획득 https://api.slack.com/apps >> create new app >> Add features and functionality >> Active Incoming Webhooks >> Webhook URL Copy - 방법 (2) AWS SAR 에서 App 생성 https://serverlessrepo.aws.amazon.com/applications/us-east-1/289559741701/cw-logs-to-slack https://github.com/keetonian/cw-logs-to-slack - 방법 ..
2022.12.26 -
git 기초 사용법
- 개요 WSL에서 Bash Level로 Git을 다룰 때 필요한 초기 세팅 방법 - 설정 방법 ## git user git config --global --replace-all user.name "" ## git e-mail git config --global --replace-all user.email "" ## git auth git config --global credential.helper store ## git config list git config -l ## change branch git checkout main ## pull git pull ## create branch & check out git checkout -b feature/ ## apply all changes git add..
2022.12.16 -
bitbucket git password
- 개요 bitbucket에 google 로그인으로 연동시 git password 사용 하는 방법 - 방법 app password로 password 발급하여 사용 - 상세 방법 Select the Settings cog in the upper-right corner of the top navigation bar. Under Personal settings, select Personal Bitbucket settings. On the left sidebar, select App passwords. Select Create app password. Give the App password a name, usually related to the application that will use the passwor..
2022.12.16