buildizer 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MmE0NzRhYTcyOTU5ZmI5NmIzYjRlZjcyNzQ3ZDJmM2UwZjBmYzU3YQ==
5
+ data.tar.gz: !binary |-
6
+ ZjMxOWEzNjQzMDIyOWRhZWEyYjZkMTI0ZGY0N2JmMmI3YWFlNGQxNg==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ Njg4ZmQ3Y2RmODNmZjRjZWM5MTFiZDIzNTRkZTdjY2IyYWRjYzU3Yjc3NDEy
10
+ ZTcyNTQzOTUzYjA0ODc3MTk1YTQ1OGZmZTEwNDgyZThjZDE3NWRiMGE1MGU0
11
+ NjgxNzYxYmU4NDdkZDhjNjFiZjQ0ZTViYmE3MTE4OWVmYjIzOGM=
12
+ data.tar.gz: !binary |-
13
+ Nzg2MjJkOWY5MmMwODQ5Y2E3MzEwNjUxOGU5OTc1MzJmNWY3ODY4OWY5NzJh
14
+ MzVkOTVkOTgxZDJkMzlkMzhiNWE4ZDYyYjFmNDM4OTU5NGRiZTgzOGZiMGU3
15
+ ZTQ4ZmJjNzMzODgwZDQxYmZiYjlmODBkMDU3NmUzOTU0ZmQ0ZmY=
data/.gitignore ADDED
@@ -0,0 +1,5 @@
1
+ /Packagefile
2
+ /.vagrant
3
+ /buildizer*.gem
4
+ *.swp
5
+ .tags
data/.travis.yml ADDED
@@ -0,0 +1,10 @@
1
+ language: ruby
2
+ rvm: 2.2.1
3
+ deploy:
4
+ provider: rubygems
5
+ api_key:
6
+ secure: YfYvM1b2Fswr4/b09QtZZOdQXQ6Bnnw2NWqiXEhBcZyn6jq7bbRvbyKT8i4sjFs5MvbuIVm1T+bYvgs5SPfo0MwNdNjt5cxMlLmOuW9MBX9eZcVXqGomgi48CX+BEEUq7F+7naooHdDigGxdxEXAOlGmSoh3w+dSB8w4+yIyfXBk6w4IIHaQWk1MhYlalOyxEQzMuM4bzDXPTghb60yVgIT9ChLClMddqn3WXT1H1mx7xQpXs7Sxme8Q7PXDE8YBh5FnacB0nPsijGMYBo7nGTNAhOT9D2EVpgbtLsG+L5L6avuiVXSeI6+K2pp4hTyBOPjGnXGTjEuFOE5Nx4ozy8dxi+0by0fXzj6BXE9kL9iReiLAEdoHn+/JZ/6aGA78K+5SmXlxZAoPmFTDYlwmMZNHyHlJ6XUdUPN2Cd2GquaU/Af7VgN0PgoNutiVBI86wsITK1uUszsxDmPz5FxyOPrAOJC6zFrVhcE3/Dw/mebwgxUgXJwisd1NeC3q0u4FyaQyeka3h1XGnmfx/sMlxs6bMaZHvunubYsFuqMtAaqVTzvA6uHX8/dHap1l13W8B3NbP8tZh4Ch7366APEwZF9OjVeKSsRG5W1Oiw9X0dSGX4NGxMGAPNsxeP+2QbJydeZ5LA7p1BnRsj1vQkE1+y0eE9QezJO6NF2fwuebXNk=
7
+ gem: buildizer
8
+ on:
9
+ tags: true
10
+ repo: flant/buildizer
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,108 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ buildizer (0.0.1)
5
+ mixlib-shellout (>= 2.2.6, < 3.0)
6
+ net_status (>= 0.0.1, < 1.0)
7
+ package_cloud (>= 0.2, < 1.0)
8
+ thor (>= 0.19.1, < 1.0)
9
+ travis (~> 1.8, >= 1.8.2)
10
+
11
+ GEM
12
+ remote: https://rubygems.org/
13
+ specs:
14
+ addressable (2.4.0)
15
+ backports (3.6.8)
16
+ binding_of_caller (0.7.2)
17
+ debug_inspector (>= 0.0.1)
18
+ coderay (1.1.1)
19
+ colorize (0.6.0)
20
+ debug_inspector (0.0.2)
21
+ diff-lcs (1.2.5)
22
+ ethon (0.8.1)
23
+ ffi (>= 1.3.0)
24
+ faraday (0.9.2)
25
+ multipart-post (>= 1.2, < 3)
26
+ faraday_middleware (0.10.0)
27
+ faraday (>= 0.7.4, < 0.10)
28
+ ffi (1.9.10)
29
+ gh (0.14.0)
30
+ addressable
31
+ backports
32
+ faraday (~> 0.8)
33
+ multi_json (~> 1.0)
34
+ net-http-persistent (>= 2.7)
35
+ net-http-pipeline
36
+ highline (1.6.20)
37
+ json (1.8.3)
38
+ json_pure (1.8.1)
39
+ launchy (2.4.3)
40
+ addressable (~> 2.3)
41
+ method_source (0.8.2)
42
+ mime-types (1.25.1)
43
+ mixlib-shellout (2.2.6)
44
+ multi_json (1.11.2)
45
+ multipart-post (2.0.0)
46
+ net-http-persistent (2.9.4)
47
+ net-http-pipeline (1.0.1)
48
+ net_status (0.0.2)
49
+ package_cloud (0.2.29)
50
+ colorize (= 0.6.0)
51
+ highline (= 1.6.20)
52
+ json_pure (= 1.8.1)
53
+ rest-client (~> 1.6.7)
54
+ thor (~> 0.18)
55
+ pry (0.10.3)
56
+ coderay (~> 1.1.0)
57
+ method_source (~> 0.8.1)
58
+ slop (~> 3.4)
59
+ pry-stack_explorer (0.4.9.2)
60
+ binding_of_caller (>= 0.7)
61
+ pry (>= 0.9.11)
62
+ pusher-client (0.6.2)
63
+ json
64
+ websocket (~> 1.0)
65
+ rake (10.5.0)
66
+ rest-client (1.6.9)
67
+ mime-types (~> 1.16)
68
+ rspec (3.4.0)
69
+ rspec-core (~> 3.4.0)
70
+ rspec-expectations (~> 3.4.0)
71
+ rspec-mocks (~> 3.4.0)
72
+ rspec-core (3.4.3)
73
+ rspec-support (~> 3.4.0)
74
+ rspec-expectations (3.4.0)
75
+ diff-lcs (>= 1.2.0, < 2.0)
76
+ rspec-support (~> 3.4.0)
77
+ rspec-mocks (3.4.1)
78
+ diff-lcs (>= 1.2.0, < 2.0)
79
+ rspec-support (~> 3.4.0)
80
+ rspec-support (3.4.1)
81
+ slop (3.6.0)
82
+ thor (0.19.1)
83
+ travis (1.8.2)
84
+ backports
85
+ faraday (~> 0.9)
86
+ faraday_middleware (~> 0.9, >= 0.9.1)
87
+ gh (~> 0.13)
88
+ highline (~> 1.6)
89
+ launchy (~> 2.1)
90
+ pusher-client (~> 0.4)
91
+ typhoeus (~> 0.6, >= 0.6.8)
92
+ typhoeus (0.8.0)
93
+ ethon (>= 0.8.0)
94
+ websocket (1.2.2)
95
+
96
+ PLATFORMS
97
+ ruby
98
+
99
+ DEPENDENCIES
100
+ bundler (~> 1.7)
101
+ pry (>= 0.10.3, < 1.0)
102
+ pry-stack_explorer (>= 0.4.9.2, < 1.0)
103
+ rake (~> 10.0)
104
+ rspec (~> 3.4, >= 3.4.0)
105
+ buildizer!
106
+
107
+ BUNDLED WITH
108
+ 1.11.2
@@ -0,0 +1,44 @@
1
+ build_type: fpm
2
+ package_name: pam_docker
3
+
4
+ # package_version: $CI_BUILD_TAG || $TRAVIS_TAG || упасть
5
+
6
+ build_deps: git build-essential
7
+
8
+ before_prepare:
9
+ - curl http://flant.ru/key.gpg | apt-key -
10
+
11
+ after_prepare:
12
+ - curl http://flant.ru/key.gpg | apt-key -
13
+
14
+ fpm_script:
15
+ - when: after_remove
16
+ what:
17
+ - rm /usr/share/pam-configs/docker
18
+ - when: after_install, after_upgrade, after_remove
19
+ what:
20
+ - pam-auth-update --package # <cmd>
21
+
22
+ fpm_config_files:
23
+ config/security.conf: /etc/security/docker.conf
24
+
25
+ fpm_files:
26
+ config/docker: /usr/share/pam-configs/docker
27
+ pam_docker.so: /lib/security/pam_docker.so \
28
+
29
+ os:
30
+ ubuntu:
31
+ build_deps: libpam0g-dev
32
+ centos:
33
+ build_deps: libpam0g-devel
34
+
35
+ #after_patch:
36
+ # - rm debian/patches/lalala.patch
37
+
38
+ before_build:
39
+ - make
40
+ - mkdir -p $(pwd)/build
41
+ - PREFIX=$(pwd)/build make install
42
+
43
+ targets:
44
+ ubuntu-14.04-pam_docker: true
@@ -0,0 +1,28 @@
1
+ os:
2
+ ubuntu:
3
+ run:
4
+ - apt-get install -y git build-essential libpam0g-dev
5
+ - git clone https://github.com/flant/pam_docker.git /root/pam_docker
6
+
7
+ targets:
8
+ ubuntu-14.04-pam_docker:
9
+ run:
10
+ - cd /root/pam_docker
11
+ - make
12
+ - echo -e '#!/bin/bash\npam-auth-update --package' > after_install.sh
13
+ - cp after_install.sh after_upgrade.sh
14
+ - echo -e '#!/bin/bash\nrm /usr/share/pam-configs/docker\npam-auth-update --package' > after_remove.sh
15
+ - chmod +x pam_auth_update.sh
16
+ - chmod 644 pam_docker.so
17
+ - fpm -s dir -t deb -n pam_docker \
18
+ --deb-use-file-permissions \
19
+ --version 0.0.1-1 \
20
+ --after-install pam_auth_update.sh \
21
+ --after-upgrade pam_auth_update.sh \
22
+ --after-remove pam_config_remove.sh \
23
+ --after-remove pam_auth_update.sh \
24
+ --config-files /etc/security/docker.conf \
25
+ --config-files /usr/share/pam-configs/docker \
26
+ pam_docker.so=/lib/security/pam_docker.so \
27
+ config/security.conf=/etc/security/docker.conf \
28
+ config/docker=/usr/share/pam-configs/docker
@@ -0,0 +1,15 @@
1
+ package_name: pam_docker
2
+ # => package_version: 0.0.1-1
3
+
4
+ os:
5
+ ubuntu:
6
+ package_name: pam_docker_for_ubuntu
7
+ ubuntu-14.04:
8
+ package_name: pam_docker_14.04
9
+
10
+ target:
11
+ - ubuntu # => package: ubuntu-14.04-pam_docker_14.04-0.0.1-1, image: buildizer/ubuntu/14.04/pam_docker
12
+ - ubuntu-12.04 # => ubuntu-12.04.pam_docker_for_ubuntu-0.0.1-1
13
+ - centos # => centos-centos7-pam_docker-0.0.1-1
14
+ - centos-centos6-pam_huyam # => centos-centos6-pam_huyam-0.0.1-1
15
+ # версию переопределить нельзя
data/README.md ADDED
@@ -0,0 +1 @@
1
+ # buildizer
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task default: :spec
data/Vagrantfile ADDED
@@ -0,0 +1,9 @@
1
+ # vi: set ft=ruby :
2
+ # vi: set sts=2 ts=2 sw=2 :
3
+
4
+ VAGRANTFILE_API_VERSION = "2"
5
+
6
+ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
7
+ config.vm.box = "ubuntu/trusty64"
8
+ config.vm.provision :shell, path: "bootstrap.sh"
9
+ end