mirror of https://github.com/JoshKarpel/spiel
Various infrastructure updates (#168)
parent
57dcad28c4
commit
f08ed7e7c7
@ -0,0 +1,8 @@
|
||||
# Gallery
|
||||
|
||||
- [pytest: It's What's For Testing](https://github.com/JoshKarpel/pytest-its-whats-for-testing) by [JoshKarpel](https://github.com/JoshKarpel).
|
||||
|
||||
### Submitting to the Gallery
|
||||
|
||||
If you've made a talk with Spiel, please feel free to submit a [pull request](https://github.com/JoshKarpel/spiel/pulls)
|
||||
to add it to the gallery.
|
@ -1,16 +0,0 @@
|
||||
# Sandboxed Execution
|
||||
|
||||
Spiel presentations are live Python code: they can do anything that Python can do.
|
||||
You may want to run untrusted presentations (or even your own presentations) inside a container (but remember, even containers are not perfectly safe!).
|
||||
We produce a [container image](https://github.com/users/JoshKarpel/packages/container/package/spiel)
|
||||
that can be run by (for example) Docker.
|
||||
|
||||
Presentations without extra Python dependencies might just need to be bind-mounted into the container.
|
||||
For example, if your demo file is at `$PWD/presentation/deck.py`, you could do
|
||||
```bash
|
||||
$ docker run -it --rm --mount type=bind,source=$PWD/presentation,target=/presentation ghcr.io/joshkarpel/spiel spiel present /presentation/deck.py
|
||||
```
|
||||
|
||||
If the presentation has extra dependencies (like other Python packages),
|
||||
we recommend building a new image that inherits our image (e.g., `FROM ghcr.io/joshkarpel/spiel:vX.Y.Z`).
|
||||
Spiel's image itself inherits from the [Python base image](https://hub.docker.com/_/python).
|
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,7 @@
|
||||
from spiel.app import present
|
||||
from spiel.app import SuspendType, present
|
||||
from spiel.constants import __version__
|
||||
from spiel.deck import Deck
|
||||
from spiel.slide import Slide
|
||||
from spiel.triggers import Triggers
|
||||
|
||||
__all__ = ["present", "SuspendType", "__version__", "Deck", "Slide", "Triggers"]
|
||||
|
Loading…
Reference in New Issue