Files
klipper-web-control-docker/klipper/run_in_venv
Dieter Schmidt 4cb2a4b248 update docker build
- 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
2022-09-23 00:38:50 +02:00

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