Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What kind of change does this PR introduce?
Ability to create a browser-accessible Docker image where OpenAdapt is set up and ready to run.
screencast.mp4
Summary
Goals:
Checklist
How can your code be run and tested?
Launch with:
docker build -t openadapt-local . docker run --rm --shm-size=512m -p 6901:6901 openadapt-local
Then open http://localhost:6901 in the browser.
Other information
How it works:
ForceFloat
out ofmodels.py
because requiring models.py in migrations otherwise triggers an import chain that ends with packages that expect an X11 environment, which is not available during the docker buildThere are probably more correct ways for doing all of the above; for now I've only aimed at the first step of the "make it work, make it right, make it fast" mantra.
What works:
python -m openadapt.record "testing out openadapt"
python -m openadapt.app.dashboard.run
What doesn't yet:
python -m openadapt.entrypoint
(downgrading PySide to 6.2 to match system-installed Qt libraries makes these commands run, but also causes segfaults onopenadapt.record
)