Created
August 28, 2014 23:50
-
-
Save Aricg/0add6e63aa993146cf84 to your computer and use it in GitHub Desktop.
Confused about build failure.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Works on my local box | |
Fedora release 20 (Heisenbug) | |
Docker version 1.1.2, build d84a070/1.1.2 | |
Linux hyperion.local 3.15.9-200.fc20.x86_64 #1 SMP Sat Aug 9 09:02:55 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux | |
Fails on a remote kvm server | |
Red Hat Enterprise Linux Server release 6.5 (Santiago) | |
Docker version 1.1.2, build d84a070/1.1.2 | |
Linux foo.org 2.6.32-431.23.3.el6.x86_64 #1 SMP Wed Jul 16 06:12:23 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux | |
Failure is a compilation error. Not sure how that is possible, since the same libraries are installed insite the containers on both machines. | |
Error is as follows | |
commands.c:43:27: fatal error: libxml/parser.h: No such file or directory | |
#include <libxml/parser.h> | |
DockerFile: | |
from ubuntu:latest | |
run apt-get update | |
run apt-get install -y libxml2 libssh2-1 libdbus-1-dev doxygen libcurl4-gnutls-dev | |
run apt-get install -y git libreadline-dev | |
run apt-get install -y build-essential checkinstall | |
run git clone https://code.google.com/p/libnetconf/ | |
run apt-get install -y libxml2-dev libxslt1-dev libssh2-1-dev | |
run git clone https://code.google.com/p/netopeer/ | |
run apt-get install -y libevent-dev openssh-server | |
run cd /libnetconf && ./configure --with-nacm-recovery-uid=0 && make && make install | |
run cd /netopeer/server-sl && ./configure && make && make install | |
run ln -s /usr/local/lib/libnetconf.so.0 /lib | |
RUN mkdir /var/run/sshd | |
RUN echo "root\nroot" > /password | |
RUN cat /password | passwd | |
RUN echo 'Port 830' >> /etc/ssh/sshd_config | |
RUN echo 'Subsystem netconf /usr/local/bin/netopeer-server-sl' >> /etc/ssh/sshd_config | |
RUN sed -i -Ee "s,PermitRootLogin.*,PermitRootLogin yes," /etc/ssh/sshd_config | |
CMD /usr/sbin/sshd -d | |
EXPOSE 830 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment