-
Notifications
You must be signed in to change notification settings - Fork 9
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
feat: This branch has a working operator Proof of Concept using minio #37
base: main
Are you sure you want to change the base?
Conversation
minio-data | ||
license.txt | ||
.ds_store | ||
``` |
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.
?
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.
I assume it is the ``` this is so annoying that my autocomplete adds this. I will clean up.
is_minio_running() { | ||
if [ -f "$MINIO_PID_FILE" ]; then | ||
if ps -p $(cat "$MINIO_PID_FILE") >/dev/null 2>&1; then | ||
return 0 | ||
else | ||
rm "$MINIO_PID_FILE" | ||
return 1 | ||
fi | ||
else | ||
return 1 | ||
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.
is_minio_running() {
[ -f "$MINIO_PID_FILE" ] && ps -p $(cat "$MINIO_PID_FILE") >/dev/null 2>&1
}
we shouldn't be doing operators in a function that is checking
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.
Yah, this can be greatly improved, I was just concerned about another instances of minio potentially running on someones machine and was over engineering this. 😅
bucket: | ||
name: "$MINIO_ROOT_USER:[email protected]:9000/$MINIO_WANDB_BUCKET" | ||
region: "us-east-2" |
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.
bucket: | |
name: "$MINIO_ROOT_USER:$MINIO_ROOT_PASSWORD@host.docker.internal:9000/$MINIO_WANDB_BUCKET" | |
region: "us-east-2" | |
bucket: | |
accessKey: MINIO_ROOT_USER | |
secretKey: MINIO_ROOT_PASSWORD | |
name: host.docker.internal:9000" | |
region: "us-east-2" | |
path: MINIO_WANDB_BUCKET # this part doesn't work we need to fix this |
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.
Yah, this needs fixing. Just hacked for now.
Simply set your kubernetes context to your local docker desktop environment, set a
license.txt
in the root of this repo,and
./run-operator.sh
to get a fully working operator up and running locally.(Tested on an M1/M2 mac)
This should allow for anyone at W&B to test the operator locally with ease and add features that don't require direct interactions with cloud native resources.
This script will spin up a local version of minio which is a good test for how onprem customers will run our software.
Lastly, run
to access the wandb app at http://localhost:8080 and the console at http://localhost:8081.