Skip to content

Commit b4259ff

Browse files
committed
updates for new travis jammy image
As far as we can tell, travis has updated some of the packages in their jammy image. Notably mongodb's version got bumped up (we actually have to downgrade now), and their version of docker was bumped, which causes us to have to install the buildx plugin via a different package (seems they have both the ubuntu apt sources and the docker.com apt sources which somehow used to play nice until now?) In addition we were using the mongo 7.x repo despite installing 6.x. I'm not sure how that ever worked, but they've been put back into sync.
1 parent c2fa4ab commit b4259ff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ cache:
1818
- $HOME/.cache/go-build
1919

2020
before_install:
21-
- sudo apt update
22-
- sudo apt install -y docker-buildx mongodb-org=${MONGODB} mongodb-org-database=${MONGODB} mongodb-org-server=${MONGODB} mongodb-mongosh=${MONGOSH} mongodb-org-mongos=${MONGODB} mongodb-org-tools=${MONGODB}
21+
- sudo apt-get update
22+
- sudo apt-get install --allow-downgrades -y docker-buildx-plugin mongodb-org=${MONGODB} mongodb-org-database=${MONGODB} mongodb-org-server=${MONGODB} mongodb-mongosh=${MONGOSH} mongodb-org-mongos=${MONGODB} mongodb-org-tools
2323
- mkdir /tmp/data
2424
- /usr/bin/mongod --dbpath /tmp/data --bind_ip 127.0.0.1 --replSet rs0 --logpath ${PWD}/mongod.log &> /dev/null &
2525
- until nc -z localhost 27017; do echo Waiting for MongoDB; sleep 1; done
@@ -28,8 +28,8 @@ before_install:
2828
addons:
2929
apt:
3030
sources:
31-
- sourceline: 'deb https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse'
32-
key_url: 'https://pgp.mongodb.com/server-7.0.asc'
31+
- sourceline: 'deb https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 multiverse'
32+
key_url: 'https://pgp.mongodb.com/server-6.0.asc'
3333
artifacts:
3434
s3_region: us-west-2
3535
paths:

0 commit comments

Comments
 (0)