You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/demo.md
+15-8Lines changed: 15 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,17 @@
1
1
# Demo
2
2
3
3
This demo walks through the creation of a model compatible with [LUME-services](https://slaclab.github.io/lume-services/) tooling. You will:
4
-
1. Create a GitHub repository for the demo model.
4
+
1. Create a GitHub repository for the demo model
5
5
2. Build a templated project using [`lume-services-model-template`](https://github.com/slaclab/lume-services-model-template)
6
-
3. Register your model using the LUME-services API to Prefect orchestration tools, the MySQL model registry, and store results in a MongoDB service
6
+
3. Register your model using the LUME-services API and store deployment information into a MySQL database
7
+
4. Run your model, storing results in MongoDB database
8
+
5. Retrieve model results using LUME-services
7
9
8
10
9
-
prerequisites:
10
-
- dockerhub or stanford container registry
11
+
Requirements:
12
+
*[Docker desktop](https://www.docker.com/products/docker-desktop/) for launching the development environment
13
+
*[Conda installation](https://docs.conda.io/en/latest/miniconda.html) for the management of Python environments
14
+
* Either a [DockerHub](https://hub.docker.com/) account or Stanford account to use the [Stanford Container Registry](https://itcommunity.stanford.edu/unconference/sessions/2018/introducing-scr-stanford-container-registry) provided by the [code.stanford.edu](https://code.stanford.edu/SiteDocs/faq) effort.
11
15
12
16
13
17
## Package a model
@@ -20,7 +24,7 @@ Using your GitHub account, create an repository named `my-model` (feel free to s
20
24
21
25
Clone `lume-model-services-template` and navigate to repository:
If you plan to use the Stanford Container Registry, enter `2`. Otherwise, enter `1` for DockerHub.
64
+
If you plan to use the Stanford Container Registry, enter `2`. Otherwise, enter `1` for DockerHub. Now, enter the username you use for the contaner registry:
61
65
62
66
```
63
67
container_username: YOUR REGISTRY USERNAME
@@ -304,7 +308,7 @@ The release will trigger a GitHub action workflow for your project, which you ca
304
308
The below steps mimic a production deployment workflow.
305
309
306
310
307
-
### 14. Start services with docker-compose
311
+
### 12. Start services with docker-compose
308
312
309
313
LUME-services is packaged with a command line utility for launching the development environment, a docker-compose application with all services packaged and configurable via environment variables.
310
314
@@ -327,9 +331,12 @@ Once the console logs a message about passed health checks, you've started all s
327
331
328
332
And access the UI using your browser at http://localhost:8080.
329
333
334
+
## 13. Pull image (Stanford Container Registry)
335
+
If using the Stanford Container Registry, you'll have to pull the image before kicking off workflows so that Docker can find the image.
330
336
331
337
332
-
### 15. Run the notebook and register your model
338
+
339
+
### 14. Run the notebook and register your model
333
340
334
341
Create a new console window. Activate lume-services-dev and configure the environment variables:
0 commit comments