Skip to content
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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zacharyblasczyk
Copy link
Contributor

Simply set your kubernetes context to your local docker desktop environment, set a license.txt in the root of this repo,
Screen Shot 2023-10-16 at 9 14 45 PM
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

kubectl port-forward svc/wandb-app 8080:8080 &
kubectl port-forward svc/wandb-console 8081:8082 &

to access the wandb app at http://localhost:8080 and the console at http://localhost:8081.

minio-data
license.txt
.ds_store
```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Copy link
Contributor Author

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.

@zacharyblasczyk zacharyblasczyk marked this pull request as draft October 17, 2023 02:24
Comment on lines +29 to +40
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
}
Copy link
Member

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

Copy link
Contributor Author

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. 😅

Comment on lines +114 to +116
bucket:
name: "$MINIO_ROOT_USER:[email protected]:9000/$MINIO_WANDB_BUCKET"
region: "us-east-2"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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

Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants