summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian McCarthy <brian.mccarthy@mongodb.com>2019-04-04 14:24:58 -0400
committerBrian McCarthy <brian.mccarthy@mongodb.com>2019-04-08 15:29:54 -0400
commit25211c43506ae212b20e830654a80d96e2a73bea (patch)
tree7348d5d7638434c52e913dab91e9dac2c174d6e6
parent4cd74465dc857148e897654d31195226ef665e70 (diff)
downloadmongo-25211c43506ae212b20e830654a80d96e2a73bea.tar.gz
SERVER-40491 Update Debian 8 image for package test
-rw-r--r--buildscripts/package_test/files/sources.list.debian84
-rw-r--r--buildscripts/package_test/recipes/install_mongodb.rb12
2 files changed, 16 insertions, 0 deletions
diff --git a/buildscripts/package_test/files/sources.list.debian8 b/buildscripts/package_test/files/sources.list.debian8
new file mode 100644
index 00000000000..0ad1174270a
--- /dev/null
+++ b/buildscripts/package_test/files/sources.list.debian8
@@ -0,0 +1,4 @@
+deb http://archive.debian.org/debian jessie main
+deb-src http://archive.debian.org/debian jessie main
+deb http://security.debian.org/ jessie/updates main
+deb-src http://security.debian.org/ jessie/updates main
diff --git a/buildscripts/package_test/recipes/install_mongodb.rb b/buildscripts/package_test/recipes/install_mongodb.rb
index 34134dc9bfa..4814d80e5a1 100644
--- a/buildscripts/package_test/recipes/install_mongodb.rb
+++ b/buildscripts/package_test/recipes/install_mongodb.rb
@@ -28,6 +28,18 @@ execute 'extract artifacts' do
end
if platform_family? 'debian'
+
+ # SERVER-40491 Debian 8 sources.list need to point to archive url
+ if node['platform_version'] == '8.1'
+ cookbook_file '/etc/apt/sources.list' do
+ source 'sources.list.debian8'
+ owner 'root'
+ group 'root'
+ mode '0644'
+ action :create
+ end
+ end
+
execute 'apt-get update' do
command 'apt-get update'
end