mirror of
https://github.com/dimalo/klipper-web-control-docker.git
synced 2026-03-02 01:50:47 +01:00
- BREAKING CHANGE: make printer.cfg the main config file, instead of klipper.cfg. existing configs need to be migrated: - copy all include statements from klipper.cfg to printer.cfg - remove klipper.cfg - add run_in_venv script to activate venv correctly, then start klipper/moonraker - add rpi_mcu config file and include in printer.cfg - add cap_add: SYS_NICE to docker-compose to run klipper_mcu - build & run klipper with python3 - precompile klipper C-Code in build stage, remove gcc from run image (https://www.klipper3d.org/Packaging.html) - remove python3 debian packages, globally install with pip instead
12 lines
192 B
Bash
Executable File
12 lines
192 B
Bash
Executable File
#!/bin/bash
|
|
VENV=$1
|
|
if [ -z $VENV ]; then
|
|
echo "usage: run_in_venv [virtualenv_path] CMDS"
|
|
exit 1
|
|
fi
|
|
. ${VENV}/bin/activate
|
|
shift 1
|
|
echo "Executing $@ in ${VENV}"
|
|
exec "$@"
|
|
deactivate
|