Skip to content

Commit

Permalink
feat(normalize_storage): use MINIO_BUCKET env-var
Browse files Browse the repository at this point in the history
Use MINIO_BUCKET environment variable to define the bucket name for minio storage type
instead of hardcoded `git`

If there isnt a value on MINIO_BUCKET var, normalize_storage will use `git` by default
  • Loading branch information
drgarcia1986 committed Aug 3, 2017
1 parent 273b851 commit 7c44b0f
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
MINION_BUCKET_NAME=${MINIO_BUCKET:-git}
mkdir -p /app/objectstore/minio/
echo "git" > /app/objectstore/minio/builder-bucket
echo "$MINION_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 7c44b0f

Please sign in to comment.