This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #80 from NealAnalyticsLLC/mlflow-on-azure-stack
Adding Sample notebook for MLflow
- Loading branch information
Showing
9 changed files
with
877 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM debian:stretch | ||
ARG BUNDLE_DIR | ||
RUN apt-get update && apt-get install -y ca-certificates | ||
RUN apt-get install -y wget | ||
# Use the BUNDLE_DIR build argument to copy files into the bundle | ||
COPY . $BUNDLE_DIR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
## Step 1: Install Porter | ||
Make sure you have Porter installed. You can find the installation instructions for your OS at the link provided below. | ||
|
||
[Porter Installation Instructions](https://porter.sh/install/) | ||
|
||
|
||
## Step 2: Build Porter CNAB | ||
First you will need to navigate to this directory in the repository | ||
Next, you will build the porter CNAB | ||
|
||
```sh | ||
porter build | ||
``` | ||
|
||
## Step 3: Generate Credentials | ||
This step is needed to connect to your Kubernetes cluster | ||
|
||
```sh | ||
porter credentials generate | ||
``` | ||
Enter path to your kubeconfig file when prompted | ||
|
||
## Step 4: Use Porter CNAB | ||
Run one of the below commands to interact with the CNAB | ||
|
||
```sh | ||
porter install --cred <name of your credential> | ||
porter upgrade --cred <name of your credential> | ||
porter uninstall --cred <name of your credential> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
install() { | ||
echo Installing MLflow | ||
kubectl create namespace mlflow | ||
kubectl apply -f ./tracking_server.yaml --namespace mlflow | ||
kubectl get service mlflow-service --namespace mlflow --output jsonpath={.status.loadBalancer.ingress[0].ip} | ||
} | ||
|
||
upgrade() { | ||
echo Upgrade functionality has not been implemented | ||
} | ||
|
||
uninstall() { | ||
echo Uninstalling MLflow server | ||
kubectl delete namespace mlflow --now=true --wait=true | ||
} | ||
|
||
# Call the requested function and pass the arguments as-is | ||
"$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM continuumio/miniconda3 | ||
|
||
WORKDIR /app | ||
|
||
ADD . /app | ||
|
||
RUN pip install mlflow | ||
|
||
EXPOSE 5000 | ||
|
||
ENTRYPOINT mlflow server --host 0.0.0.0 --port 5000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# ignore files generated through the tutorial | ||
mlruns | ||
conda.yaml | ||
MLproject | ||
tutorial.py | ||
ElasticNet-paths.png |
Oops, something went wrong.