diff options
author | Brian McCarthy <brian.mccarthy@mongodb.com> | 2019-04-04 14:24:58 -0400 |
---|---|---|
committer | Brian McCarthy <brian.mccarthy@mongodb.com> | 2019-05-14 09:24:55 -0400 |
commit | d8b5ce3e76f394b6525822574a32dc033b58cf0d (patch) | |
tree | eee002a423776047f0ba26f580a0b4df1d937680 | |
parent | 27dd7882d3ff006628830b63c5ddfd83ff1a2909 (diff) | |
download | mongo-d8b5ce3e76f394b6525822574a32dc033b58cf0d.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.debian8 | 4 | ||||
-rw-r--r-- | buildscripts/package_test/recipes/install_mongodb.rb | 12 |
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 9b4ea703b2b..6afd92b6511 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 |