2016-09-20 06:35:37 +02:00
|
|
|
WORKDIR /usr/src
|
2016-11-18 21:30:03 +01:00
|
|
|
|
2018-04-13 20:56:49 +02:00
|
|
|
ARG GIT_VERSION=2.16.2
|
|
|
|
ARG CMAKE_VERSION=3.11.0
|
|
|
|
|
2018-06-07 02:17:10 +02:00
|
|
|
# Image build scripts
|
2018-06-05 05:53:38 +02:00
|
|
|
COPY \
|
2018-06-07 02:27:20 +02:00
|
|
|
imagefiles/build-and-install-cmake.sh \
|
|
|
|
imagefiles/build-and-install-curl.sh \
|
2018-06-05 05:53:38 +02:00
|
|
|
imagefiles/build-and-install-git.sh \
|
2018-06-07 02:27:20 +02:00
|
|
|
imagefiles/build-and-install-ninja.sh \
|
2018-04-13 20:56:49 +02:00
|
|
|
imagefiles/build-and-install-openssl.sh \
|
|
|
|
imagefiles/build-and-install-openssh.sh \
|
|
|
|
imagefiles/install-cmake-binary.sh \
|
2018-06-05 05:48:09 +02:00
|
|
|
imagefiles/install-liquidprompt-binary.sh \
|
2018-06-07 02:27:20 +02:00
|
|
|
imagefiles/utils.sh \
|
2018-06-07 02:17:10 +02:00
|
|
|
/buildscripts/
|
2018-04-13 20:56:49 +02:00
|
|
|
|
2016-11-21 12:08:30 +01:00
|
|
|
RUN \
|
|
|
|
if [ "$DEFAULT_DOCKCROSS_IMAGE" = "dockcross/manylinux-x86" ]; then \
|
2018-06-07 02:17:10 +02:00
|
|
|
/buildscripts/build-and-install-openssl.sh -32 && \
|
|
|
|
/buildscripts/build-and-install-openssh.sh && \
|
|
|
|
/buildscripts/build-and-install-curl.sh && \
|
|
|
|
/buildscripts/build-and-install-git.sh && \
|
|
|
|
/buildscripts/build-and-install-cmake.sh -32 || exit 1; \
|
2016-11-21 12:08:30 +01:00
|
|
|
else \
|
2018-06-07 02:17:10 +02:00
|
|
|
/buildscripts/build-and-install-openssl.sh && \
|
|
|
|
/buildscripts/build-and-install-openssh.sh && \
|
|
|
|
/buildscripts/build-and-install-curl.sh && \
|
|
|
|
/buildscripts/build-and-install-git.sh && \
|
|
|
|
/buildscripts/install-cmake-binary.sh || exit 1; \
|
2016-11-21 12:08:30 +01:00
|
|
|
fi; \
|
2018-06-07 02:17:10 +02:00
|
|
|
/buildscripts/install-liquidprompt-binary.sh && \
|
2018-06-05 07:19:46 +02:00
|
|
|
PYTHON=$([ -e /opt/python/cp35-cp35m/bin/python ] && echo "/opt/python/cp35-cp35m/bin/python" || echo "python") && \
|
2018-06-07 02:17:10 +02:00
|
|
|
/buildscripts/build-and-install-ninja.sh -python ${PYTHON} && \
|
|
|
|
rm -rf /buildscripts \
|
2018-06-05 05:35:59 +02:00
|
|
|
&& \
|
|
|
|
${PYTHON} -m pip install --ignore-installed conan
|
2016-09-20 06:35:37 +02:00
|
|
|
|
2017-06-09 14:25:35 +02:00
|
|
|
RUN if [ -e /opt/python/cp35-cp35m/bin/python ]; then \
|
|
|
|
: nothing to do here since it is updated by manylinux-common/install-python-packages.sh ; \
|
|
|
|
else \
|
2018-03-29 21:07:54 +02:00
|
|
|
curl -# -LO https://bootstrap.pypa.io/get-pip.py && \
|
common: work around overlay storage backend pip uninstall
Addresses:
Collecting pip
Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)
Collecting wheel
Downloading wheel-0.29.0-py2.py3-none-any.whl (66kB)
Installing collected packages: pip, wheel
Found existing installation: pip 1.5.6
Uninstalling pip-1.5.6:
Exception:
Traceback (most recent call last):
File "/tmp/tmpqu31Wp/pip.zip/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/tmp/tmpqu31Wp/pip.zip/pip/commands/install.py", line 342, in run
prefix=options.prefix_path,
File "/tmp/tmpqu31Wp/pip.zip/pip/req/req_set.py", line 778, in install
requirement.uninstall(auto_confirm=True)
File "/tmp/tmpqu31Wp/pip.zip/pip/req/req_install.py", line 754, in uninstall
paths_to_remove.remove(auto_confirm)
File "/tmp/tmpqu31Wp/pip.zip/pip/req/req_uninstall.py", line 115, in remove
renames(path, new_path)
File "/tmp/tmpqu31Wp/pip.zip/pip/utils/__init__.py", line 267, in renames
shutil.move(old, new)
File "/usr/lib/python2.7/shutil.py", line 300, in move
rmtree(src)
File "/usr/lib/python2.7/shutil.py", line 247, in rmtree
rmtree(fullname, ignore_errors, onerror)
File "/usr/lib/python2.7/shutil.py", line 256, in rmtree
onerror(os.rmdir, path, sys.exc_info())
File "/usr/lib/python2.7/shutil.py", line 254, in rmtree
os.rmdir(path)
OSError: [Errno 39] Directory not empty: '/usr/lib/python2.7/dist-packages/pip/backwardcompat'
when Docker is using the overlay fs backend. See:
https://github.com/moby/moby/issues/12327
2017-06-10 19:37:36 +02:00
|
|
|
python get-pip.py --ignore-installed && \
|
2017-06-09 14:25:35 +02:00
|
|
|
rm get-pip.py || exit 1; \
|
|
|
|
fi
|
|
|
|
|
2016-09-20 06:35:37 +02:00
|
|
|
RUN echo "root:root" | chpasswd
|
|
|
|
WORKDIR /work
|
|
|
|
ENTRYPOINT ["/dockcross/entrypoint.sh"]
|
|
|
|
|
2018-06-07 02:17:10 +02:00
|
|
|
# Runtime scripts
|
|
|
|
COPY imagefiles/cmake.sh /usr/local/bin/cmake
|
|
|
|
COPY imagefiles/ccmake.sh /usr/local/bin/ccmake
|
2016-09-20 06:35:37 +02:00
|
|
|
COPY imagefiles/entrypoint.sh imagefiles/dockcross /dockcross/
|