-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DRIVERS-2543 Pull mongohouse image from ADL ECR repo (#363)
* DRIVERS-2543 Pull mongohouse image from ADL ECR repo * bootstrap the secret * cleanup * support podman * try again * undo changes * fix handling of token * expose port * fix usage of tty * add sleep and debug print * remove sleep * try acquiring creds * try again * try again * fix arg name * fix arg handling * Add local config file * fix docker invocation * fix docker invocation * detach the docker container * Use separate files for ECR image usage * use updated config * restore config.yml * address review
- Loading branch information
Showing
6 changed files
with
57 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh | ||
# | ||
# This script sets up the local docker image for mongohoused. | ||
# | ||
set -eux | ||
|
||
DRIVERS_TOOLS=${DRIVERS_TOOLS:-$(readlink -f ../..)} | ||
REPO="904697982180.dkr.ecr.us-east-1.amazonaws.com/atlas-query-engine-test" | ||
pushd $DRIVERS_TOOLS/.evergreen/auth_aws | ||
bash setup_secrets.sh drivers/adl | ||
source secrets-export.sh | ||
unset AWS_SESSION_TOKEN | ||
popd | ||
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin $REPO | ||
docker pull $REPO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
# | ||
# This script launches a docker-based mongohoused for testing. | ||
# | ||
# There is no corresponding 'shutdown' script; this project relies | ||
# on Evergreen to terminate processes and clean up when tasks end. | ||
set -eux | ||
|
||
DRIVERS_TOOLS=${DRIVERS_TOOLS:-$(readlink -f ../..)} | ||
IMAGE=904697982180.dkr.ecr.us-east-1.amazonaws.com/atlas-query-engine-test | ||
USE_TTY="" | ||
test -t 1 && USE_TTY="-t" | ||
docker run -d -p 27017:27017 -v "$DRIVERS_TOOLS/.evergreen/atlas_data_lake:/src" -i $USE_TTY $IMAGE --config ./testdata/config/external/drivers/config.yaml |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters