Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
kohkimakimoto committed Jul 7, 2016
0 parents commit e1afcd4
Show file tree
Hide file tree
Showing 25 changed files with 1,213 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .editorconfig
@@ -0,0 +1,7 @@
root = true

[*]
indent_style = space
end_of_line = lf
charset = utf-8
indent_size = 2
16 changes: 16 additions & 0 deletions .gitignore
@@ -0,0 +1,16 @@
.DS_Store
Thumbs.db
.tags*
._*
.vagrant
*.iml

*.gem
.bundle
vendor/bundle
files/**/cache/
pkg/*
bin/*
.tmp/*

!.gitkeep
Empty file added .tmp/.gitkeep
Empty file.
12 changes: 12 additions & 0 deletions Berksfile
@@ -0,0 +1,12 @@
source 'https://supermarket.chef.io'

cookbook 'omnibus'

# Uncomment to use the latest version of the Omnibus cookbook from GitHub
# cookbook 'omnibus', github: 'opscode-cookbooks/omnibus'

group :integration do
cookbook 'apt', '~> 2.8'
cookbook 'freebsd', '~> 0.3'
cookbook 'yum-epel', '~> 0.6'
end
21 changes: 21 additions & 0 deletions Gemfile
@@ -0,0 +1,21 @@
source 'https://rubygems.org'

# Install omnibus
gem 'omnibus', '~> 5.4'

# Use Chef's software definitions. It is recommended that you write your own
# software definitions, but you can clone/fork Chef's to get you started.
gem 'omnibus-software', github: 'chef/omnibus-software'

# This development group is installed by default when you run `bundle install`,
# but if you are using Omnibus in a CI-based infrastructure, you do not need
# the Test Kitchen-based build lab. You can skip these unnecessary dependencies
# by running `bundle install --without development` to speed up build times.
group :development do
# Use Berkshelf for resolving cookbook dependencies
gem 'berkshelf', '~> 3.3'

# Use Test Kitchen with Vagrant for converging the build environment
gem 'test-kitchen', '~> 1.4'
gem 'kitchen-vagrant', '~> 0.18'
end
177 changes: 177 additions & 0 deletions Gemfile.lock
@@ -0,0 +1,177 @@
GIT
remote: git://github.com/chef/omnibus-software.git
revision: d6c10d3f94e368bc358b1ca0f1520642372910fd
specs:
omnibus-software (4.0.0)
omnibus (>= 5.2.0)

GEM
remote: https://rubygems.org/
specs:
addressable (2.3.8)
artifactory (2.3.3)
aws-sdk (2.3.19)
aws-sdk-resources (= 2.3.19)
aws-sdk-core (2.3.19)
jmespath (~> 1.0)
aws-sdk-resources (2.3.19)
aws-sdk-core (= 2.3.19)
berkshelf (3.3.0)
addressable (~> 2.3.4)
berkshelf-api-client (~> 1.2)
buff-config (~> 1.0)
buff-extensions (~> 1.0)
buff-shell_out (~> 0.1)
celluloid (~> 0.16.0)
celluloid-io (~> 0.16.1)
cleanroom (~> 1.0)
faraday (~> 0.9.0)
httpclient (~> 2.6.0)
minitar (~> 0.5.4)
octokit (~> 3.0)
retryable (~> 2.0)
ridley (~> 4.0)
solve (~> 1.1)
thor (~> 0.19)
berkshelf-api-client (1.3.1)
faraday (~> 0.9.1)
httpclient (~> 2.6.0)
buff-config (1.0.1)
buff-extensions (~> 1.0)
varia_model (~> 0.4)
buff-extensions (1.0.0)
buff-ignore (1.1.1)
buff-ruby_engine (0.1.0)
buff-shell_out (0.2.0)
buff-ruby_engine (~> 0.1.0)
celluloid (0.16.0)
timers (~> 4.0.0)
celluloid-io (0.16.2)
celluloid (>= 0.16.0)
nio4r (>= 1.1.0)
chef-config (12.11.18)
fuzzyurl (~> 0.8.0)
mixlib-config (~> 2.0)
mixlib-shellout (~> 2.0)
chef-sugar (3.3.0)
cleanroom (1.0.0)
dep-selector-libgecode (1.2.0)
dep_selector (1.0.3)
dep-selector-libgecode (~> 1.0)
ffi (~> 1.9)
erubis (2.7.0)
faraday (0.9.2)
multipart-post (>= 1.2, < 3)
ffi (1.9.10)
ffi-yajl (2.2.3)
libyajl2 (~> 1.2)
fuzzyurl (0.8.0)
hashie (3.4.4)
hitimes (1.2.4)
httpclient (2.6.0.1)
ipaddress (0.8.3)
jmespath (1.2.4)
json_pure (>= 1.8.1)
json (1.8.3)
json_pure (1.8.3)
kitchen-vagrant (0.20.0)
test-kitchen (~> 1.4)
libyajl2 (1.2.0)
minitar (0.5.4)
mixlib-authentication (1.4.1)
mixlib-log
mixlib-cli (1.6.0)
mixlib-config (2.2.1)
mixlib-install (1.1.0)
artifactory
mixlib-shellout
mixlib-versioning
mixlib-log (1.6.0)
mixlib-shellout (2.2.6)
mixlib-versioning (1.1.0)
multipart-post (2.0.0)
net-scp (1.2.1)
net-ssh (>= 2.6.5)
net-ssh (3.2.0)
nio4r (1.2.1)
octokit (3.8.0)
sawyer (~> 0.6.0, >= 0.5.3)
ohai (8.17.1)
chef-config (>= 12.5.0.alpha.1, < 13)
ffi (~> 1.9)
ffi-yajl (~> 2.2)
ipaddress
mixlib-cli
mixlib-config (~> 2.0)
mixlib-log
mixlib-shellout (~> 2.0)
plist (~> 3.1)
systemu (~> 2.6.4)
wmi-lite (~> 1.0)
omnibus (5.4.0)
aws-sdk (~> 2)
chef-sugar (~> 3.3)
cleanroom (~> 1.0)
ffi-yajl (~> 2.2)
mixlib-shellout (~> 2.0)
mixlib-versioning
ohai (~> 8.0)
ruby-progressbar (~> 1.7)
thor (~> 0.18)
plist (3.2.0)
retryable (2.0.3)
ridley (4.4.2)
addressable
buff-config (~> 1.0)
buff-extensions (~> 1.0)
buff-ignore (~> 1.1)
buff-shell_out (~> 0.1)
celluloid (~> 0.16.0)
celluloid-io (~> 0.16.1)
chef-config
erubis
faraday (~> 0.9.0)
hashie (>= 2.0.2, < 4.0.0)
httpclient (~> 2.6)
json (>= 1.7.7)
mixlib-authentication (>= 1.3.0)
retryable (~> 2.0)
semverse (~> 1.1)
varia_model (~> 0.4.0)
ruby-progressbar (1.8.1)
safe_yaml (1.0.4)
sawyer (0.6.0)
addressable (~> 2.3.5)
faraday (~> 0.8, < 0.10)
semverse (1.2.1)
solve (1.2.1)
dep_selector (~> 1.0)
semverse (~> 1.1)
systemu (2.6.5)
test-kitchen (1.10.2)
mixlib-install (~> 1.0, >= 1.0.4)
mixlib-shellout (>= 1.2, < 3.0)
net-scp (~> 1.1)
net-ssh (>= 2.9, < 4.0)
safe_yaml (~> 1.0)
thor (~> 0.18)
thor (0.19.1)
timers (4.0.4)
hitimes
varia_model (0.4.1)
buff-extensions (~> 1.0)
hashie (>= 2.0.2, < 4.0.0)
wmi-lite (1.0.0)

PLATFORMS
ruby

DEPENDENCIES
berkshelf (~> 3.3)
kitchen-vagrant (~> 0.18)
omnibus (~> 5.4)
omnibus-software!
test-kitchen (~> 1.4)

BUNDLED WITH
1.12.5
39 changes: 39 additions & 0 deletions Makefile
@@ -0,0 +1,39 @@
.PHONY: default prepare build build_centos5 build_centos6 build_centos7

default: build

prepare:
@echo "preparing..."
cd $(CURDIR)/.tmp && \
curl -L -O https://www.openssl.org/source/openssl-1.0.1t.tar.gz && \
curl -L -O http://downloads.sourceforge.net/project/libpng/zlib/1.2.8/zlib-1.2.8.tar.gz

build: clean prepare
@echo "building..."
vagrant destroy -f
vagrant up
vagrant halt

build_centos5: prepare
@echo "building..."
vagrant destroy centos-5.11 -f
vagrant up centos-5.11
vagrant halt centos-5.11

build_centos6: prepare
@echo "building..."
vagrant destroy centos-6.7 -f
vagrant up centos-6.7
vagrant halt centos-6.7

build_centos7: prepare
@echo "building..."
vagrant destroy centos-7.2 -f
vagrant up centos-7.2
vagrant halt centos-7.2

destroy:
vagrant destroy -f

clean:
rm -rf $(CURDIR)/pkg
34 changes: 34 additions & 0 deletions README.md
@@ -0,0 +1,34 @@
# Omnibus Supervisor

Creating full-stack platform-specific packages for `supervisor`. Packages created by this project replace the standard `supervisor` packages.

## Requirements

* Vagrant
* VirtualBox

## Usage

build packages:

```
make
```

destroy VMs:

```
make destroy
```

## Supported platforms

* CentOS5
* CentOS6
* CentOS7

## See also

* [README.omnibus.md](README.omnibus.md)
* [chef/omnibus](https://github.com/chef/omnibus)
* [supervisord.org](http://supervisord.org/)

0 comments on commit e1afcd4

Please sign in to comment.