Commit d869dcde authored by Georg Koppen's avatar Georg Koppen
Browse files

Merge remote-tracking branch 'boklm/bug_25623_v4'

parents 893a4825 56ba67b3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -6,7 +6,8 @@ file:

   export GRADLE_MAVEN_REPOSITORIES="file://$rootdir/[% c('input_files_by_name/gradle-dependencies') %]"

and rerun the build.
then allow network access during the build by setting
var/container/disable_network/build to 0 in rbm.conf, and rerun the build.

Dependent artifacts will show up as downloads in the logs. You can pull out
these dependencies into a list with the following command (replacing
+6 −0
Original line number Diff line number Diff line
@@ -238,6 +238,12 @@
			{
				"type": "uts"
			},
[% IF c("var/container/disable_network/" _ c("exec_name")) -%]
			{
				"type": "network",
				"path": "/var/run/netns/rbm-[% sha256(c("build_id", { error_if_undef => 1 })) %]"
			},
[% END -%]
			{
				"type": "mount"
			}
+9 −0
Original line number Diff line number Diff line
@@ -51,6 +51,9 @@ var:
  container:
    dir: '[% c("rbm_tmp_dir") %]/rbm-containers/[% sha256(c("build_id")) %]'
    user: rbm
    disable_network:
      # disable network in the build scripts
      build: 1
  input_files_list: |
    [% FOREACH file IN c("input_files_by_name").keys.sort -%]
    [% c("input_files_by_name/" _ file) %]
@@ -408,7 +411,13 @@ runc:
    cat > '[% c("var/container/dir") %]'/config.json << EOF
    [% INCLUDE 'runc-config.json' %]
    EOF
    [% IF c("var/container/disable_network/" _ c("exec_name")) -%]
      sudo ip netns add 'rbm-[% sha256(c("build_id", { error_if_undef => 1 })) %]'
    [% END -%]
    sudo runc [% IF c("var_p/runc100") %]run[% ELSE %]start[% END %] -b '[% c("var/container/dir") %]' rbm-[% sha256(c("build_id", { error_if_undef => 1 })) %] [% IF c("runc_hide_stderr") %]2>/dev/null[% END %]
    [% IF c("var/container/disable_network/" _ c("exec_name")) -%]
      sudo ip netns delete 'rbm-[% sha256(c("build_id", { error_if_undef => 1 })) %]'
    [% END -%]

  remote_put: |
    #!/bin/sh