vanagon 0.47.0 → 0.49.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a166d92c2d23c1fce61aa5ba9a05b9c41571738b8571fd01c2a97d15cc44fb7
4
- data.tar.gz: '00979e76b8f21b4992c47d5bf6aa4be3290d2e5914062952bc7e05ddbf7f0eb8'
3
+ metadata.gz: 0ecd4e8de6a3e8428eb762ca4d55afa3e2cdf0071b703f18b395ab8c732432b9
4
+ data.tar.gz: ea05e7c2523d3d6a679d2bc8172262af6695d10ba0138c364f3fa1d29c631ef4
5
5
  SHA512:
6
- metadata.gz: a2203572e393abc4b6a653353ce359231bad6837904ba63d8138d6c1fac73c521a16360e177d2d52cde66c6db452ea3f477a5b9b8abd56c88d2763d092d9ce41
7
- data.tar.gz: 45a19856e054337092ba6802aee517384bd8280d9d15492b7abac9c8014456b7f89c2e74179ea03f5235c4a349fe4f35f28a435f32f5ad8940cfde58437a6acf
6
+ metadata.gz: 481a6c131897e1723066ea8f8ad0424e96a6b96b6bcad4f7ad13a4dcd52828d3c2a627ec492c5a8a7b2cd8853eaf8c06afda23e936a0593386e6d2e0948e087b
7
+ data.tar.gz: df1643f138142373e6156ed71e31f1b46c51c27212781d9d90c9fdca8ba76e49dd94c8f27714d48d1735be0f3fc2dda37916991983a9bac490028e7e2021394e
@@ -40,7 +40,7 @@ class Vanagon
40
40
  extra_args = @platform.docker_run_args.nil? ? [] : @platform.docker_run_args
41
41
 
42
42
  Vanagon::Utilities.ex("#{@docker_cmd} run -d --name #{build_host_name}-builder #{ssh_args} #{extra_args.join(' ')} #{@platform.docker_image}")
43
- @target = URI.new('localhost')
43
+ @target = URI.parse('localhost')
44
44
 
45
45
  wait_for_ssh unless @platform.use_docker_exec
46
46
  rescue StandardError => e
@@ -0,0 +1,10 @@
1
+ platform "amazon-7-aarch64" do |plat|
2
+ plat.servicedir "/usr/lib/systemd/system"
3
+ plat.defaultdir "/etc/sysconfig"
4
+ plat.servicetype "systemd"
5
+
6
+ packages = %w(autoconf automake createrepo gcc gcc-c++ rsync cmake make rpm-libs rpm-build libarchive)
7
+ plat.provision_with("yum install -y --nogpgcheck #{packages.join(' ')}")
8
+ plat.install_build_dependencies_with "yum install --assumeyes"
9
+ plat.vmpooler_template "amazon-7-arm64"
10
+ end
@@ -0,0 +1,17 @@
1
+ platform 'fedora-40-x86_64' do |plat|
2
+ plat.servicedir '/usr/lib/systemd/system'
3
+ plat.defaultdir '/etc/sysconfig'
4
+ plat.servicetype 'systemd'
5
+ plat.dist 'fc40'
6
+
7
+ packages = %w[
8
+ autoconf automake bzip2-devel gcc gcc-c++ libselinux-devel
9
+ libsepol libsepol-devel make cmake pkgconfig readline-devel
10
+ rpmdevtools rsync swig zlib-devel systemtap-sdt-devel
11
+ perl-lib perl-FindBin
12
+ ]
13
+ plat.provision_with("/usr/bin/dnf install -y --best --allowerasing #{packages.join(' ')}")
14
+
15
+ plat.install_build_dependencies_with '/usr/bin/dnf install -y --best --allowerasing'
16
+ plat.vmpooler_template 'fedora-40-x86_64'
17
+ end
@@ -101,4 +101,26 @@ describe Vanagon::Engine::Docker do
101
101
  end
102
102
  end
103
103
  end
104
+
105
+ describe '#select_target' do
106
+ context 'when platform has use_docker_exec set' do
107
+ subject { described_class.new(platform_with_docker_exec) }
108
+
109
+ it 'starts a new docker instance' do
110
+ expect(Vanagon::Utilities).to receive(:ex).with("/usr/bin/docker run -d --name debian_10-slim-builder debian:10-slim")
111
+
112
+ subject.select_target
113
+ end
114
+
115
+ it 'sets the target to a localhost URI' do
116
+ allow(Vanagon::Utilities).to receive(:ex)
117
+
118
+ subject.select_target
119
+
120
+ uri = subject.target
121
+ expect(uri).to be_an_instance_of(URI::Generic)
122
+ expect(uri.path).to eq('localhost')
123
+ end
124
+ end
125
+ end
104
126
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vanagon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.47.0
4
+ version: 0.49.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet By Perforce
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-03 00:00:00.000000000 Z
11
+ date: 2024-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docopt
@@ -172,6 +172,7 @@ files:
172
172
  - lib/vanagon/platform/deb.rb
173
173
  - lib/vanagon/platform/defaults/amazon-2023-aarch64.rb
174
174
  - lib/vanagon/platform/defaults/amazon-2023-x86_64.rb
175
+ - lib/vanagon/platform/defaults/amazon-7-aarch64.rb
175
176
  - lib/vanagon/platform/defaults/debian-10-amd64.rb
176
177
  - lib/vanagon/platform/defaults/debian-11-aarch64.rb
177
178
  - lib/vanagon/platform/defaults/debian-11-amd64.rb
@@ -190,6 +191,7 @@ files:
190
191
  - lib/vanagon/platform/defaults/el-9-x86_64.rb
191
192
  - lib/vanagon/platform/defaults/fedora-36-x86_64.rb
192
193
  - lib/vanagon/platform/defaults/fedora-38-x86_64.rb
194
+ - lib/vanagon/platform/defaults/fedora-40-x86_64.rb
193
195
  - lib/vanagon/platform/defaults/osx-11-arm64.rb
194
196
  - lib/vanagon/platform/defaults/osx-11-x86_64.rb
195
197
  - lib/vanagon/platform/defaults/osx-12-arm64.rb