Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/darwindarak/watsonx-incubator-env
Lab environment container for the Watsonx.ai training session
https://github.com/darwindarak/watsonx-incubator-env
Last synced: about 2 months ago
JSON representation
Lab environment container for the Watsonx.ai training session
- Host: GitHub
- URL: https://github.com/darwindarak/watsonx-incubator-env
- Owner: darwindarak
- Created: 2024-02-21T01:11:15.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-21T05:34:12.000Z (11 months ago)
- Last Synced: 2024-10-13T23:29:02.282Z (3 months ago)
- Language: Dockerfile
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker Image for IBM Watsonx Incubation Program
[](https://hub.docker.com/r/darwindarak/watsonx-incubator-env)
This repo is used for building a container [image](https://hub.docker.com/r/darwindarak/watsonx-incubator-env) that contains the Python tools & libraries needed to run the [labs](https://github.com/edsml-kl121/gen_ai_incubation_watsonx_th) for the IBM Watsonx Incubator/Pilot/Hackathon programs.
## Prerequisites
- `docker` (**required**) or compatible container runtime
- `git` (*optional*)## Usage
We first need to get the `edsml-kl121/gen_ai_incubation_watsonx_th` lab repository from GitHub either using `git`
```bash
git clone [email protected]:edsml-kl121/gen_ai_incubation_watsonx_th.git
```
or [download](https://github.com/edsml-kl121/gen_ai_incubation_watsonx_th/archive/refs/heads/main.zip) the entire repository as a zip file.The repository has three types of labs:
- Jupyter notebooks (labs 1-4)
- Streamlit applications (lab 5)
- Streamlit applications with vector database (labs 6+)### Running Jupyter Notebook
```bash
# Move to the repo (might be named differently based on how you cloned it)
cd gen_ai_incubation_watsonx_th
# The default command for the container is to run a Jupyter notebook, the
# arguments do the following:
# - remove the container when we stop it
# - gives Jupyter notebook access to the cloned notebooks
# - provide access to Jupyter lab through port 8888
docker run \
--rm \
-v .:/home/lab/notebooks \
-p 8888:8888 \
darwindarak/watsonx-incubator-env
```### Running Streamlit Applications
```bash
# Move to the repo (might be named differently based on how you cloned it)
cd gen_ai_incubation_watsonx_th
# We will override the default Jupyter notebook command and run streamlit instead.
# The arguments do the following:
# - remove the container when we stop it
# - gives Streamlit access to the cloned notebooks
# - provide access to the Streamlit app through port 8510
# - specify the container image
docker run \
--rm \
-v ./:/home/lab/notebooks \
-p 8501:8510 \
darwindarak/watsonx-incubator-env \
streamlit run "/home/lab/notebooks/TH/lab 05- Building Question-Answering with watsonx.ai and Streamlit/Level_1_English/app.py"
```## Todo
- [x] Make the Dockerfile
- [ ] Add instructions for connecting local dev environment (e.g. VSCode) to the container
- [x] Add instructions for how to access Jupyter environment & Streamlit app in the container
- [ ] Add pipeline to build packages for both `amd64` and `aarch64` architectures