diff --git a/Makefile b/Makefile index ce2ee06..bf6f3c5 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,9 @@ lazy-deploy: ssh printi "cd ~/octoprint && make full-send" full-send: + sudo rm -Rv /dev/printers + sudo mkdir -p /dev/printers + sudo ln -s /dev/serial/by-path/pci-0000:00:12.1-usb-0:3:1.0-port0 /dev/printers/corexy docker compose build docker compose down - #docker compose up -d \ No newline at end of file + docker compose up -d \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 34259c9..a117abb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,8 +3,23 @@ volumes: corexy: + corexy_gcode_files: + corexy_moonraker_data: services: + corexy-klipper: + image: dimalo/klipper-moonraker + cap_add: + - SYS_NICE + ports: + - 7001:7125 + restart: unless-stopped + volumes: + - corexy_gcode_files:/home/klippy/gcode_files + - ./corexy/klipper/config:/home/klippy/.config + - corexy_moonraker_data:/home/klippy/.moonraker_database + devices: + - /dev/printers/corexy:/dev/ttyUSB0 corexy: build: context: . @@ -16,6 +31,6 @@ services: - corexy:/octoprint #environment: # - ENABLE_MJPG_STREAMER=true - devices: - - /dev/ttyACM0:/dev/ttyACM0 - # - /dev/video0:/dev/video0 \ No newline at end of file + # devices: + # - /dev/printers/corexy:/dev/ttyACM0 + # # - /dev/video0:/dev/video0 \ No newline at end of file