vagrant-alpine 0.1.1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +9 -7
- data/README.md +8 -4
- data/Rakefile +1 -1
- data/Vagrantfile.example +6 -0
- data/lib/vagrant-alpine.rb +0 -7
- data/lib/vagrant-alpine/cap/configure_networks.rb +5 -2
- data/lib/vagrant-alpine/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17c7ad97fa34c0d573e88adccc39ca27891a6ee3
|
4
|
+
data.tar.gz: 03f59598911a4fb22291a43b57f287e77c95e780
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94e2b0cfc413608f96812df4aef1e61505c31778e4e3b5d5050c1fb4f77e6fc812647f5f6b9d96cb8760b07da2f67729bdca8a8b5d38ece139241105cdcfea0f
|
7
|
+
data.tar.gz: 74d0403d791f7c561a70d73ffb49ab7f4ee7dbcc40e5f762c1be4227146a49d8d188b4a2f7ec32654e5ebabfd5b05d64cb5ce8d2463c1764792188f8790424c6
|
data/.travis.yml
CHANGED
@@ -1,13 +1,15 @@
|
|
1
1
|
language: ruby
|
2
|
-
before_install:
|
3
|
-
- sudo apt-get update -qq
|
4
|
-
- sudo apt-get install -qq -y bsdtar
|
5
|
-
- rvm @global do gem uninstall bundler --all --executables
|
6
|
-
- gem uninstall bundler --all --executables
|
7
|
-
- gem install bundler --version '< 1.7.0'
|
2
|
+
#before_install:
|
3
|
+
# - sudo apt-get update -qq
|
4
|
+
# - sudo apt-get install -qq -y bsdtar
|
5
|
+
# - rvm @global do gem uninstall bundler --all --executables
|
6
|
+
# - gem uninstall bundler --all --executables
|
7
|
+
# - gem install bundler --version '< 1.7.0'
|
8
8
|
rvm:
|
9
9
|
- 2.2.0
|
10
10
|
env:
|
11
11
|
global:
|
12
12
|
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
|
13
|
-
script:
|
13
|
+
script:
|
14
|
+
- bundle exec rake
|
15
|
+
- bundle exec rake build
|
data/README.md
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
-
#
|
1
|
+
# Vagrant Alpine Linux Guest
|
2
|
+
[![Gem Version](https://badge.fury.io/rb/vagrant-alpine.svg)](http://badge.fury.io/rb/vagrant-alpine) [![Build Status](https://travis-ci.org/maier/vagrant-alpine.svg?branch=master)](https://travis-ci.org/maier/vagrant-alpine)
|
2
3
|
|
3
|
-
This is a [Vagrant](http://vagrantup.com/) plugin adding support for [Alpine Linux](http://
|
4
|
+
This is a [Vagrant](http://vagrantup.com/) plugin adding support for [Alpine Linux](http://alpinelinux.org) guests.
|
4
5
|
|
5
|
-
> **NOTE:** The vagrant-alpine requires Vagrant 1.7+
|
6
|
+
> **NOTE:** The vagrant-alpine plugin requires Vagrant 1.7+
|
6
7
|
|
7
8
|
## Features
|
8
9
|
|
@@ -22,7 +23,7 @@ $ vagrant plugin install vagrant-alpine
|
|
22
23
|
## Usage
|
23
24
|
|
24
25
|
```
|
25
|
-
$ vagrant init maier/alpine-3.1.3
|
26
|
+
$ vagrant init maier/alpine-3.1.3-x86_64
|
26
27
|
$ vagrant up
|
27
28
|
```
|
28
29
|
|
@@ -66,5 +67,8 @@ Alpine Linux boxes for testing are available on
|
|
66
67
|
for building the boxes are in this
|
67
68
|
[GitHub repository](https://github.com/maier/packer-templates/).
|
68
69
|
|
70
|
+
1. (Atlas)[https://atlas.hashicorp.com/maier/boxes/alpine-3.1.3-x86_64] Alpine 3.1.3 box v1.3.0 is for VirtualBox v5, use box v1.2.0 for VirtualBox v4. The v1.2.0 (built with VirtualBox v4) has intermittent kernel panic when used with VirtualBox v5 and CPUs are set to > 1.
|
71
|
+
2. Alpine 3.2.3 box (built with VirtualBox v5) is available on (Atlas)[https://atlas.hashicorp.com/maier/boxes/alpine-3.2.3-x86_64] now.
|
72
|
+
|
69
73
|
Using `VAGRANT_LOG=info`, Vagrant's `--debug` switch, and `vb.gui = true`
|
70
74
|
were all very useful when originally developing this guest plugin.
|
data/Rakefile
CHANGED
data/Vagrantfile.example
CHANGED
data/lib/vagrant-alpine.rb
CHANGED
@@ -12,12 +12,5 @@ module VagrantPlugins
|
|
12
12
|
# lib_path = Pathname.new(File.expand_path('../vagrant-alpine', __FILE__))
|
13
13
|
# autoload :Action, lib_path.join('action')
|
14
14
|
# autoload :Errors, lib_path.join('errors')
|
15
|
-
|
16
|
-
# This returns the path to the source of this plugin.
|
17
|
-
#
|
18
|
-
# @return [Pathname]
|
19
|
-
def self.source_root
|
20
|
-
@source_root ||= Pathname.new(File.expand_path('../../', __FILE__))
|
21
|
-
end
|
22
15
|
end
|
23
16
|
end
|
@@ -6,13 +6,16 @@
|
|
6
6
|
#
|
7
7
|
require 'set'
|
8
8
|
require 'tempfile'
|
9
|
-
|
9
|
+
require 'pathname'
|
10
10
|
require 'vagrant/util/template_renderer'
|
11
11
|
|
12
12
|
module VagrantPlugins
|
13
13
|
module GuestAlpine
|
14
14
|
module Cap
|
15
15
|
class ConfigureNetworks
|
16
|
+
def self.source_root
|
17
|
+
@source_root ||= Pathname.new(File.expand_path('../../../../', __FILE__))
|
18
|
+
end
|
16
19
|
include Vagrant::Util
|
17
20
|
def self.configure_networks(machine, networks)
|
18
21
|
machine.communicate.tap do |comm|
|
@@ -28,7 +31,7 @@ module VagrantPlugins
|
|
28
31
|
entries = []
|
29
32
|
networks.each do |network|
|
30
33
|
interfaces.add(network[:interface])
|
31
|
-
entry = TemplateRenderer.render("guests/alpine/network_#{network[:type]}", { options: network, template_root:
|
34
|
+
entry = TemplateRenderer.render("guests/alpine/network_#{network[:type]}", { options: network, template_root: source_root.join('templates') })
|
32
35
|
entries << entry
|
33
36
|
end
|
34
37
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-alpine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- matt maier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|