Skip to content

Instantly share code, notes, and snippets.

View hiroharu8864's full-sized avatar

Hiroharu Tanaka hiroharu8864

View GitHub Profile
@hiroharu8864
hiroharu8864 / git2.11.0のRPMを作成し、インストール
Last active January 25, 2017 09:41
git2.11.0のRPMを作成し、インストール
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
@hiroharu8864
hiroharu8864 / vagrant-centos-7.2.box 環境へのプレイベートIPアドレス割り当て
Last active December 28, 2016 08:22
vagrant-centos-7.2.box 環境へのプレイベートIPアドレス割り当て
・ はじめに
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"
@hiroharu8864
hiroharu8864 / knife-zeroをvagrant環境で利用したメモ
Last active August 29, 2015 14:17
knife-zeroをvagrant環境で利用したメモ
$ cd {workgir}
$ bundle init
$ vim Gemfile
source "https://rubygems.org"
gem 'chef'
gem 'knife-zero'
$ vim Vagrantfile
Vagrant.configure(2) do |config|
・環境
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;
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