CESNET / Netopeer2GUI

Web-based NETCONF management center
Apache License 2.0
25 stars 12 forks source link

Failed to build image with docker/demo/Dockerfile of v2 branch #24

Open zhenlusu opened 3 years ago

zhenlusu commented 3 years ago

@Hi, When building the netopeer2gui image with that Dockerfile, I encountered an error, namely there is no setup.py file under build/python/setup.py, there is even no python folder for libnetconf2. python3 /libnetconf2/build/python/setup.py install && cd /

I tried to comment out the above line in Dockerfile, the build was completed successfully. However i was unable to login with root/docker. The container log says 'no module named netconf2' . Obviously the netconf2 lib for python is not installed correctly.

Is there a workaround to get it working?

Thanks!

jakubman1 commented 3 years ago

Hello, looks like a problem with the libnetconf2 library, I have to ask my colleague about it tomorrow. In the meantime, you can try changing line 25 in the Dockerfile to pull libnetconf2 from the "legacy" branch: RUN git clone -b legacy https://github.com/CESNET/libnetconf2.git && cd libnetconf2 && \

jakubman1 commented 3 years ago

Libnetconf2 no longer supports python bindings in the newest version. I will update the Dockerfile later today to use the older version. Thanks for letting me know about this issue.

zhenlusu commented 3 years ago

Libnetconf2 no longer supports python bindings in the newest version. I will update the Dockerfile later today to use the older version. Thanks for letting me know about this issue.

You are welcome. Actually I tried with legacy branch, but the make step for libnetconf2 was failing. Please take care of this.

jakubman1 commented 3 years ago

Fixed the issue, please pull the latest commit, docker image should build successfully now.