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

Disable run in Quickstart (again) #285

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions quickstart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ To deploy MLX locally with Kubernetes on Docker (KIND) follow this
In a nutshell, run these two commands and bring up MLX in your browser when
you see the log message `Open the MLX Dashboard at http://localhost:80/`:

wget https://raw.githubusercontent.com/machine-learning-exchange/mlx/main/quickstart/docker-compose.yaml
curl -O https://raw.githubusercontent.com/machine-learning-exchange/mlx/main/quickstart/docker-compose.yaml
Copy link
Member Author

Choose a reason for hiding this comment

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

curl appears to be more widely available than wget, i.e. my new Mac did not have wget but it did have curl


docker compose up


Expand All @@ -43,7 +44,7 @@ default of 2 GB memory to 4 GB.

Either, download the `docker-compose.yaml` directly:

wget https://raw.githubusercontent.com/machine-learning-exchange/mlx/main/quickstart/docker-compose.yaml
curl -O https://raw.githubusercontent.com/machine-learning-exchange/mlx/main/quickstart/docker-compose.yaml

Or, clone this repository and navigate to the `quickstart` folder:

Expand Down
5 changes: 5 additions & 0 deletions quickstart/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ services:
HEALTH_API: "http://mlx-api:8080/apis/v1alpha1/health_check?check_database=true&check_object_store=true"
UPLOAD_API: "http://mlx-api:8080/apis/v1alpha1/catalog/upload_from_url"
CATALOG_URL: "https://raw.githubusercontent.com/machine-learning-exchange/mlx/main/bootstrapper/catalog_upload.json"
SETTINGS_API: "http://mlx-api:8080/apis/v1alpha1/settings"
command:
- |
until curl -I -s "$${HEALTH_API}" | grep -q "200 OK"; do
Expand All @@ -104,6 +105,10 @@ services:
-H "Content-Type: multipart/form-data" \
-F url="$${CATALOG_URL}" \
-s "$${UPLOAD_API}" | grep -iE "total_|error"
curl -X PUT \
-H 'Content-Type: application/json' \
-d '{"Execution enabled": false, "Inference Services": false}' \
-s "$${SETTINGS_API}" -o /dev/null --show-error

dashboard:
image: curlimages/curl
Expand Down