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.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/README.asciidoc +9 -10
  3. data/lib/vagrant-openshift/action.rb +43 -31
  4. data/lib/vagrant-openshift/action/{build_openshift.rb → build_origin.rb} +4 -4
  5. data/lib/vagrant-openshift/action/{build_openshift_base_images.rb → build_origin_base_images.rb} +1 -1
  6. data/lib/vagrant-openshift/action/clone_upstream_repositories.rb +5 -5
  7. data/lib/vagrant-openshift/action/create_bare_repo_placeholders.rb +4 -4
  8. data/lib/vagrant-openshift/action/create_yum_repositories.rb +3 -1
  9. data/lib/vagrant-openshift/action/{download_artifacts_openshift.rb → download_artifacts_origin.rb} +3 -4
  10. data/lib/vagrant-openshift/action/download_artifacts_sti.rb +1 -1
  11. data/lib/vagrant-openshift/action/generate_template.rb +3 -5
  12. data/lib/vagrant-openshift/action/{install_openshift.rb → install_origin.rb} +1 -1
  13. data/lib/vagrant-openshift/action/{install_openshift_asset_dependencies.rb → install_origin_asset_dependencies.rb} +2 -2
  14. data/lib/vagrant-openshift/action/{install_openshift_base_dependencies.rb → install_origin_base_dependencies.rb} +15 -13
  15. data/lib/vagrant-openshift/action/{install_openshift_rhel7.rb → install_origin_rhel7.rb} +3 -4
  16. data/lib/vagrant-openshift/action/{local_openshift_checkout.rb → local_origin_checkout.rb} +2 -2
  17. data/lib/vagrant-openshift/action/{run_openshift_tests.rb → run_origin_tests.rb} +27 -3
  18. data/lib/vagrant-openshift/action/sync_local_repository.rb +8 -3
  19. data/lib/vagrant-openshift/command/{build_openshift.rb → build_origin.rb} +4 -4
  20. data/lib/vagrant-openshift/command/{build_openshift_base.rb → build_origin_base.rb} +4 -4
  21. data/lib/vagrant-openshift/command/{build_openshift_base_images.rb → build_origin_base_images.rb} +4 -4
  22. data/lib/vagrant-openshift/command/{install_openshift_assets_base.rb → download_artifacts_origin.rb} +4 -4
  23. data/lib/vagrant-openshift/command/download_artifacts_sti.rb +49 -0
  24. data/lib/vagrant-openshift/command/{install_openshift.rb → install_origin.rb} +4 -4
  25. data/lib/vagrant-openshift/command/install_origin_assets_base.rb +49 -0
  26. data/lib/vagrant-openshift/command/{local_openshift_setup.rb → local_origin_setup.rb} +5 -5
  27. data/lib/vagrant-openshift/command/origin_init.rb +4 -4
  28. data/lib/vagrant-openshift/command/{repo_sync_openshift.rb → repo_sync_origin.rb} +3 -3
  29. data/lib/vagrant-openshift/command/{test_openshift.rb → test_origin.rb} +12 -4
  30. data/lib/vagrant-openshift/command/{test_openshift_image.rb → test_origin_image.rb} +2 -2
  31. data/lib/vagrant-openshift/command/{try_restart_openshift.rb → try_restart_origin.rb} +4 -4
  32. data/lib/vagrant-openshift/plugin.rb +40 -35
  33. data/lib/vagrant-openshift/templates/command/init-openshift/box_info.yaml +25 -42
  34. data/lib/vagrant-openshift/version.rb +1 -1
  35. metadata +23 -22
  36. 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: ae6afb23aff38bb9c5e56876934f390f424b6120
4
- data.tar.gz: 9d63ba4a151d314534c8a4eb9025fba51be2e281
3
+ metadata.gz: 7160eb541de9e048c441e7db339f549436354ae3
4
+ data.tar.gz: bef0f3dbed4812c82833bdafdd6977347b388a03
5
5
  SHA512:
6
- metadata.gz: be084f3f1c4dd7a4fb8af5419212e997efd55def06b483ba00fa8195d6ccf97fa392b82c9acd7a95869f2e9d8987b9232373f9b50a8858ab54465ed28b660472
7
- data.tar.gz: 24752536ba60a84328c38554ff1c87d60d5f7eb100e8b2fcea4662f66db66f3a58b8ae34d4d6ad61e5d2b04d6e445c3d062dbbd6526328b2f4a1f5db4bcd06e5
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 openshift-local-checkout -u <github username>
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-openshift
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-openshift --all
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-openshift-base
411
- $ vagrant build-openshift-base-images
412
- $ vagrant install-openshift-assets-base
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-openshift
420
- $ vagrant build-openshift-base-images # pick up updates if older "deps" base reused
421
- $ vagrant build-openshift --images
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.build_openshift_base(options)
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 InstallOpenshiftBaseDependencies
35
+ b.use InstallOriginBaseDependencies
36
36
  end
37
37
  end
38
38
 
39
- def self.install_openshift(options)
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 InstallOpenshift
44
- b.use InstallOpenshiftRhel7
45
- b.use InstallOpenshiftAssetDependencies, :restore_assets => true
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.install_openshift_assets_base(options)
49
+ def self.install_origin_assets_base(options)
50
50
  Vagrant::Action::Builder.new.tap do |b|
51
- b.use InstallOpenshiftAssetDependencies, :backup_assets => true
51
+ b.use InstallOriginAssetDependencies, :backup_assets => true
52
52
  end
53
53
  end
54
54
 
55
- def self.build_openshift(options)
55
+ def self.build_origin(options)
56
56
  Vagrant::Action::Builder.new.tap do |b|
57
- b.use BuildOpenshift, options
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.try_restart_openshift(options)
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.build_openshift_base_images(options)
79
+ def self.build_origin_base_images(options)
80
80
  Vagrant::Action::Builder.new.tap do |b|
81
- b.use BuildOpenshiftBaseImages, options
81
+ b.use BuildOriginBaseImages, options
82
82
  end
83
83
  end
84
84
 
85
- def self.repo_sync_openshift(options)
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 InstallOpenshiftAssetDependencies, :restore_assets => true
95
+ b.use InstallOriginAssetDependencies, :restore_assets => true
96
96
  end
97
97
  if options[:build]
98
- b.use(BuildOpenshiftBaseImages, options) if options[:images]
99
- b.use(BuildOpenshift, options)
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.local_openshift_checkout(options)
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 LocalOpenshiftCheckout, options
125
+ b.use LocalOriginCheckout, options
126
126
  end
127
127
  end
128
128
  end
129
129
 
130
- def self.run_openshift_tests(options)
130
+ def self.run_origin_tests(options)
131
131
  Vagrant::Action::Builder.new.tap do |b|
132
- b.use RunOpenshiftTests, options
132
+ b.use RunOriginTests, options
133
133
  if options[:download]
134
- b.use DownloadArtifactsOpenshift
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 :InstallOpenshiftBaseDependencies, action_root.join("install_openshift_base_dependencies")
213
- autoload :InstallOpenshiftAssetDependencies, action_root.join("install_openshift_asset_dependencies")
214
- autoload :BuildOpenshiftBaseImages, action_root.join("build_openshift_base_images")
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 :InstallOpenshift, action_root.join("install_openshift")
218
- autoload :InstallOpenshiftRhel7, action_root.join("install_openshift_rhel7")
219
- autoload :BuildOpenshift, action_root.join("build_openshift")
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 :LocalOpenshiftCheckout, action_root.join("local_openshift_checkout")
236
+ autoload :LocalOriginCheckout, action_root.join("local_origin_checkout")
225
237
  autoload :CreateBareRepoPlaceholders, action_root.join("create_bare_repo_placeholders")
226
- autoload :RunOpenshiftTests, action_root.join("run_openshift_tests")
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 :DownloadArtifactsOpenshift, action_root.join("download_artifacts_openshift")
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 BuildOpenshift
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 openshift release build with images..."
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 openshift release build..."
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
@@ -17,7 +17,7 @@
17
17
  module Vagrant
18
18
  module Openshift
19
19
  module Action
20
- class BuildOpenshiftBaseImages
20
+ class BuildOriginBaseImages
21
21
  include CommandHelper
22
22
 
23
23
  def initialize(app, env, options)
@@ -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
- %{Host github.com
34
- StrictHostKeyChecking no
35
- UserKnownHostsFile=/dev/null
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
- %{Host github.com
31
- StrictHostKeyChecking no
32
- UserKnownHostsFile=/dev/null
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") {
@@ -18,7 +18,7 @@ require 'pathname'
18
18
  module Vagrant
19
19
  module Openshift
20
20
  module Action
21
- class DownloadArtifactsOpenshift
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 -avz -e 'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i #{private_key_path}' --rsync-path='sudo rsync' #{ssh_info[:username]}@#{ssh_info[:host]}:#{source} #{target}"
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 -avz -e 'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i #{private_key_path}' --rsync-path='sudo rsync' #{ssh_info[:username]}@#{ssh_info[:host]}:#{source} #{target}"
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' => ((stage == :inst) || (stage == :bootstrap)) && !@options[:no_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
- if @options[:no_synced_folders]
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 InstallOpenshift
20
+ class InstallOrigin
21
21
  include CommandHelper
22
22
  def initialize(app, env)
23
23
  @app = app
@@ -17,7 +17,7 @@
17
17
  module Vagrant
18
18
  module Openshift
19
19
  module Action
20
- class InstallOpenshiftAssetDependencies
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 InstallOpenshiftBaseDependencies
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
- # FIXME: Move 'openshift/centos-mongodb' into openshift org and then
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 2>&1
113
- git checkout c262de870b618eed648983aa994b03bc04641c72
114
- popd >/dev/null 2>&1
115
-
116
- # Re-install using this version of the tool
117
- GOPATH=/data go install golang.org/x/tools/cmd/vet
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