pi_customizer 0.1.2.pre.alpha → 0.1.4.pre.alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/pi_customizer/environment/aws/aws.rb +3 -0
- data/lib/pi_customizer/environment/docker/docker.rb +3 -0
- data/lib/pi_customizer/version.rb +1 -1
- data/pi_customizer.gemspec +0 -1
- metadata +2 -18
- data/envs/pi_build_modifier-0.1.0.gem +0 -0
- data/envs/vagrant/Vagrantfile +0 -56
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f22814106adaddd0cd806cdc356b3f6b1376d0d
|
4
|
+
data.tar.gz: da99acadd816e61c4ee79aaa7e65400e35dfed21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0631d7e7c5a7e37ac35c71244c117736960d2d6aa52e425a3ceacc338d63e68f85b924ac026c1bf1a116be27d59e8f7f6a351f96b796e813a2194bfb20f11f11
|
7
|
+
data.tar.gz: dc51f4b8eead231045b1aba686f11164359c5a0d8cd01cd3d2ada3389f4c54fa3f182db33bc550f4af3d51b7753fd57a0c37f1d683429d839f280c1dd9182650
|
data/pi_customizer.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pi_customizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4.pre.alpha
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Beate Ottenwälder
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -94,20 +94,6 @@ dependencies:
|
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0.20'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: json
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '2.1'
|
104
|
-
type: :runtime
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '2.1'
|
111
97
|
description: The pi_customizer gem allows you to adapt Raspbian images to your needs!
|
112
98
|
email: ottenwbe.public@gmail.com
|
113
99
|
executables:
|
@@ -127,10 +113,8 @@ files:
|
|
127
113
|
- envs/aws/variables.tf
|
128
114
|
- envs/config.json
|
129
115
|
- envs/docker/Dockerfile
|
130
|
-
- envs/pi_build_modifier-0.1.0.gem
|
131
116
|
- envs/pi_build_modifier.gem
|
132
117
|
- envs/sh/build-pi-img.sh
|
133
|
-
- envs/vagrant/Vagrantfile
|
134
118
|
- lib/pi_customizer.rb
|
135
119
|
- lib/pi_customizer/builder/builder.rb
|
136
120
|
- lib/pi_customizer/builder/prepare_start_execute_builder.rb
|
Binary file
|
data/envs/vagrant/Vagrantfile
DELETED
@@ -1,56 +0,0 @@
|
|
1
|
-
# -*- mode: ruby -*-
|
2
|
-
# vi: set ft=ruby :
|
3
|
-
|
4
|
-
require 'fileutils'
|
5
|
-
|
6
|
-
$dependencies = <<SCRIPT
|
7
|
-
sudo apt update
|
8
|
-
sudo apt -y upgrade
|
9
|
-
sudo apt -y install quilt parted qemu-user-static debootstrap zerofree pxz zip dosfstools libcap2-bin bsdtar
|
10
|
-
sudo apt -y install git curl ruby-full
|
11
|
-
SCRIPT
|
12
|
-
|
13
|
-
$prepare = <<SCRIPT
|
14
|
-
# install gem
|
15
|
-
if [ -f "pi_build_modifier.gem" ]; then
|
16
|
-
echo "Gem exists"
|
17
|
-
else
|
18
|
-
gem install --local pi_build_modifier.gem
|
19
|
-
end
|
20
|
-
mkdir /build/pi-gen
|
21
|
-
if [ -f "/build/pi-gen" ]; then
|
22
|
-
git clone https://github.com/ottenwbe/pi-gen.git /build/pi-gen
|
23
|
-
else
|
24
|
-
git pull https://github.com/ottenwbe/pi-gen.git -r
|
25
|
-
end
|
26
|
-
SCRIPT
|
27
|
-
|
28
|
-
$modify = <<SCRIPT
|
29
|
-
# Execute gem with parameters
|
30
|
-
pi_build_modifier ~/conf.json
|
31
|
-
SCRIPT
|
32
|
-
|
33
|
-
Vagrant.configure('2') do |config|
|
34
|
-
|
35
|
-
config.vm.box = 'debian/stretch64'
|
36
|
-
config.disksize.size = '20GB'
|
37
|
-
|
38
|
-
# Prepare environment by updating the dependencies
|
39
|
-
config.vm.provision 'shell', inline: $dependencies
|
40
|
-
|
41
|
-
# Copy config file
|
42
|
-
config.vm.provision "file", source: "conf.json", destination: "~/conf.json"
|
43
|
-
|
44
|
-
if File.exists? pi_build_modifier.gem
|
45
|
-
config.vm.provision "file", source: "pi_build_modifier.gem", destination: "~/pi_build_modifier.gem"
|
46
|
-
else
|
47
|
-
raise 'Config file cannot be found!'
|
48
|
-
end
|
49
|
-
|
50
|
-
# Actually modify and build
|
51
|
-
config.vm.provision 'shell', inline: $prepare
|
52
|
-
|
53
|
-
# Actually modify the build sources and build the environment
|
54
|
-
config.vm.provision 'shell', inline: $modify
|
55
|
-
|
56
|
-
end
|