sle2docker 0.2.3 → 0.2.4
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/Changelog +6 -0
- data/README.md +12 -5
- data/lib/sle2docker/builder.rb +2 -0
- data/lib/sle2docker/cli.rb +8 -0
- data/lib/sle2docker/version.rb +1 -1
- data/lib/templates/SLE11SP2/config.xml.erb +4 -4
- data/lib/templates/SLE11SP3/config.xml.erb +2 -2
- data/lib/templates/SLE12/config.xml.erb +2 -2
- 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: 3f15d09b5ede994585073034cba25c4c68c271aa
|
4
|
+
data.tar.gz: 7a7d3c1fcdae3a14470dc0338b7d108733ea31c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5fd6e752a653025541797f876a0cf9e807998fa52c78704cfd9373801717c16f0f58074b2e2e6026035716bc72df3205b643c9e19767a4d5751fd2be97281ec
|
7
|
+
data.tar.gz: 0ce0c1b71744653b85cb1f483493820d7da2e843c51e8e8a719661bd6642514393ec7792a86d78528143485f5d1bfaa17004bea1000921fcb3e73370daeb6a56
|
data/Changelog
CHANGED
data/README.md
CHANGED
@@ -21,7 +21,7 @@ have the rights to interact with it.
|
|
21
21
|
The recommended way to install sle2docker is via zypper:
|
22
22
|
|
23
23
|
```
|
24
|
-
sudo zypper in
|
24
|
+
sudo zypper in sle2docker
|
25
25
|
```
|
26
26
|
|
27
27
|
However sle2docker can be installed via gem:
|
@@ -65,7 +65,7 @@ To build a template just use the following command:
|
|
65
65
|
sle2docker build TEMPLATE
|
66
66
|
```
|
67
67
|
|
68
|
-
A list of the available templates
|
68
|
+
A list of the available templates may be obtained by running:
|
69
69
|
|
70
70
|
```
|
71
71
|
sle2docker list
|
@@ -92,11 +92,11 @@ sle2docker build -u USERNAME -p PASSWORD TEMPLATE_NAME
|
|
92
92
|
|
93
93
|
## Subscription Management Tool integration
|
94
94
|
|
95
|
-
It is possible to download all the
|
95
|
+
It is possible to download all the required packages from a local
|
96
96
|
Subscription Management Tool (SMT) instance:
|
97
97
|
|
98
98
|
```
|
99
|
-
sle2docker build -s SMT_SERVER_HOSTNAME TEMPLATE
|
99
|
+
sle2docker build -s SMT_SERVER_HOSTNAME/repo TEMPLATE
|
100
100
|
```
|
101
101
|
|
102
102
|
By default sle2docker assumes the contents of the SMT server are served over
|
@@ -104,7 +104,14 @@ HTTPS. To force the retrieval of the package over plain HTTP use the
|
|
104
104
|
following command:
|
105
105
|
|
106
106
|
```
|
107
|
-
sle2docker build -s SMT_SERVER_HOSTNAME --disable-https TEMPLATE
|
107
|
+
sle2docker build -s SMT_SERVER_HOSTNAME/repo --disable-https TEMPLATE
|
108
|
+
```
|
109
|
+
|
110
|
+
Example: Say the FQDN of your SMT is mysmt.company.com and you want to build a SLE12 Docker image.
|
111
|
+
The corresponding call to sle2docker would look like this:
|
112
|
+
|
113
|
+
```
|
114
|
+
sle2docker build -s mysmt.company.com/repo --disable-https SLE12
|
108
115
|
```
|
109
116
|
|
110
117
|
By default sle2docker expects the SMT instance to not require any form of
|
data/lib/sle2docker/builder.rb
CHANGED
data/lib/sle2docker/cli.rb
CHANGED
@@ -40,6 +40,10 @@ module Sle2Docker
|
|
40
40
|
:type => :boolean,
|
41
41
|
:default => false,
|
42
42
|
:desc => "Do not use HTTPS when accessing repositories"
|
43
|
+
method_option :include_build_repositories, :aliases => ["--include-build-repos"],
|
44
|
+
:type => :boolean,
|
45
|
+
:default => true,
|
46
|
+
:desc => "Add the repositories used at build time to the Docker image"
|
43
47
|
def show(template_name)
|
44
48
|
template_dir = Template.template_dir(template_name)
|
45
49
|
builder = Builder.new(options)
|
@@ -76,6 +80,10 @@ module Sle2Docker
|
|
76
80
|
method_option :http_proxy, :aliases => ["--http-proxy"],
|
77
81
|
:default => ENV['http_proxy'],
|
78
82
|
:desc => "HTTP proxy to use (eg: http://squid.local:3128)"
|
83
|
+
method_option :include_build_repositories, :aliases => ["--include-build-repos"],
|
84
|
+
:type => :boolean,
|
85
|
+
:default => true,
|
86
|
+
:desc => "Add the repositories used at build time to the Docker image"
|
79
87
|
def build(template_name)
|
80
88
|
template_dir = Template.template_dir(template_name)
|
81
89
|
builder = Builder.new(options)
|
data/lib/sle2docker/version.rb
CHANGED
@@ -25,16 +25,16 @@
|
|
25
25
|
<users group="root">
|
26
26
|
<user password="$1$wYJUgpM5$RXMMeASDc035eX.NbYWFl0" home="/root" name="root"/>
|
27
27
|
</users>
|
28
|
-
<repository type="rpm-md"
|
28
|
+
<repository type="rpm-md" alias="SLES11:SP2:Updates" <%= 'imageinclude="true"' if include_build_repos %> <%= credentials %>>
|
29
29
|
<source path="http<%= "s" if enable_https %>://<%= host %>/repo/$RCE/SLES11-SP2-Updates/sle-11-x86_64<%= "?credentials=NCCcredentials" if use_ncc %>"/>
|
30
30
|
</repository>
|
31
|
-
<repository type="rpm-md"
|
31
|
+
<repository type="rpm-md" alias="SLES11:SP2:Core" <%= 'imageinclude="true"' if include_build_repos %> <%= credentials %>>
|
32
32
|
<source path="http<%= "s" if enable_https %>://<%= host %>/repo/$RCE/SLES11-SP2-Core/sle-11-x86_64<%= "?credentials=NCCcredentials" if use_ncc %>"/>
|
33
33
|
</repository>
|
34
|
-
<repository type="rpm-md"
|
34
|
+
<repository type="rpm-md" alias="SLES11:SP1:Updates" <%= 'imageinclude="true"' if include_build_repos %> <%= credentials %>>
|
35
35
|
<source path="http<%= "s" if enable_https %>://<%= host %>/repo/$RCE/SLES11-SP1-Updates/sle-11-x86_64<%= "?credentials=NCCcredentials" if use_ncc %>"/>
|
36
36
|
</repository>
|
37
|
-
<repository type="rpm-md"
|
37
|
+
<repository type="rpm-md" alias="SLES11:SP1:Pool" <%= 'imageinclude="true"' if include_build_repos %> <%= credentials %>>
|
38
38
|
<source path="http<%= "s" if enable_https %>://<%= host %>/repo/$RCE/SLES11-SP1-Pool/sle-11-x86_64<%= "?credentials=NCCcredentials" if use_ncc %>"/>
|
39
39
|
</repository>
|
40
40
|
<packages type="image">
|
@@ -25,10 +25,10 @@
|
|
25
25
|
<users group="root">
|
26
26
|
<user password="$1$wYJUgpM5$RXMMeASDc035eX.NbYWFl0" home="/root" name="root"/>
|
27
27
|
</users>
|
28
|
-
<repository type="rpm-md"
|
28
|
+
<repository type="rpm-md" alias="SLES11:SP3:Updates" <%= 'imageinclude="true"' if include_build_repos %> <%= credentials %>>
|
29
29
|
<source path="http<%= "s" if enable_https %>://<%= host %>/repo/$RCE/SLES11-SP3-Updates/sle-11-x86_64<%= "?credentials=NCCcredentials" if use_ncc %>"/>
|
30
30
|
</repository>
|
31
|
-
<repository type="rpm-md"
|
31
|
+
<repository type="rpm-md" alias="SLES11:SP3:Pool" <%= 'imageinclude="true"' if include_build_repos %> <%= credentials %>>
|
32
32
|
<source path="http<%= "s" if enable_https %>://<%= host %>/repo/$RCE/SLES11-SP3-Pool/sle-11-x86_64<%= "?credentials=NCCcredentials" if use_ncc %>"/>
|
33
33
|
</repository>
|
34
34
|
<packages type="image">
|
@@ -25,10 +25,10 @@
|
|
25
25
|
<users group="root">
|
26
26
|
<user password="$1$wYJUgpM5$RXMMeASDc035eX.NbYWFl0" home="/root" name="root"/>
|
27
27
|
</users>
|
28
|
-
<repository type="rpm-md" alias="SLE12:Pool"
|
28
|
+
<repository type="rpm-md" alias="SLE12:Pool" <%= 'imageinclude="true"' if include_build_repos %> <%= credentials %>>
|
29
29
|
<source path="http<%= "s" if enable_https %>://<%= host %>/SUSE/Products/SLE-SERVER/12/x86_64/product<%= "?credentials=NCCcredentials" if use_ncc %>"/>
|
30
30
|
</repository>
|
31
|
-
<repository type="rpm-md" alias="SLE12:Updates"
|
31
|
+
<repository type="rpm-md" alias="SLE12:Updates" <%= 'imageinclude="true"' if include_build_repos %> <%= credentials %>>
|
32
32
|
<source path="http<%= "s" if enable_https %>://<%= host %>/SUSE/Updates/SLE-SERVER/12/x86_64/update<%= "?credentials=NCCcredentials" if use_ncc %>"/>
|
33
33
|
</repository>
|
34
34
|
<packages type="image">
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sle2docker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Flavio Castelli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|