Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1.45 KB

run_as_container.md

File metadata and controls

38 lines (26 loc) · 1.45 KB

Use the container Image

Link your printer

  1. Create a copy of moonraker-obico.cfg.sample in a directory of your choice.
cp moonraker-obico.cfg.sample /opt/mydir/moonraker-obico.cfg
  1. Set the [moonraker].host and [moonraker].port in the newly created config file, according to the Documentation, making sure to not set the [server].auth_token.

  2. Open the Obico Webinterface or App to obtain the 6-digit verification code for a Klipper-Type Printer.

  3. Replace /opt/mydir/moonraker-obico.cfg in the following command with the path to your configuration file and run it. Enter the Code obtained in the previous step, when promted.

docker run --rm -it \
  -v /opt/mydir/moonraker-obico.cfg:/opt/printer_data/config/moonraker-obico.cfg \
  --entrypoint /opt/venv/bin/python \
  ghcr.io/thespaghettidetective/moonraker-obico:latest \
    -m moonraker_obico.link -c /opt/printer_data/config/moonraker-obico.cfg
  1. Check that your configuration file now contains a value for [server].auth_token

Run the application

Given that your moonraker-obico.cfg now contains a valid [server].auth_token, a container may be started using the following command:

docker run -d \
  --name moonraker-obico \
  --privileged \
  -v /opt/mydir/moonraker-obico.cfg:/opt/printer_data/config/moonraker-obico.cfg \
  ghcr.io/thespaghettidetective/moonraker-obico:latest