Skip to content

Commit b7a2d5b

Browse files
author
Matthew Fisher
committed
fix(setup_envdir): remove AWS_REGION from WALE_S3_ENDPOINT
1 parent bcf2b28 commit b7a2d5b

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ RUN buildDeps='gcc git libffi-dev libssl-dev python3-dev python3-pip python3-whe
4242
envdir==0.7 \
4343
wal-e[aws,azure,google,swift]==v1.0.1 && \
4444
# "upgrade" boto to 2.43.0 + the patch to fix minio connections
45-
pip install --disable-pip-version-check --no-cache-dir --upgrade git+https://github.com/deis/boto@d5d32ec42c99e9ecd030f8a4873adcda0070153d && \
45+
pip install --disable-pip-version-check --no-cache-dir --upgrade git+https://github.com/deis/boto@88c980e56d1053892eb940d43a15a68af4ebb5e6 && \
4646
# cleanup
4747
apt-get purge -y --auto-remove $buildDeps && \
4848
apt-get autoremove -y && \

contrib/ci/test-minio.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ trap 'kill-container $MINIO_JOB' INT TERM
4141
MINIO_JOB=$(docker run -dv $CURRENT_DIR/tmp/aws-admin:/var/run/secrets/deis/minio/admin -v $CURRENT_DIR/tmp/aws-user:/var/run/secrets/deis/minio/user -v $CURRENT_DIR/tmp/k8s:/var/run/secrets/kubernetes.io/serviceaccount quay.io/deisci/minio:canary boot server /home/minio/)
4242

4343
# boot postgres, linking the minio container and setting DEIS_MINIO_SERVICE_HOST and DEIS_MINIO_SERVICE_PORT
44-
PG_CMD="docker run -d --link $MINIO_JOB:minio --link $MINIO_JOB:s3-us-east-1.minio -e PGCTLTIMEOUT=1200 -e BACKUP_FREQUENCY=1s -e DATABASE_STORAGE=minio -e DEIS_MINIO_SERVICE_HOST=minio -e DEIS_MINIO_SERVICE_PORT=9000 -v $CURRENT_DIR/tmp/creds:/var/run/secrets/deis/database/creds -v $CURRENT_DIR/tmp/aws-user:/var/run/secrets/deis/objectstore/creds $1"
44+
PG_CMD="docker run -d --link $MINIO_JOB:minio -e PGCTLTIMEOUT=1200 -e BACKUP_FREQUENCY=1s -e DATABASE_STORAGE=minio -e DEIS_MINIO_SERVICE_HOST=minio -e DEIS_MINIO_SERVICE_PORT=9000 -v $CURRENT_DIR/tmp/creds:/var/run/secrets/deis/database/creds -v $CURRENT_DIR/tmp/aws-user:/var/run/secrets/deis/objectstore/creds $1"
4545

4646
# kill containers when this script exits or errors out
4747
trap 'kill-container $PG_JOB' INT TERM

rootfs/docker-entrypoint-initdb.d/001_setup_envdir.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if [[ "$DATABASE_STORAGE" == "s3" || "$DATABASE_STORAGE" == "minio" ]]; then
1212
AWS_REGION="us-east-1"
1313
BUCKET_NAME="dbwal"
1414
# these only need to be set if we're not accessing S3 (boto will figure this out)
15-
echo "http+path://s3-$AWS_REGION.$DEIS_MINIO_SERVICE_HOST:$DEIS_MINIO_SERVICE_PORT" > WALE_S3_ENDPOINT
15+
echo "http+path://$DEIS_MINIO_SERVICE_HOST:$DEIS_MINIO_SERVICE_PORT" > WALE_S3_ENDPOINT
1616
echo "$DEIS_MINIO_SERVICE_HOST" > S3_HOST
1717
echo "$DEIS_MINIO_SERVICE_PORT" > S3_PORT
1818
# enable sigv4 authentication

0 commit comments

Comments
 (0)