Skip to content

Commit

Permalink
Bumping clang version and fixing mongodb
Browse files Browse the repository at this point in the history
  • Loading branch information
smokodon committed May 15, 2023
1 parent 6ec8e02 commit 62d3a19
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cookbooks/travis_ci_ubuntu_2204/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
#include_recipe 'travis_build_environment::redis'
# include_recipe 'travis_build_environment::mongodb'
include_recipe 'memcached'
include_recipe '::mongodb'
# TODO: Uncomment when cassandra works on Java 8 again
# https://github.com/travis-ci/packer-templates/issues/589
# include_recipe 'travis_build_environment::cassandra'
Expand All @@ -73,7 +74,6 @@
if node['kernel']['machine'] != 'aarch64'
include_recipe '::erlang'
# include_recipe '::couchdb'
# include_recipe '::mongodb'
include_recipe '::mysql'
include_recipe '::postgresql'
# include_recipe 'travis_build_environment::couchdb'
Expand Down
15 changes: 9 additions & 6 deletions cookbooks/travis_ci_ubuntu_2204/recipes/mongodb.rb
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
# frozen_string_literal: true

execute 'add_mongodb_gpg_key' do
command 'sudo wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | apt-key add -'
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'
end

execute 'add_mongodb_repository' do
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'
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'
end

apt_update
execute 'update_repositories' do
command 'sudo apt-get update -y'
end

package 'mongodb' do
package 'mongodb-org' do
action :install
end

service 'mongodb' do
action [:disable, :stop]
service 'mongod' do
action %i[stop disable]
not_if { node['travis_build_environment']['mongodb']['service_enabled'] }
end
1 change: 1 addition & 0 deletions packer-assets/ci-ubuntu-2204-packages.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ libltdl-dev
libmcrypt-dev
libmhash-dev
libmysqlclient-dev
libncurses5
libncurses5-dev
libncursesw5-dev
libossp-uuid-dev
Expand Down

0 comments on commit 62d3a19

Please sign in to comment.