Skip to content

Commit 24312ca

Browse files
committed
readme update
1 parent 3b56810 commit 24312ca

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

README.md

+31
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,37 @@ docker compose up --build
139139
```
140140
> Add authentication if running this on a server which is accessible to others, see [https://jupyter-notebook.readthedocs.io/en/stable/security.html](https://jupyter-notebook.readthedocs.io/en/stable/security.html)
141141
142+
or
143+
144+
```bash
145+
docker buildx build --no-cache -t stackql-jupyter-demo:latest .
146+
```
147+
ensure nothing is running on port `8888`:
148+
149+
```bash
150+
sudo lsof -i -P -n | grep LISTEN
151+
```
152+
153+
then run using:
154+
155+
```bash
156+
docker run -d -p 8888:8888 \
157+
-e AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" \
158+
-e AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" \
159+
-e STACKQL_GITHUB_USERNAME="$STACKQL_GITHUB_USERNAME" \
160+
-e STACKQL_GITHUB_PASSWORD="$STACKQL_GITHUB_PASSWORD" \
161+
-e GOOGLE_CREDENTIALS="$GOOGLE_CREDENTIALS" \
162+
stackql-jupyter-demo:latest \
163+
/bin/sh -c "/scripts/entrypoint.sh"
164+
```
165+
166+
to stop and remove:
167+
168+
```bash
169+
docker stop $(docker ps -l -q --filter status=running --filter ancestor=stackql-jupyter-demo)
170+
docker rm $(docker ps --filter status=exited --filter ancestor=stackql-jupyter-demo -q)
171+
```
172+
142173
### 3. Use your notebook
143174
Navigate to `http://localhost:8888` and run your StackQL commands! Use the sample notebook files included in the Jupyter workspace in the image.
144175

0 commit comments

Comments
 (0)