12
12

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

OSS版 drone.io をソースからビルドする (CentOS 7)

Last updated at Posted at 2015-07-11

コードをカスタムしたかったので、rpm からではなく、自分でビルドして立ち上げたメモ

Ubuntu な方はこちらの記事を見ると良い。本家も Ubuntu でビルドしているようなのでその方が確実 > http://qiita.com/udzura/items/460827c53c93ddcc28cf

Goのインストール

golang の最新は 1.4.x であるが、drone は 1.3.x を使ってビルドしているっぽい?ので 1.3.3 を入れることにする。

wget https://storage.googleapis.com/golang/go1.3.3.linux-amd64.tar.gz
tar zxvf go1.3.3.linux-amd64.tar.gz
mv go /usr/local/
export PATH=$PATH:/usr/local/go/bin

Droneのチェックアウト

export GOPATH=~/.go
export PATH=~/.go/bin:$PATH
mkdir -p ~/.go/src/github.com/drone
cd ~/.go/src/github.com/drone
git clone https://github.com/drone/drone.git

ビルド

cf. https://github.com/drone/drone/blob/master/.drone.yml#L8-L16

cd ~/.go/src/github.com/drone/drone
yum install git hg sqlite3-devel
make deps
make test
make build

/usr/local/bin にインストール

make install

ついでに rpm, deb パッケージを作る

gem install fpm
make packages

これで packaging/output/drone.rpm に rpm ができる。deb もできる。

12
12
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
12

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?