Go to file
Roberto Orgiu 82c54e4c80
[BugFix] Update README.md
Without the change, Docker would return the following error: docker: Error response from daemon: pull access denied for prusaslicer-novnc, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
2024-04-04 09:06:39 +02:00
.github/workflows Fixes the format of the run on the date/time workflow. 2022-02-12 17:18:12 -05:00
.gitattributes Initial commit 2022-01-30 23:08:59 -05:00
build_and_push.sh Simplified the Dockerfile further and also fixed the build and push script to properly push the tagged builds. 2022-02-07 20:21:28 -05:00
docker-compose.build.yml Add docker-compose.build.yml 2023-12-04 09:33:32 -06:00
docker-compose.yml Adding docker-compose.yml 2023-12-04 09:32:49 -06:00
Dockerfile CHANGE: Add support for VNC viewers. 2023-06-30 23:54:28 -04:00
get_latest_prusaslicer_release.sh CHANGE: Simplify the fetting script for the latest release of PrusaSlicer. 2023-07-01 00:02:06 -04:00
menu.xml * Add firefox-esr for downloading STLs inside the Docker using a web browser. 2022-02-13 23:06:36 -05:00
README.md [BugFix] Update README.md 2024-04-04 09:06:39 +02:00
supervisord.conf CHANGE: Add support for VNC viewers. 2023-06-30 23:54:28 -04:00
tag_latest_prusaslicer.sh * Simplified the Dockerfile further. 2022-02-05 13:41:50 -05:00

Prusaslicer noVNC Docker Container

Overview

This is a super basic noVNC build using supervisor to serve Prusaslicer in your favorite web browser. This was primarily built for users using the popular unraid NAS software, to allow them to quickly hop in a browser, slice, and upload their favorite 3D prints.

A lot of this was branched off of dmagyar's awesome prusaslicer-vnc-docker project, but I found it to be a bit complex for my needs and thought this approach would simplify things a lot.

How to use

In unraid

If you're using unraid, open your Docker page and under Template repositories, add https://github.com/helfrichmichael/unraid-templates and save it. You should then be able to Add Container for prusaslicer-novnc. For unraid, the template will default to 6080 for the noVNC web instance.

Outside of unraid

Docker

To run this image, you can run the following command: docker run --detach --volume=prusaslicer-novnc-data:/configs/ --volume=prusaslicer-novnc-prints:/prints/ -p 8080:8080 -e SSL_CERT_FILE="/etc/ssl/certs/ca-certificates.crt" --name=prusaslicer-novnc mikeah/prusaslicer-novnc

This will bind /configs/ in the container to a local volume on my machine named prusaslicer-novnc-data. Additionally it will bind /prints/ in the container to superslicer-novnc-prints locally on my machine, it will bind port 8080 to 8080, and finally, it will provide an environment variable to keep Prusaslicer happy by providing an SSL_CERT_FILE.

Docker Compose

To use the pre-built image, simply clone this repository or copy docker-compose.yml and run docker compose up -d.

To build a new image, clone this repository and run docker compose up -f docker-compose.build.yml --build -d

Using a VNC Viewer

To use a VNC viewer with the container, the default port for X TigerVNC is 5900. You can add this port by adding -p 5900:5900 to your command to start the container to open this port for access.

GPU Acceleration/Passthrough

Like other Docker containers, you can pass your Nvidia GPU into the container using the NVIDIA_VISIBLE_DEVICES and NVIDIA_DRIVER_CAPABILITIES envs. You can define these using the value of all or by providing more narrow and specific values. This has only been tested on Nvidia GPUs.

In unraid you can set these values during set up. For containers outside of unraid, you can set this by adding the following params or similar -e NVIDIA_DRIVER_CAPABILITIES="all" NVIDIA_VISIBLE_DEVICES="all". If using Docker Compose, uncomment the enviroment variables in the relevant docker-compose.yaml file.

Prusaslicer

Supervisor

GitHub Source

Docker

Buy Me A Coffee