LaserWeb / deprecated-LaserWeb1

Deprecated: use http://github.com/openhardwarecoza/LaserWeb3 instead
186 stars 45 forks source link

Added Docker build #102

Closed jcoffland closed 8 years ago

jcoffland commented 8 years ago

This is a nice quick way to test out or run LaserWeb in a clean environment with out building a full VM.

ghost commented 8 years ago

Thank you!

ghost commented 8 years ago

Can you please add instructions to the Wiki too

jcoffland commented 8 years ago

Sure, done.

mmemetea commented 8 years ago

I'm trying to run LaserWeb on a Mac through Docker. Everything looks fine except the serial port aren't apparently visible in the LaserWeb interface. Are some additional arguments required to be declared in the Docker command to make the serial port available? (http://stackoverflow.com/questions/24225647/docker-any-way-to-give-access-to-host-usb-or-serial-device) I thought that something like 'docker run -p 8000:8000 --device=/dev/ttyUSB0 -d --name laserweb laserweb' should help, but apparently it doesn't... Any suggestion?

ghost commented 8 years ago

@jcoffland ? (:

jcoffland commented 8 years ago

I've also seen devices added to Docker instances like this:

docker run -p 8000:8000 --device=/dev/ttyUSB0:/dev/ttyUSB0 -d --name laserweb laserweb

You should make sure that the permissions are set correctly on /dev/ttyUSB0. The permissions inside the Docker instance should not be an issue but in the host system they have to be right. The link you provided above also says you might need to add --privileged.

jcoffland commented 8 years ago

Also you need to be sure that /dev/ttyUSB0 is the correct name for your serial device. I suggest testing it manually first with something like minicom.

mmemetea commented 8 years ago

You're right about the name of the serial interface, in my case it should be /dev/tty.usbmodem1414 (verified by running Printer-Run fro example). However, typing the command docker run -p 8000:8000 --device=/dev/tty.usbmodem1414:/dev/tty.usbmodem1414 -d --name laserweb laserweb gives me back the following error:

server error 500 error gathering device information while adding custom device ''/dev/tty.usbmodem1414": lstat /dev/tty.usbmodem1414: no such file or directory''

Not sure what to do next...

jcoffland commented 8 years ago

This does not appear to be an issue with the Docker setup I created for LaserWeb. Sorry I don't have the time to help you with this further. You need to figure out your USB device issues first.

mmemetea commented 8 years ago

Yes, I think you're right. I'll find another way. Thank you anyhow...

mmemetea commented 8 years ago

Apparently the default settings for the VM that run under Docker hasn't the USB enabled. Need to fix that.