vagrant-openshift 2.0.10 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.asciidoc +9 -10
- data/lib/vagrant-openshift/action.rb +43 -31
- data/lib/vagrant-openshift/action/{build_openshift.rb → build_origin.rb} +4 -4
- data/lib/vagrant-openshift/action/{build_openshift_base_images.rb → build_origin_base_images.rb} +1 -1
- data/lib/vagrant-openshift/action/clone_upstream_repositories.rb +5 -5
- data/lib/vagrant-openshift/action/create_bare_repo_placeholders.rb +4 -4
- data/lib/vagrant-openshift/action/create_yum_repositories.rb +3 -1
- data/lib/vagrant-openshift/action/{download_artifacts_openshift.rb → download_artifacts_origin.rb} +3 -4
- data/lib/vagrant-openshift/action/download_artifacts_sti.rb +1 -1
- data/lib/vagrant-openshift/action/generate_template.rb +3 -5
- data/lib/vagrant-openshift/action/{install_openshift.rb → install_origin.rb} +1 -1
- data/lib/vagrant-openshift/action/{install_openshift_asset_dependencies.rb → install_origin_asset_dependencies.rb} +2 -2
- data/lib/vagrant-openshift/action/{install_openshift_base_dependencies.rb → install_origin_base_dependencies.rb} +15 -13
- data/lib/vagrant-openshift/action/{install_openshift_rhel7.rb → install_origin_rhel7.rb} +3 -4
- data/lib/vagrant-openshift/action/{local_openshift_checkout.rb → local_origin_checkout.rb} +2 -2
- data/lib/vagrant-openshift/action/{run_openshift_tests.rb → run_origin_tests.rb} +27 -3
- data/lib/vagrant-openshift/action/sync_local_repository.rb +8 -3
- data/lib/vagrant-openshift/command/{build_openshift.rb → build_origin.rb} +4 -4
- data/lib/vagrant-openshift/command/{build_openshift_base.rb → build_origin_base.rb} +4 -4
- data/lib/vagrant-openshift/command/{build_openshift_base_images.rb → build_origin_base_images.rb} +4 -4
- data/lib/vagrant-openshift/command/{install_openshift_assets_base.rb → download_artifacts_origin.rb} +4 -4
- data/lib/vagrant-openshift/command/download_artifacts_sti.rb +49 -0
- data/lib/vagrant-openshift/command/{install_openshift.rb → install_origin.rb} +4 -4
- data/lib/vagrant-openshift/command/install_origin_assets_base.rb +49 -0
- data/lib/vagrant-openshift/command/{local_openshift_setup.rb → local_origin_setup.rb} +5 -5
- data/lib/vagrant-openshift/command/origin_init.rb +4 -4
- data/lib/vagrant-openshift/command/{repo_sync_openshift.rb → repo_sync_origin.rb} +3 -3
- data/lib/vagrant-openshift/command/{test_openshift.rb → test_origin.rb} +12 -4
- data/lib/vagrant-openshift/command/{test_openshift_image.rb → test_origin_image.rb} +2 -2
- data/lib/vagrant-openshift/command/{try_restart_openshift.rb → try_restart_origin.rb} +4 -4
- data/lib/vagrant-openshift/plugin.rb +40 -35
- data/lib/vagrant-openshift/templates/command/init-openshift/box_info.yaml +25 -42
- data/lib/vagrant-openshift/version.rb +1 -1
- metadata +23 -22
- data/lib/vagrant-openshift/command/bootstrap_openshift.rb +0 -50
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7160eb541de9e048c441e7db339f549436354ae3
|
4
|
+
data.tar.gz: bef0f3dbed4812c82833bdafdd6977347b388a03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8bb8f17e5aa85c520fa182855de18d98e2e375443e2856e8f650f23157e6ce155e5450845b101980b2b88f61ce03a9838e871b5e9106189074b25b68b8521853
|
7
|
+
data.tar.gz: 1b213155c7db4fd465b392b8daddcfd52f6efb43b23f3c8bd6a87528ee4069265eea30b122fa2a4165edc04639ebfba3706dfadbff3168d73dbf09ef13d7e91f
|
data/README.asciidoc
CHANGED
@@ -77,7 +77,7 @@ Then clone the repositories into your GOPATH.
|
|
77
77
|
[source, sh]
|
78
78
|
----
|
79
79
|
$ cd $GOPATH
|
80
|
-
$ vagrant
|
80
|
+
$ vagrant origin-local-checkout -u <github username>
|
81
81
|
$ cd src/github.com/openshift/origin
|
82
82
|
----
|
83
83
|
|
@@ -113,7 +113,7 @@ NOTE: See link:#other-providers[Other Providers] below for launching VMs from ot
|
|
113
113
|
|
114
114
|
[source, sh]
|
115
115
|
----
|
116
|
-
$ vagrant sync-
|
116
|
+
$ vagrant sync-origin
|
117
117
|
----
|
118
118
|
|
119
119
|
For some providers, your local repositories are automatically synchronized
|
@@ -128,7 +128,7 @@ rebuild only the OpenShift binary, use the `--no-images` option.
|
|
128
128
|
|
129
129
|
[source, sh]
|
130
130
|
----
|
131
|
-
$ vagrant test-
|
131
|
+
$ vagrant test-origin --all
|
132
132
|
----
|
133
133
|
|
134
134
|
|
@@ -393,7 +393,6 @@ Images may be thought of as being at one of four stages:
|
|
393
393
|
1. "os" - The base OS image (use a "minimal" one).
|
394
394
|
2. "deps" - OpenShift runtime dependencies and build requirements are installed.
|
395
395
|
3. "inst" - OpenShift code, images, and binaries are built and installed
|
396
|
-
4. "bootstrap" - OpenShift installed and running
|
397
396
|
|
398
397
|
You may want to create images that snapshot the output at each of
|
399
398
|
these stages, as the rate of change and amount of time to create each
|
@@ -407,18 +406,18 @@ help with this:
|
|
407
406
|
|
408
407
|
[source, sh]
|
409
408
|
----
|
410
|
-
$ vagrant build-
|
411
|
-
$ vagrant build-
|
412
|
-
$ vagrant install-
|
409
|
+
$ vagrant build-origin-base
|
410
|
+
$ vagrant build-origin-base-images
|
411
|
+
$ vagrant install-origin-assets-base
|
413
412
|
----
|
414
413
|
|
415
414
|
Given this base foundation, you may want to `vagrant package` the result before proceeding to install OpenShift code.
|
416
415
|
|
417
416
|
[source, sh]
|
418
417
|
----
|
419
|
-
$ vagrant install-
|
420
|
-
$ vagrant build-
|
421
|
-
$ vagrant build-
|
418
|
+
$ vagrant install-origin
|
419
|
+
$ vagrant build-origin-base-images # pick up updates if older "deps" base reused
|
420
|
+
$ vagrant build-origin --images
|
422
421
|
$ vagrant build-sti --binary-only
|
423
422
|
----
|
424
423
|
|
@@ -27,34 +27,34 @@ module Vagrant
|
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
|
-
def self.
|
30
|
+
def self.build_origin_base(options)
|
31
31
|
Vagrant::Action::Builder.new.tap do |b|
|
32
32
|
b.use CreateYumRepositories
|
33
33
|
b.use YumUpdate
|
34
34
|
b.use SetHostName
|
35
|
-
b.use
|
35
|
+
b.use InstallOriginBaseDependencies
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
39
|
-
def self.
|
39
|
+
def self.install_origin(options)
|
40
40
|
Vagrant::Action::Builder.new.tap do |b|
|
41
41
|
b.use YumUpdate
|
42
42
|
b.use SetHostName
|
43
|
-
b.use
|
44
|
-
b.use
|
45
|
-
b.use
|
43
|
+
b.use InstallOrigin
|
44
|
+
b.use InstallOriginRhel7
|
45
|
+
b.use InstallOriginAssetDependencies, :restore_assets => true
|
46
46
|
end
|
47
47
|
end
|
48
48
|
|
49
|
-
def self.
|
49
|
+
def self.install_origin_assets_base(options)
|
50
50
|
Vagrant::Action::Builder.new.tap do |b|
|
51
|
-
b.use
|
51
|
+
b.use InstallOriginAssetDependencies, :backup_assets => true
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
55
|
-
def self.
|
55
|
+
def self.build_origin(options)
|
56
56
|
Vagrant::Action::Builder.new.tap do |b|
|
57
|
-
b.use
|
57
|
+
b.use BuildOrigin, options
|
58
58
|
end
|
59
59
|
end
|
60
60
|
|
@@ -70,19 +70,19 @@ module Vagrant
|
|
70
70
|
end
|
71
71
|
end
|
72
72
|
|
73
|
-
def self.
|
73
|
+
def self.try_restart_origin(options)
|
74
74
|
Vagrant::Action::Builder.new.tap do |b|
|
75
75
|
b.use RunSystemctl, {:action => "try-restart", :service => "openshift"}
|
76
76
|
end
|
77
77
|
end
|
78
78
|
|
79
|
-
def self.
|
79
|
+
def self.build_origin_base_images(options)
|
80
80
|
Vagrant::Action::Builder.new.tap do |b|
|
81
|
-
b.use
|
81
|
+
b.use BuildOriginBaseImages, options
|
82
82
|
end
|
83
83
|
end
|
84
84
|
|
85
|
-
def self.
|
85
|
+
def self.repo_sync_origin(options)
|
86
86
|
Vagrant::Action::Builder.new.tap do |b|
|
87
87
|
b.use PrepareSshConfig
|
88
88
|
if options[:source]
|
@@ -92,11 +92,11 @@ module Vagrant
|
|
92
92
|
end
|
93
93
|
b.use SyncLocalRepository
|
94
94
|
b.use CheckoutRepositories
|
95
|
-
b.use
|
95
|
+
b.use InstallOriginAssetDependencies, :restore_assets => true
|
96
96
|
end
|
97
97
|
if options[:build]
|
98
|
-
b.use(
|
99
|
-
b.use(
|
98
|
+
b.use(BuildOriginBaseImages, options) if options[:images]
|
99
|
+
b.use(BuildOrigin, options)
|
100
100
|
b.use RunSystemctl, {:action => "try-restart", :service => "openshift"}
|
101
101
|
end
|
102
102
|
end
|
@@ -119,19 +119,19 @@ module Vagrant
|
|
119
119
|
end
|
120
120
|
end
|
121
121
|
|
122
|
-
def self.
|
122
|
+
def self.local_origin_checkout(options)
|
123
123
|
Vagrant::Action::Builder.new.tap do |b|
|
124
124
|
if not options[:no_build]
|
125
|
-
b.use
|
125
|
+
b.use LocalOriginCheckout, options
|
126
126
|
end
|
127
127
|
end
|
128
128
|
end
|
129
129
|
|
130
|
-
def self.
|
130
|
+
def self.run_origin_tests(options)
|
131
131
|
Vagrant::Action::Builder.new.tap do |b|
|
132
|
-
b.use
|
132
|
+
b.use RunOriginTests, options
|
133
133
|
if options[:download]
|
134
|
-
b.use
|
134
|
+
b.use DownloadArtifactsOrigin
|
135
135
|
end
|
136
136
|
b.use TestExitCode
|
137
137
|
end
|
@@ -147,6 +147,18 @@ module Vagrant
|
|
147
147
|
end
|
148
148
|
end
|
149
149
|
|
150
|
+
def self.download_origin_artifacts(options)
|
151
|
+
Vagrant::Action::Builder.new.tap do |b|
|
152
|
+
b.use DownloadArtifactsOrigin
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
156
|
+
def self.download_sti_artifacts(options)
|
157
|
+
Vagrant::Action::Builder.new.tap do |b|
|
158
|
+
b.use DownloadArtifactsSti
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
150
162
|
def self.gen_template(options)
|
151
163
|
Vagrant::Action::Builder.new.tap do |b|
|
152
164
|
b.use GenerateTemplate, options
|
@@ -209,27 +221,27 @@ module Vagrant
|
|
209
221
|
autoload :CheckoutRepositories, action_root.join("checkout_repositories")
|
210
222
|
autoload :SetHostName, action_root.join("set_host_name")
|
211
223
|
autoload :YumUpdate, action_root.join("yum_update")
|
212
|
-
autoload :
|
213
|
-
autoload :
|
214
|
-
autoload :
|
224
|
+
autoload :InstallOriginBaseDependencies, action_root.join("install_origin_base_dependencies")
|
225
|
+
autoload :InstallOriginAssetDependencies, action_root.join("install_origin_asset_dependencies")
|
226
|
+
autoload :BuildOriginBaseImages, action_root.join("build_origin_base_images")
|
215
227
|
autoload :PushOpenshiftImages, action_root.join("push_openshift_images")
|
216
228
|
autoload :PushOpenshiftRelease, action_root.join("push_openshift_release")
|
217
|
-
autoload :
|
218
|
-
autoload :
|
219
|
-
autoload :
|
229
|
+
autoload :InstallOrigin, action_root.join("install_origin")
|
230
|
+
autoload :InstallOriginRhel7, action_root.join("install_origin_rhel7")
|
231
|
+
autoload :BuildOrigin, action_root.join("build_origin")
|
220
232
|
autoload :BuildSti, action_root.join("build_sti")
|
221
233
|
autoload :PrepareSshConfig, action_root.join("prepare_ssh_config")
|
222
234
|
autoload :SyncLocalRepository, action_root.join("sync_local_repository")
|
223
235
|
autoload :SyncUpstreamRepository, action_root.join("sync_upstream_repository")
|
224
|
-
autoload :
|
236
|
+
autoload :LocalOriginCheckout, action_root.join("local_origin_checkout")
|
225
237
|
autoload :CreateBareRepoPlaceholders, action_root.join("create_bare_repo_placeholders")
|
226
|
-
autoload :
|
238
|
+
autoload :RunOriginTests, action_root.join("run_origin_tests")
|
227
239
|
autoload :RunStiTests, action_root.join("run_sti_tests")
|
228
240
|
autoload :GenerateTemplate, action_root.join("generate_template")
|
229
241
|
autoload :CreateAMI, action_root.join("create_ami")
|
230
242
|
autoload :ModifyInstance, action_root.join("modify_instance")
|
231
243
|
autoload :ModifyAMI, action_root.join("modify_ami")
|
232
|
-
autoload :
|
244
|
+
autoload :DownloadArtifactsOrigin, action_root.join("download_artifacts_origin")
|
233
245
|
autoload :DownloadArtifactsSti, action_root.join("download_artifacts_sti")
|
234
246
|
autoload :TestExitCode, action_root.join("test_exit_code")
|
235
247
|
autoload :CleanNetworkSetup, action_root.join("clean_network_setup")
|
@@ -17,7 +17,7 @@
|
|
17
17
|
module Vagrant
|
18
18
|
module Openshift
|
19
19
|
module Action
|
20
|
-
class
|
20
|
+
class BuildOrigin
|
21
21
|
include CommandHelper
|
22
22
|
|
23
23
|
def initialize(app, env, options)
|
@@ -29,13 +29,13 @@ module Vagrant
|
|
29
29
|
def call(env)
|
30
30
|
if @options[:images]
|
31
31
|
cmd = %{
|
32
|
-
echo "Performing
|
32
|
+
echo "Performing origin release build with images..."
|
33
33
|
set -e
|
34
34
|
make release
|
35
35
|
}
|
36
36
|
else
|
37
37
|
cmd = %{
|
38
|
-
echo "Performing
|
38
|
+
echo "Performing origin release build..."
|
39
39
|
set -e
|
40
40
|
make release-binaries
|
41
41
|
}
|
@@ -63,4 +63,4 @@ popd
|
|
63
63
|
end
|
64
64
|
end
|
65
65
|
end
|
66
|
-
end
|
66
|
+
end
|
@@ -30,10 +30,10 @@ module Vagrant
|
|
30
30
|
ssh_user = env[:machine].ssh_info[:username]
|
31
31
|
|
32
32
|
remote_write(env[:machine], "/#{ssh_user}/.ssh/config", "#{ssh_user}:#{ssh_user}", "0600") {
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
33
|
+
%{Host github.com
|
34
|
+
StrictHostKeyChecking no
|
35
|
+
UserKnownHostsFile=/dev/null
|
36
|
+
}}
|
37
37
|
|
38
38
|
git_clone_commands = "set -e\n"
|
39
39
|
Constants.repos(env).each do |repo_name, url|
|
@@ -60,4 +60,4 @@ fi
|
|
60
60
|
end
|
61
61
|
end
|
62
62
|
end
|
63
|
-
end
|
63
|
+
end
|
@@ -27,9 +27,9 @@ module Vagrant
|
|
27
27
|
|
28
28
|
def call(env)
|
29
29
|
remote_write(env[:machine], "/root/.ssh/config", "root:root", "0600") {
|
30
|
-
|
31
|
-
|
32
|
-
|
30
|
+
%{Host github.com
|
31
|
+
StrictHostKeyChecking no
|
32
|
+
UserKnownHostsFile=/dev/null
|
33
33
|
}}
|
34
34
|
|
35
35
|
git_clone_commands = ""
|
@@ -50,4 +50,4 @@ module Vagrant
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
end
|
53
|
-
end
|
53
|
+
end
|
@@ -46,8 +46,8 @@ module Vagrant
|
|
46
46
|
|
47
47
|
sudo(env[:machine], "yum -y install deltarpm", {fail_on_error: false})
|
48
48
|
sudo(env[:machine], "yum -y install augeas")
|
49
|
+
|
49
50
|
if is_centos
|
50
|
-
sudo(env[:machine], "yum install -y centos-release-SCL.x86_64 http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm")
|
51
51
|
set_yum_repo(env, "/etc/yum.repos.d/openshift-deps.repo", "openshift-deps", "https://mirror.openshift.com/pub/openshift-v3/dependencies/centos7/x86_64/")
|
52
52
|
end
|
53
53
|
|
@@ -55,6 +55,8 @@ module Vagrant
|
|
55
55
|
|
56
56
|
unless is_fedora
|
57
57
|
unless env[:machine].communicate.test("rpm -q epel-release")
|
58
|
+
sudo(env[:machine], "yum install -y http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm")
|
59
|
+
|
58
60
|
#Workaround broken RHEL image which does not recover after restart.
|
59
61
|
if "VagrantPlugins::AWS::Provider" == env[:machine].provider.class.to_s
|
60
62
|
remote_write(env[:machine], "/etc/rc.local") {
|
data/lib/vagrant-openshift/action/{download_artifacts_openshift.rb → download_artifacts_origin.rb}
RENAMED
@@ -18,7 +18,7 @@ require 'pathname'
|
|
18
18
|
module Vagrant
|
19
19
|
module Openshift
|
20
20
|
module Action
|
21
|
-
class
|
21
|
+
class DownloadArtifactsOrigin
|
22
22
|
include CommandHelper
|
23
23
|
|
24
24
|
def initialize(app, env)
|
@@ -42,8 +42,7 @@ module Vagrant
|
|
42
42
|
"/tmp/openshift-cmd/" => artifacts_dir + "cmd/",
|
43
43
|
|
44
44
|
"/data/src/github.com/openshift/origin/_output/local/releases/" => artifacts_dir + "release/",
|
45
|
-
"/data/src/github.com/openshift/origin/assets/test/tmp/screenshots/" => artifacts_dir + "screenshots/"
|
46
|
-
"/data/src/github.com/openshift/origin/assets/phantomjsdriver.log" => artifacts_dir + "e2e/phantomjsdriver.log",
|
45
|
+
"/data/src/github.com/openshift/origin/assets/test/tmp/screenshots/" => artifacts_dir + "screenshots/"
|
47
46
|
}
|
48
47
|
|
49
48
|
download_map.each do |source,target|
|
@@ -54,7 +53,7 @@ module Vagrant
|
|
54
53
|
FileUtils.mkdir_p File.dirname(target.to_s)
|
55
54
|
end
|
56
55
|
|
57
|
-
command = "/usr/bin/rsync -
|
56
|
+
command = "/usr/bin/rsync -az -e 'ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i #{private_key_path}' --rsync-path='sudo rsync' #{ssh_info[:username]}@#{ssh_info[:host]}:#{source} #{target}"
|
58
57
|
|
59
58
|
if not system(command)
|
60
59
|
machine.ui.warn "Unable to download artifacts"
|
@@ -48,7 +48,7 @@ module Vagrant
|
|
48
48
|
FileUtils.mkdir_p File.dirname(target.to_s)
|
49
49
|
end
|
50
50
|
|
51
|
-
command = "/usr/bin/rsync -
|
51
|
+
command = "/usr/bin/rsync -az -e 'ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i #{private_key_path}' --rsync-path='sudo rsync' #{ssh_info[:username]}@#{ssh_info[:host]}:#{source} #{target}"
|
52
52
|
|
53
53
|
if not system(command)
|
54
54
|
machine.ui.warn "Unable to download artifacts"
|
@@ -41,7 +41,7 @@ module Vagrant
|
|
41
41
|
box_info = box_info_data[os][stage]
|
42
42
|
box_info[:instance_name] = @options[:name].nil? ? 'openshift_origin_' + inst_ts : @options[:name]
|
43
43
|
box_info[:os] = os
|
44
|
-
box_info[:vagrant_guest] = [:centos7, :rhel7, :rhelatomic7].include?(os) ? :redhat : os
|
44
|
+
box_info[:vagrant_guest] = [:centos7, :rhel7, :rhel7next, :rhelatomic7].include?(os) ? :redhat : os
|
45
45
|
box_info[:port_mappings] = @options[:port_mappings]
|
46
46
|
|
47
47
|
@openstack_creds_file = ENV['OPENSTACK_CREDS'].nil? || ENV['OPENSTACK_CREDS'] == '' ? "~/.openstackcred" : ENV['OPENSTACK_CREDS']
|
@@ -64,7 +64,7 @@ module Vagrant
|
|
64
64
|
'instance_name' => box_info[:instance_name],
|
65
65
|
'os' => os,
|
66
66
|
'dev_cluster' => false,
|
67
|
-
'insert_key' => (
|
67
|
+
'insert_key' => (stage == :inst) && !@options[:no_insert_key],
|
68
68
|
'num_minions' => 2,
|
69
69
|
'cpus' => 2,
|
70
70
|
'memory' => 2048,
|
@@ -74,9 +74,7 @@ module Vagrant
|
|
74
74
|
}
|
75
75
|
|
76
76
|
vagrant_openshift_config['no_synced_folders'] = @options[:no_synced_folders]
|
77
|
-
|
78
|
-
vagrant_openshift_config[:no_synced_folders] = true
|
79
|
-
else
|
77
|
+
unless @options[:no_synced_folders]
|
80
78
|
vagrant_openshift_config['sync_to'] = '/data/src'
|
81
79
|
vagrant_openshift_config['sync_from'] = "#{gopath}/src"
|
82
80
|
end
|
@@ -17,7 +17,7 @@
|
|
17
17
|
module Vagrant
|
18
18
|
module Openshift
|
19
19
|
module Action
|
20
|
-
class
|
20
|
+
class InstallOriginAssetDependencies
|
21
21
|
include CommandHelper
|
22
22
|
|
23
23
|
def initialize(app, env, options)
|
@@ -46,7 +46,7 @@ fi
|
|
46
46
|
# copy them to the assets dir
|
47
47
|
cp -rf $ASSET_BACKUP_DIR/node_modules $ORIGIN_PATH/assets/node_modules
|
48
48
|
cp -rf $ASSET_BACKUP_DIR/bower_components $ORIGIN_PATH/assets/bower_components
|
49
|
-
|
49
|
+
|
50
50
|
}
|
51
51
|
end
|
52
52
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
module Vagrant
|
18
18
|
module Openshift
|
19
19
|
module Action
|
20
|
-
class
|
20
|
+
class InstallOriginBaseDependencies
|
21
21
|
include CommandHelper
|
22
22
|
|
23
23
|
def initialize(app, env)
|
@@ -39,10 +39,7 @@ fi
|
|
39
39
|
end
|
40
40
|
|
41
41
|
ssh_user = env[:machine].ssh_info[:username]
|
42
|
-
|
43
|
-
# add the image into 'repositories' constants
|
44
|
-
#
|
45
|
-
sudo(env[:machine], "yum install -y git fontconfig yum-utils wget make mlocate bind augeas vim docker-io hg bzr libselinux-devel vim tig glibc-static btrfs-progs-devel device-mapper-devel sqlite-devel libnetfilter_queue-devel gcc gcc-c++ e2fsprogs tmux tmux httpie ctags hg xfsprogs rubygems openvswitch bridge-utils bzip2 ntp screen java-1.?.0-openjdk bind-utils socat unzip Xvfb ethtool", {:timeout=>60*20})
|
42
|
+
sudo(env[:machine], "yum install -y git fontconfig yum-utils wget make mlocate bind augeas vim docker-io hg bzr libselinux-devel vim tig glibc-static btrfs-progs-devel device-mapper-devel sqlite-devel libnetfilter_queue-devel gcc gcc-c++ e2fsprogs tmux tmux httpie ctags hg xfsprogs rubygems openvswitch bridge-utils bzip2 ntp screen java-1.?.0-openjdk bind-utils socat unzip Xvfb ethtool openldap-clients jq", {:timeout=>60*20})
|
46
43
|
sudo(env[:machine], "yum install -y facter", {fail_on_error: false, :timeout=>60*10})
|
47
44
|
|
48
45
|
# Install Chrome and chromedriver for headless UI testing
|
@@ -57,7 +54,7 @@ rpm --import linux_signing_key.pub
|
|
57
54
|
yum-config-manager --add-repo=http://dl.google.com/linux/chrome/rpm/stable/x86_64
|
58
55
|
|
59
56
|
# Install chrome
|
60
|
-
yum install -y google-chrome-stable
|
57
|
+
yum install -y google-chrome-stable
|
61
58
|
|
62
59
|
# Install chromedriver
|
63
60
|
wget https://chromedriver.storage.googleapis.com/2.16/chromedriver_linux64.zip
|
@@ -102,25 +99,30 @@ mkdir -p /data/bin
|
|
102
99
|
GO_VERSION=($(go version))
|
103
100
|
echo "Detected go version: $(go version)"
|
104
101
|
|
105
|
-
# TODO: Remove for go1.5, go vet and go cover will be internal
|
102
|
+
# TODO: Remove for go1.5, go vet and go cover will be internal
|
106
103
|
if [[ ${GO_VERSION[2]} == "go1.4"* ]]; then
|
107
104
|
GOPATH=/data go get golang.org/x/tools/cmd/cover
|
108
105
|
|
109
106
|
GOPATH=/data go get golang.org/x/tools/cmd/vet
|
110
107
|
|
111
108
|
# Check out a stable commit for go vet in order to version lock it to something we can work with
|
112
|
-
pushd /data/src/golang.org/x/tools >/dev/null
|
113
|
-
git checkout c262de870b618eed648983aa994b03bc04641c72
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
109
|
+
pushd /data/src/golang.org/x/tools >/dev/null
|
110
|
+
if git checkout c262de870b618eed648983aa994b03bc04641c72
|
111
|
+
then
|
112
|
+
# Re-install using this version of the tool
|
113
|
+
GOPATH=/data go install golang.org/x/tools/cmd/vet
|
114
|
+
fi
|
115
|
+
popd >/dev/null
|
118
116
|
fi
|
119
117
|
|
120
118
|
chown -R #{ssh_user}:#{ssh_user} /data
|
121
119
|
|
122
120
|
sed -i "s,^#DefaultTimeoutStartSec=.*,DefaultTimeoutStartSec=240s," /etc/systemd/system.conf
|
123
121
|
|
122
|
+
# Docker 1.8.2 now sets a TimeoutStartSec of 1 minute. Unfortunately, for some
|
123
|
+
# reason the initial docker start up is now taking > 5 minutes. Until that is fixed need this.
|
124
|
+
sed -i 's,TimeoutStartSec=.*,TimeoutStartSec=10min,' /usr/lib/systemd/system/docker.service
|
125
|
+
|
124
126
|
systemctl daemon-reexec
|
125
127
|
systemctl daemon-reload
|
126
128
|
systemctl enable docker
|