mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
Merge pull request #526 from Microsoft/bsn-app-deploy-samples
Updated MLeap Sample
This commit is contained in:
+9
-6
@@ -1,19 +1,22 @@
|
||||
|
||||
# Application `hello-mleap/v1`
|
||||
# The README will help you deploy a mleap application and consume the same.
|
||||
|
||||
# Application `mleap/v1`
|
||||
|
||||
|
||||
> Generated by: `mssqlctl`
|
||||
|
||||
## Deploy Application
|
||||
|
||||
```bash
|
||||
> mssqlctl login --entrypoint http://host:port --u <username> --p <password>
|
||||
> mssqlctl app create --spec ./hello-mleap
|
||||
> mssqlctl app create --spec ./mleap
|
||||
```
|
||||
|
||||
## Consume Application
|
||||
# The following command will work if you use the sample
|
||||
|
||||
```bash
|
||||
> mssqlctl app run --name hello-mleap --version v1 --inputs leap-frame=@<path to the leap frame>
|
||||
> mssqlctl app run --name mleap --version v1 --inputs mleap-frame=@frame.json
|
||||
```
|
||||
|
||||
## Application `spec.yaml`
|
||||
@@ -22,7 +25,7 @@ All your apps should be specified in a YAML file like this - it tells the CLI
|
||||
what to deploy onto your cluster:
|
||||
|
||||
```yaml
|
||||
name: hello-mleap
|
||||
name: mleap
|
||||
version: v1
|
||||
runtime: Mleap
|
||||
bundleFileName: model.lr.zip
|
||||
@@ -30,5 +33,5 @@ replicas: 2
|
||||
poolsize: 2
|
||||
```
|
||||
|
||||
You can use this generated `/hello-mleap/spec.yaml` as a starting point to modify the
|
||||
You can use this generated `/mleap/spec.yaml` as a starting point to modify the
|
||||
application as you see fit.
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
name: hello-mleap
|
||||
name: mleap
|
||||
version: v1
|
||||
inputs: ./frame.json
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
name: hello-mleap1
|
||||
version: v1
|
||||
name: mleap
|
||||
version: v2
|
||||
runtime: Mleap
|
||||
bundleFileName: model.lr.zip
|
||||
replicas: 2
|
||||
Reference in New Issue
Block a user