Skip to content

Commit

Permalink
Merge pull request #141 from drgarcia1986/minio-bucket-fix
Browse files Browse the repository at this point in the history
feat(normalize_storage): use `MINIO_BUCKET` env-var
  • Loading branch information
vdice authored Aug 8, 2017
2 parents 4a790da + cc9ab8c commit ce4ba39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rootfs/bin/normalize_storage
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/usr/bin/env bash
export BUCKET_FILE=/var/run/secrets/deis/objectstore/creds/builder-bucket
if [ "$BUILDER_STORAGE" == "minio" ]; then
MINIO_BUCKET_NAME=${MINIO_BUCKET:-git}
mkdir -p /app/objectstore/minio/
echo "git" > /app/objectstore/minio/builder-bucket
echo "$MINIO_BUCKET_NAME" > /app/objectstore/minio/builder-bucket
export BUCKET_FILE=/app/objectstore/minio/builder-bucket
elif [ "$BUILDER_STORAGE" == "azure" ] || [ "$BUILDER_STORAGE" == "swift" ] ; then
export CONTAINER_FILE=/var/run/secrets/deis/objectstore/creds/builder-container
Expand Down

0 comments on commit ce4ba39

Please sign in to comment.