clone repository
build image
$ docker run -d \
--name my-jenkins \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /usr/bin/docker:/usr/bin/docker \
-p 8181:8080 jenkins/jenkins:lts
$ chmod 777 /var/run/docker.sock
$ chown 777 /usr/bin/docker
push image
aws : not found
에러 발생 → Jenkins에 aws-cli 설치 필요
$ docker exec -i -t --user root {컨테이너 ID} bash
(컨테이너 접속)
$ apt-get update
$ apt install python3-pip -y
$ pip3 install awscli — upgrade
aws configure
에러 발생 → Jenkins 컨테이너에서 aws configure 수행