x_old_misp_docker
x_old_misp_docker copied to clipboard
Problem building containers
HI,
I had problem while i was building the containers.
I resolved it by adding to " web/Dockerfile" file commands attached below before install python-cybox: RUN pip install --upgrade pip RUn pip install --upgrade setuptools
Regards,
@torsolaso - awesome, worked like a charm when I added those two lines. Will you submit a PR?
If I'm having the same issue, it is related to lxml python setup for cybox:
Searching for lxml>=2.2.3 Reading https://pypi.python.org/simple/lxml/ Best match: lxml 4.4.1 Downloading https://files.pythonhosted.org/packages/c4/43/3f1e7d742e2a7925be180b6af5e0f67d38de2f37560365ac1a0b9a04c015/lxml-4.4.1.tar.gz#sha256=c81cb40bff373ab7a7446d6bbca0190bccc5be3448b47b51d729e37799bb5692 Processing lxml-4.4.1.tar.gz Writing /tmp/easy_install-9a7Zl7/lxml-4.4.1/setup.cfg Running lxml-4.4.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-9a7Zl7/lxml-4.4.1/egg-dist-tmp-jazmDM /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires' warnings.warn(msg) In file included from src/lxml/etree.c:692:0: src/lxml/includes/etree_defs.h:14:31: fatal error: libxml/xmlversion.h: No such file or directory compilation terminated. /tmp/easy_install-9a7Zl7/lxml-4.4.1/temp/xmlXPathInitgop7jj.c:2:1: warning: return type defaults to ‘int’ [-Wimplicit-int] main (int argc, char **argv) { ^ Building lxml version 4.4.1. Building without Cython. Using build configuration of libxslt 1.1.28 ERROR: /usr/bin/xslt-config: 1: /usr/bin/xslt-config: xml2-config: not found
** make sure the development packages of libxml2 and libxslt are installed **
Compile failed: command 'x86_64-linux-gnu-gcc' failed with exit status 1 error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ERROR: Service 'web' failed to build: The command '/bin/sh -c python setup.py install' returned a non-zero code: 1
Resolved it by adding: python-lxml python3-lxml to the apt-get setups, will open a PR.
Wow,I think this is very important. Will it be added to Dockerfile
I think this is already fixed and the issue can be closed.