도커

    [AWS] GitHub Actions으로 private ECR에 이미지 push 자동화하기

    이번 포스팅에서는 Docker Hub가 아닌 AWS의 ECR에 이미지를 push 하기 까지를 GitHub Actions로 자동화를 해보려한다 먼저 테스트를 하기위한 간단한 express를 만들고 시작해보겠다 Express 어플리케이션 생성 간단한 Hellow World 어플리케이션이며 아래의 명령어로 초기화해주고 express를 설치해주자 $ npm init $ npm install express const express = require('express'); const app = express(); const port = 8080; app.get('/', (req, res) => { res.send('Hellow World'); }); app.listen(port, () => { console.log(..

    [Docker] ubuntu에서 docker & docker-compose 설치 방법

    이 글은 aws의 ubuntu 환경에서 진행된다는 점 참고하길 바란다 docker와 docker-compose 설치 방법은 도커 공식 독스에 설명되어있다 docker 설치 1. 기본적인 패키지들을 최신으로 업데이트를 하고 apt가 HTTPS를 통해 리포지토리를 사용하게 해주는 의존성 설치 $ sudo apt-get update && sudo apt-get install -y \ apt-transport-https \ ca-certificates \ curl \ gnupg \ lsb-release 2. docker 공식 인증키 추가 $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --yes --dearmor -o /usr/share..