mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-08-11 11:13:12 +08:00
31 lines
809 B
Markdown
31 lines
809 B
Markdown
# devcontainer
|
|
|
|
## example usage
|
|
|
|
Below are some example use cases you might want to run from within the
|
|
devcontainer (either within VSCode or GitHub Codespaces).
|
|
|
|
### Run pre-commit
|
|
|
|
```bash
|
|
# run pre-commit
|
|
pre-commit run --all-files
|
|
```
|
|
|
|
### Docker compose
|
|
|
|
```bash
|
|
# build the image
|
|
docker compose up --build
|
|
```
|
|
|
|
You should see some docker containers being pulled and activated.
|
|
|
|
Once you see the line
|
|
`open-assistant-web-1 | Listening on port 3000 url: http://localhost:3000` you
|
|
should be able to access that port like below:
|
|
|
|
<img width="640" alt="image" src="https://user-images.githubusercontent.com/2178292/210395676-e9c2aab5-cb54-4ae6-b1eb-ac929fd73607.png">
|
|
|
|
<img width="640" alt="image" src="https://user-images.githubusercontent.com/2178292/210396207-1b2e259f-4d5d-475d-b225-91e2bd004071.png">
|