Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit a8ed027

Browse files
committed
#24 Add direnv configs for Minio
This enables a per direcotry configuration which does not mangle up with other projects using S3. Signed-off-by: Sven Strittmatter <sven.strittmatter@iteratec.com>
1 parent 45ee6d1 commit a8ed027

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

.envrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# shellcheck shell=sh
2+
# https://direnv.net/man/direnv-stdlib.1.html
3+
PATH_add bin
4+
# shellcheck disable=SC2155
5+
export PROJECT_DIR="$(pwd)"
6+
7+
export S3_BUCKET="scb"
8+
export S3_USE_SSL="false"
9+
export S3_ENDPOINT="127.0.0.1:9000"
10+
# shellcheck disable=2039,1090
11+
source "${PROJECT_DIR}/.s3_credentials"

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ coverage/
44
.vagrant
55
**.log
66
**/*.monopic
7-
.envrc
7+
.s3_credentials

docs/developer-guide/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export S3_USE_SSL="false" # This ensures that the operator will connect even wit
6464
export S3_ENDPOINT="127.0.0.1:9000"
6565
```
6666

67-
You can save time by using [direnv](https://direnv.net/) to export these variables in your project.
67+
You can save time by using [direnv](https://direnv.net/) to export these variables in your project. If you use direnv just add a file `.s3_credentials` with your Minio credentials.
6868

6969
### Build and Run the Operator
7070

0 commit comments

Comments
 (0)