mirror of
https://github.com/hexbabe/python-appimage-module.git
synced 2025-12-16 10:00:35 +01:00
f60b51d156cb88bf684c7aa618e2e098fb62266d
python-appimage-module
This is an example of using AppImageBuilder to bundle a Python module as an AppImage (only supported on AArch64 for now), and then running it on a robot.
Use this as a reference for:
- An alternative to managing Python version/dependencies directly
Robot config
Replace module_id and model with the values you choose for your module.
TODO: add example config after the module is on the registry
Quick tour of this repo
packaging/: The directory containing the Dockerfile that configures the Docker image for the builder, the AppImageBuilder.yml config file, and the iconsrc/: Python code for the Viam moduleMakefile:makecommands to build the module in different waysmeta.json: The metadata config file used when uploading/updating module info on the registryrequirements.txt: List of Python dependenciesrun.sh: The entrypoint execution script that starts up the module process
Forking this repo
If you fork this and want to deploy to a robot, you'll need to change all placeholder variables, references to 'viam', and optionally set up secrets for CI. Follow the fork instructions from the Python example repo.
Description
Example repo for bundling a Viam module as an AppImage with AppImageBuilder
Languages
Python
68.4%
Shell
17.4%
Makefile
9.3%
Dockerfile
4.9%