octoprint-klipper-docker/README.md

47 lines
1.7 KiB
Markdown
Raw Normal View History

2020-01-30 19:53:51 +00:00
# OctoPrint-Klipper
2018-06-03 22:27:11 +00:00
2020-06-08 14:27:27 +00:00
My version of a Docker image for running [OctoPrint] and [Klipper] in a single container. Includes a few plugins I find useful.
2018-06-03 22:27:11 +00:00
2020-01-30 19:53:51 +00:00
Big thanks to [sillyfrog](https://github.com/sillyfrog) for laying the groundwork for this image.
2018-06-03 22:27:11 +00:00
2020-06-08 14:33:21 +00:00
This is very much written for my purposes, so you'll likely need to modify it for your setup. I've been using it for a while now and it's going well. I've successfully run it on these platforms:
* Orange Pi Zero 512MB
* AtomicPi
* Raspberry Pi 4B 1GB (current)
2018-06-03 22:27:11 +00:00
## Running the container
2020-01-30 19:53:51 +00:00
Create a directory on your host that will persist config files. I use `/home/docker/octoprint-klipper`.
2018-06-03 22:27:11 +00:00
2020-06-08 14:33:21 +00:00
Pull the image. Until I figure out multi platform aware images, you need to specify your arch. Both `arm` and `amd64` images are on DockerHub. If using Raspberry Pi or similar use `arm` in place of `[tag]`.
2020-01-30 19:53:51 +00:00
```shell
docker pull seanauff/octoprint-klipper:[tag]
2018-06-03 22:27:11 +00:00
```
2020-01-30 19:53:51 +00:00
Start the container once to populate your config folder:
```
2020-04-02 16:51:32 +00:00
docker run -d --name octoprint-klipper -e TZ=America/New_York -v /home/docker/octoprint-klipper:/home/octoprint/.octoprint --device /dev/ttyUSB0:/dev/ttyUSB0 -p 5000:5000 seanauff/octoprint-klipper:[tag]
2018-06-03 22:27:11 +00:00
```
2020-01-30 19:53:51 +00:00
Stop the container, and modify your [Klipper] `printer.cfg` and [Octoprint] `config.yaml` in the config directory as needed.
2018-06-03 22:27:11 +00:00
2020-01-30 20:06:04 +00:00
Restart the container.
2020-06-08 14:33:21 +00:00
A sample docker-compose file is also provided.
2020-01-30 19:53:51 +00:00
If you have any questions, feel free to log an issue on this project, and I'll see if I can help.
2020-01-30 19:53:51 +00:00
## Build the image yourself
2020-01-30 19:53:51 +00:00
Clone the repository and build the image:
2020-01-30 19:53:51 +00:00
```shell
git clone https://github.com/seanauff/OctoPrint-Klipper.git
docker build -t seanauff/octoprint-klipper OctoPrint-Klipper
```
2020-01-30 19:53:51 +00:00
[Octoprint]: https://github.com/foosel/OctoPrint
2020-04-02 16:51:32 +00:00
[Klipper]: https://github.com/KevinOConnor/klipper