Skip to content

Commit fc2e814

Browse files
committed
Add information on Docker image to README.md
1 parent db26e50 commit fc2e814

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,27 @@ http://localhost:18000/static.json
148148
One advantage of a multi-file application structure is that is very easy to extend the application. You can simply place new files into the appropriate location in your application directory and they will automatically be served.
149149

150150

151+
## Using Docker
152+
153+
Wolfram Web Engine for Python is available as [a container image from Docker Hub](https://hub.docker.com/r/wolframresearch/wolframwebengineforpython) for use in containerized environments.
154+
155+
```
156+
# exposes the server on port 8080 of the host machine
157+
>>> docker run -ti -p 8080:18000 wolframresearch/wolframwebengineforpython --demo
158+
159+
# serve files from the /srv directory
160+
>>> docker run -ti -p 8080:18000 wolframresearch/wolframwebengineforpython /srv
161+
```
162+
163+
This image is based on the [official Wolfram Engine Docker image](https://hub.docker.com/r/wolframresearch/wolframengine); information on product activation and license terms is available on the [Docker Hub page](https://hub.docker.com/r/wolframresearch/wolframengine) for the latter image.
164+
165+
Note regarding on-demand licensing: As Wolfram Web Engine for Python does not use WolframScript, the `-entitlement` command-line option and the `WOLFRAMSCRIPT_ENTITLEMENTID` environment variable are not sufficient to pass an on-demand license entitlement ID to the Wolfram Engine kernel inside this image. As a workaround, the `WOLFRAMINIT` environment variable can be set to pass both the entitlement ID and the license server address to the kernel:
166+
167+
```
168+
>>> docker run -ti -p 8080:18000 --env WOLFRAMINIT='-pwfile !cloudlm.wolfram.com -entitlement O-WSTD-DA42-GKX4Z6NR2DSZR' wolframresearch/wolframwebengineforpython --demo
169+
```
170+
171+
151172
## Options
152173

153174
```

0 commit comments

Comments
 (0)