diff options
author | trahman1318 <tausif.rahman@mongodb.com> | 2022-01-04 17:47:05 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-01-04 18:42:17 +0000 |
commit | 84727e89407b36263e1d625348e8b26db03d714b (patch) | |
tree | f11108cfdfa7d01f3160904c2d10e6a9856eeb71 /evergreen | |
parent | da82e5278ca717d3228e4837a3e815c5ced876e0 (diff) | |
download | mongo-84727e89407b36263e1d625348e8b26db03d714b.tar.gz |
SERVER-61400 Add new docker compose for 1 shard configuration
Diffstat (limited to 'evergreen')
-rw-r--r-- | evergreen/antithesis_image_build.sh | 44 |
1 files changed, 26 insertions, 18 deletions
diff --git a/evergreen/antithesis_image_build.sh b/evergreen/antithesis_image_build.sh index de0d79c99fd..193af6bbc43 100644 --- a/evergreen/antithesis_image_build.sh +++ b/evergreen/antithesis_image_build.sh @@ -20,22 +20,22 @@ ldd src/dist-test/bin/mongo | grep libvoidstar # prepare the image building environment cp -rf src/buildscripts/antithesis/ antithesis # due to gitignore, we can't commit a folder called logs, so make it here -mkdir -p antithesis/logs/database{1,2,3} +mkdir -p antithesis/topologies/replica_set/logs/{database1,database2,database3,workload} +mkdir -p antithesis/topologies/sharded_cluster/logs/{database1,database2,database3,database4,database5,database6,configsvr1,configsvr2,configsvr3,mongos,workload} # copy ... to the build context # resmoke -cp -rf src antithesis/workload/src +cp -rf src antithesis/base_images/workload/src # mongo binary -cp src/dist-test/bin/mongo antithesis/workload +cp src/dist-test/bin/mongo antithesis/base_images/workload # libvoidstar -cp /usr/lib/libvoidstar.so antithesis/workload/ +cp /usr/lib/libvoidstar.so antithesis/base_images/workload # these aren't needed for the workload image, so get rid of them -rm -rf antithesis/workload/src/dist-test +rm -rf antithesis/base_images/workload/src/dist-test # all mongodb binaries -cp -rf src/dist-test antithesis/database -cp /usr/lib/libvoidstar.so antithesis/database/ +cp -rf src/dist-test antithesis/base_images/mongo_binaries +cp /usr/lib/libvoidstar.so antithesis/base_images/mongo_binaries/ -cd antithesis/workload # push images as evergreen-latest-${branch_name}, unless it's a patch tag="evergreen-latest-${branch_name}" if [ "${is_patch}" = "true" ]; then @@ -47,14 +47,19 @@ if [ -n "${antithesis_image_tag}" ]; then tag=$antithesis_image_tag fi +cd antithesis/base_images/mongo_binaries +docker build . -t mongo-binaries:$tag + +cd ../workload docker build . -t workload:$tag -cd ../database -docker build . -t database:$tag -cd .. -# ensure that the embedded image references actually point to the images we're -# pushing here + +cd ../../topologies/replica_set sed -i s/evergreen-latest-master/$tag/ docker-compose.yml -docker build . -t config:$tag +docker build . -t repl-set-config:$tag + +cd ../sharded_cluster +sed -i s/evergreen-latest-master/$tag/ docker-compose.yml +docker build . -t sharded-cluster-config:$tag # login, push, and logout echo "${antithesis_repo_key}" > mongodb.key.json @@ -62,14 +67,17 @@ cat mongodb.key.json | docker login -u _json_key https://us-central1-docker.pkg. rm mongodb.key.json # tag and push to the registry +docker tag "mongo-binaries:$tag" "us-central1-docker.pkg.dev/molten-verve-216720/mongodb-repository/mongo-binaries:$tag" +docker push "us-central1-docker.pkg.dev/molten-verve-216720/mongodb-repository/mongo-binaries:$tag" + docker tag "workload:$tag" "us-central1-docker.pkg.dev/molten-verve-216720/mongodb-repository/workload:$tag" docker push "us-central1-docker.pkg.dev/molten-verve-216720/mongodb-repository/workload:$tag" -docker tag "database:$tag" "us-central1-docker.pkg.dev/molten-verve-216720/mongodb-repository/database:$tag" -docker push "us-central1-docker.pkg.dev/molten-verve-216720/mongodb-repository/database:$tag" +docker tag "repl-set-config:$tag" "us-central1-docker.pkg.dev/molten-verve-216720/mongodb-repository/repl-set-config:$tag" +docker push "us-central1-docker.pkg.dev/molten-verve-216720/mongodb-repository/repl-set-config:$tag" -docker tag "config:$tag" "us-central1-docker.pkg.dev/molten-verve-216720/mongodb-repository/config:$tag" -docker push "us-central1-docker.pkg.dev/molten-verve-216720/mongodb-repository/config:$tag" +docker tag "sharded-cluster-config:$tag" "us-central1-docker.pkg.dev/molten-verve-216720/mongodb-repository/sharded-cluster-config:$tag" +docker push "us-central1-docker.pkg.dev/molten-verve-216720/mongodb-repository/sharded-cluster-config:$tag" docker logout https://us-central1-docker.pkg.dev |