Programmer Application Note

2015년 10월 18일 일요일

jenkins 설치 및 gitlab 연결 하기

오후 6:40 Posted by PAN.SPOT , , No comments

1. Jenkins 

jenkins는 오픈소스 지속적통합 CI(continuouus intergration) tool

2. Install jenkins Debian packages 
This is the Debian package repository of Jenkins to automate installation and upgrade. To use this repository, first add the key to your system:
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
Then add the following entry in your /etc/apt/sources.list:
deb http://pkg.jenkins-ci.org/debian binary/
Update your local package index, then finally install Jenkins:
sudo apt-get update
sudo apt-get install jenkins
See Wiki for more information, including notes regarding upgrade from Hudson.

※ 만약 8080포트가 사용 중이라면 /etc/default/jenkins에서 HTTP_PORT를 변경하여 재시작.

3. plugin 설치 

jenkins에 접속 하여 gitlab plugin 설치

4. ssh key 설정
sudo su - jenkins
git config --global user.name "jenkins"
git config --global user.email "jenkinse@DOMAIN"
ssh-keygen -t rsa -C "jenkins@DOMAIN"

gitlab의 jenkins에서 사용할 프로젝트의 설정에서 Deploy Keys로 추가하여 권한을 준다.





2015년 10월 14일 수요일

리눅스에서 윈도우 폴더 공유 시 권한문제 및 컴파일 시 Value too large for defined data type 문제

오후 8:37 Posted by PAN.SPOT No comments

윈도우에서 공유 설정을 한 후 리눅스에서 mount 하여 사용 할 때 권한 문제가 발생 한다면, 리눅스 계정의 uid,gid 설정을 하면 해결 된다.

해당 윈도우 폴더에서 리눅스 프로젝트를 컴파일 하였을 때
아래와 같은 오류가 발생한다면 nounix,noserverino 추가 한다.

Value too large for defined data type
정의한 자료형으로 쓰기엔 너무 큰 값

최종 마운트 방법

mount -t cifs //<Windows공유서버IP>/<윈도우공유폴더명> /<리눅스공유폴더명> -o username="<계정>",password="<암호>",uid=<xxx>,gid=<xxx>,nounix,noserverino