DevOps Tool 설치(WIP)
Published in
2 min readJul 23, 2019
JDK 설치
- yum -y install java-1.8.0-openjdk java-1.8.0-openjdk-devel
Git 설치
- sudo yum -y install git
Jenkins 설치
CentOS
- sudo yum -y install wget
- sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
- sudo rpm — import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
- sudo yum -y install jenkins
- sudo systemctl start jenkins.service
- sudo cat /var/lib/jenkins/secrets/initialAdminPassword
Ubuntu
- wget -q -O — https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
- deb https://pkg.jenkins.io/debian-stable binary/
- sudo apt-get update
- sudo apt-get install jenkins
Jenkins user를 Docker 그룹에 추가하여 사용 권한 추가
에러 : Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock
- sudo groupadd docker
- sudo usermod -aG docker $USER
- chmod 777 /var/run/docker.sock
Docker 설치
- https://docs.docker.com/install/
- https://docs.docker.com/install/linux/docker-ce/centos/
- https://docs.docker.com/install/linux/docker-ce/ubuntu/
CentOS7
- $ yum install -y yum-utils device-mapper-persistent-data lvm2
- $ yum-config-manager -- add-repo https://download.docker.com/linux/centos/docker-ce.repo
- $ yum install docker-ce
- $ systemctl start docker
Ubuntu18
- $ sudo apt-get update
- $ sudo apt-get install docker-engine
- $ sudo service docker start
참고 : http://iamartin-gh.herokuapp.com/ubuntu-16-04-docker-install/
- snap install docker
- apt install docker.io
Minikube 설치
Virtualbox 설치(CentOS)
- cd /etc/yum.repos.d/
- wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
- yum repolist
- yum list VirtualBox*
- yum install VirtualBox-5.2
VirtualBox 설치(Ubuntu)
- wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
- sudo apt-get update
- sudo apt-get install virtualbox
KubeCtrl 설치
- curl -LO https://storage.googleapis.com/kubernetes-release/ release/$(curl -s https://storage.googleapis.com/kubernetes-release/ release/stable.txt)/bin/linux/amd64/kubectl
- chmod +x ./kubectl
- sudo mv ./kubectl /usr/local/bin/kubectl
- kubectl version
minikube 설치
- curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 \
&& chmod +x minikube - sudo install minikube /usr/local/bin
- minikube start
- 예) minikube start — vm-driver=virturalbox
- VM 없이 구동 방법(잘 안되네요T_T)
sudo -E minikube start — vm-driver=none — extra-config=kubelet.resolv-conf=/run/systemd/resolve/resolv.conf
출처 : https://kubernetes.io/ko/docs/tasks/tools/install-minikube/
Ansible 설치
- yum -y install epel-release
- yum -y install ansible
- 예) cd ansible-playbook-sample
- 예) ansible-playbook -i development XXX.yml --diff
JIRA 설치
- docker volume create --name jiraVolume
- docker run -v jiraVolume:/var/atlassian/application-data/jira
-- name=”jira” -d -p 8080:8080 atlassian/jira-software - docker run -- name postgresql -itd -- restart always \
-- env ‘DB_USER=XXXX’ -- env ‘DB_PASS=XXXX’ \
-- env ‘DB_NAME=jira,confluence’ \
-- publish 15432:5432 \
-- volume /data/docker/postgresql:/var/lib/postgresql \
sameersbn/postgresql:latest
Confluence 설치
- docker volume create -- name confluenceVolume
- docker run -v confluenceVolume:/var/atlassian/application-data/confluence --name=”confluence” -d -p 8090:8090 -p 8091:8091 atlassian/confluence-server