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-18 14:53:58 -0400
commit89ed1997348ae9ee23d26f044c3b284d788df15a (patch)
tree1f13050c05c50f844351e4a1d52a56054230066e
parent6eaf16f2cff132b3e9d2fc4f45253751cc964a37 (diff)
downloadmongo-89ed1997348ae9ee23d26f044c3b284d788df15a.tar.gz
SERVER-40491 Update Debian 8 image for package test
(cherry picked from commit 25211c43506ae212b20e830654a80d96e2a73bea)
-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