2012年2月24日金曜日

Amazon Linux AMIにjenkinsをインストール

loginとインストール環境
$ slogin xx-xx-xx-xx-xx.amazonaws.com
$ cat /etc/issue
Amazon Linux AMI release 2011.09
Kernel \r on an \m


repository追加とインストール
$ sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
$ sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
$ sudo yum install jenkins


確認
$ id jenkins
uid=221(jenkins) gid=497(jenkins) groups=497(jenkins)


config修正
$ sudo diff -c /etc/sysconfig/{jenkins.orig,jenkins}
*** /etc/sysconfig/jenkins.orig 2012-02-24 04:50:06.269101765 +0000
--- /etc/sysconfig/jenkins      2012-02-13 19:19:59.000000000 +0000
***************
*** 16,22 ****
  # Java executable to run Jenkins
  # When left empty, we'll try to find the suitable Java.
  #
! JENKINS_JAVA_CMD="/usr/bin/java"
  
  ## Type:        string
  ## Default:     "jenkins"
--- 16,22 ----
  # Java executable to run Jenkins
  # When left empty, we'll try to find the suitable Java.
  #
! JENKINS_JAVA_CMD=""
  
  ## Type:        string
  ## Default:     "jenkins"


起動
$ sudo service jenkins start
Starting Jenkins                                           [  OK  ]



0 件のコメント:

コメントを投稿