-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update aws-cli
and mc
tests to use data-dir
#50
Conversation
run.sh
Outdated
@@ -1,6 +1,6 @@ | |||
#!/bin/bash | |||
# | |||
# Minio Cloud Storage, (C) 2017 Minio, Inc. | |||
# Mint, (C) 2017 Minio, Inc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove the ,
run.sh
Outdated
@@ -55,6 +55,7 @@ _init() { | |||
if [ -z "$DATA_DIR" ]; then | |||
export DATA_DIR="/mint/data" | |||
fi | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stray new line not needed.
run/core/mc/test.sh
Outdated
@@ -1,6 +1,6 @@ | |||
#!/usr/bin/env bash | |||
# | |||
# Minio Cloud Storage, (C) 2017 Minio, Inc. | |||
# Mint, (C) 2017 Minio, Inc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove ,
run/core/mc/test.sh
Outdated
# Make bucket | ||
./mc mb target/$bucketName | ||
./mc mb target/"${bucketName}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put "target/" inside the quotes as well.
run/core/mc/test.sh
Outdated
|
||
echo "Testing if the bucket was created" | ||
# list buckets | ||
./mc ls target | ||
|
||
echo "Removing the bucket" | ||
# remove bucket | ||
./mc rm target/$bucketName | ||
./mc rm target/"${bucketName}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
0cf4174
to
e5903b7
Compare
Updated. |
build/data/install.sh
Outdated
createData () { | ||
# if no data directory passed from out side, create data directory and populate. else use the data directory from outside | ||
if [ ! -d $data_dir ]; then | ||
mkdir $data_dir |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This tabbing is off @nitisht need to see what text editor you are using.
build/data/install.sh
Outdated
data_dir="/mint/data" | ||
} | ||
|
||
createData () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to createDataFiles
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG
e5903b7
to
5df1e83
Compare
- Update dockerfile
5df1e83
to
b5037a1
Compare
Fixed review comments. |
Update dockerfile and Readme