This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rpmbuild用のvagrant環境を用意する。 | |
以下、vagrant環境にて実施。 | |
vagrant: vagrant-centos-7.2.box | |
rpmbuild環境の構築 | |
# yum groupinstall "Development tools" | |
# yum install rpmdevtools createrepo yum-utils | |
# rpmdev-setuptree | |
# cd ~/rpmbuild/SOURCES/ | |
# wget https://www.kernel.org/pub/software/scm/git/git-2.11.0.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
・ はじめに | |
vagrant box "vagrant-centos-7.2.box" の場合、Vagrantfileで指定したプライベートIPアドレスが割り振られない場合がある。 | |
これはCentOS7よりifnameがeth0, eth1より enp0s3, enp0s8へ変更されたため。 | |
・ 作業手順 | |
Vagrant環境 | |
$ vim Vagrantfile | |
Vagrant.configure(2) do |config| | |
config.vm.define "byakko" do |byakko| | |
byakko.vm.box = "base_7_2_64" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd {workgir} | |
$ bundle init | |
$ vim Gemfile | |
source "https://rubygems.org" | |
gem 'chef' | |
gem 'knife-zero' | |
$ vim Vagrantfile | |
Vagrant.configure(2) do |config| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
・環境 | |
nginx version: nginx/1.7.10 | |
Jenkins 1.598 | |
http { | |
ssl_session_cache shared:SSL:10m; | |
ssl_session_timeout 10m; | |
include /etc/nginx/mime.types; | |
default_type application/octet-stream; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rpmbuild用のvagrant環境を用意する。 | |
以下、vagrant環境にて実施。 | |
vagrant: CentOS-6.5-x86_64-v20140110.box | |
rpmbuild環境の構築 | |
# yum groupinstall "Development tools" | |
# yum install rpmdevtools createrepo yum-utils | |
# rpmdev-setuptree | |
# cd ~/rpmbuild/SOURCES/ | |
# wget https://www.kernel.org/pub/software/scm/git/git-2.3.0.tar.gz |