File tree Expand file tree Collapse file tree 3 files changed +11
-7
lines changed
cookbooks/travis_ci_ubuntu_2204/recipes Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 58
58
#include_recipe 'travis_build_environment::redis'
59
59
# include_recipe 'travis_build_environment::mongodb'
60
60
include_recipe 'memcached'
61
+ include_recipe '::mongodb'
61
62
# TODO: Uncomment when cassandra works on Java 8 again
62
63
# https://github.com/travis-ci/packer-templates/issues/589
63
64
# include_recipe 'travis_build_environment::cassandra'
73
74
if node [ 'kernel' ] [ 'machine' ] != 'aarch64'
74
75
include_recipe '::erlang'
75
76
# include_recipe '::couchdb'
76
- # include_recipe '::mongodb'
77
77
include_recipe '::mysql'
78
78
include_recipe '::postgresql'
79
79
# include_recipe 'travis_build_environment::couchdb'
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
3
execute 'add_mongodb_gpg_key' do
4
- command 'sudo wget -qO - https://www.mongodb.org/static/pgp/server-4.2 .asc | apt-key add - '
4
+ command 'sudo wget -qO - https://www.mongodb.org/static/pgp/server-6.0 .asc | gpg --dearmor | sudo tee /usr/share/keyrings/mongodb.gpg > /dev/null '
5
5
end
6
6
7
7
execute 'add_mongodb_repository' do
8
- command 'sudo echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic /mongodb-org/4.2 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-4.2 .list'
8
+ command 'sudo echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb.gpg ] https://repo.mongodb.org/apt/ubuntu jammy /mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0 .list'
9
9
end
10
10
11
- apt_update
11
+ execute 'update_repositories' do
12
+ command 'sudo apt-get update -y'
13
+ end
12
14
13
- package 'mongodb' do
15
+ package 'mongodb-org ' do
14
16
action :install
15
17
end
16
18
17
- service 'mongodb' do
18
- action [ :disable , :stop ]
19
+ service 'mongod' do
20
+ action %i[ stop disable ]
21
+ not_if { node [ 'travis_build_environment' ] [ 'mongodb' ] [ 'service_enabled' ] }
19
22
end
Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ libltdl-dev
121
121
libmcrypt-dev
122
122
libmhash-dev
123
123
libmysqlclient-dev
124
+ libncurses5
124
125
libncurses5-dev
125
126
libncursesw5-dev
126
127
libossp-uuid-dev
You can’t perform that action at this time.
0 commit comments