diff --git a/create_linux_dockerfile.py b/create_linux_dockerfile.py index 0b6a957..24bd7c4 100644 --- a/create_linux_dockerfile.py +++ b/create_linux_dockerfile.py @@ -8,6 +8,7 @@ """ installs = ['linux_install_scripts/libs.sh', + 'linux_install_scripts/make_unsafe_wget.sh', 'linux_install_scripts/python_libs.sh', 'linux_install_scripts/baron.sh', # 'linux_install_scripts/mipcl.sh', @@ -17,8 +18,8 @@ 'linux_install_scripts/gams.sh', 'linux_install_scripts/glpk.sh', 'linux_install_scripts/ipopt.sh', - 'linux_install_scripts/cbc.sh' - ] + 'linux_install_scripts/cbc.sh', + 'linux_install_scripts/restore_standard_wget.sh'] dynamic_vars_filename = '/root/dynamic_vars.out' def create_dockerfile(source_image, python_exe, dirname): diff --git a/linux_install_scripts/make_unsafe_wget.sh b/linux_install_scripts/make_unsafe_wget.sh new file mode 100644 index 0000000..84d95ac --- /dev/null +++ b/linux_install_scripts/make_unsafe_wget.sh @@ -0,0 +1,10 @@ +RUN echo "" && \ + echo "===============" && \ + echo "OVERRIDING WGET" && \ + echo "===============" && \ + echo "" +RUN mv /usr/bin/wget /usr/bin/_wget && \ + echo '#! /bin/bash\n\ +_wget --no-check-certificate $@\n\ +' > /usr/bin/wget && \ + chmod a+x /usr/bin/wget diff --git a/linux_install_scripts/python_libs.sh b/linux_install_scripts/python_libs.sh index 56b2278..a9461d1 100644 --- a/linux_install_scripts/python_libs.sh +++ b/linux_install_scripts/python_libs.sh @@ -35,6 +35,7 @@ ENV DOCKER_PYTHON_OPTIONAL \ Pyro4 \ pytest \ pytest-qt \ + python-louvain \ sphinx \ sphinx_rtd_theme \ sympy \ diff --git a/linux_install_scripts/restore_standard_wget.sh b/linux_install_scripts/restore_standard_wget.sh new file mode 100644 index 0000000..12330c4 --- /dev/null +++ b/linux_install_scripts/restore_standard_wget.sh @@ -0,0 +1,6 @@ +RUN echo "" && \ + echo "==============" && \ + echo "RESTORING WGET" && \ + echo "==============" && \ + echo "" +RUN mv /usr/bin/_wget /usr/bin/wget