Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ozwcp needs to run from the installed directory #4

Merged
merged 1 commit into from
Jul 23, 2019
Merged

ozwcp needs to run from the installed directory #4

merged 1 commit into from
Jul 23, 2019

Conversation

kpine
Copy link
Contributor

@kpine kpine commented Jul 18, 2019

Fixes #3

Built locally with sudo docker build -t ozwcp .

Ran with sudo docker run -d --name="ozw-cp" -p 8008:8008 --device=/dev/serial/by-id/usb-0658_0200_E2061B02-4A02-0114-3A06-FD1871291660-if00:/dev/zwave ozwcp.

The Web UI loaded without error and I could perform operations on the network.

The ENTRYPOINT was calling ozwcp from a different directory,
however ozwcp expects to be called from the directory it
is installed in, otherwise it can't find its assets.

Update the WORKDIR to point to the ozwcp install path so
it is run from there.

Cleanup the Dockerfile a bit.
@Fishwaldo
Copy link
Member

Thanks!

@Fishwaldo Fishwaldo merged commit d941e4b into OpenZWave:master Jul 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Running ozwcp image produces error "File not found: cp.html" in web UI
2 participants