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-05 05:53:38 +02:00
|
|
|
COPY \
|
|
|
|
imagefiles/build-and-install-git.sh \
|
2018-04-13 20:56:49 +02:00
|
|
|
imagefiles/utils.sh \
|
|
|
|
imagefiles/build-and-install-openssl.sh \
|
|
|
|
imagefiles/build-and-install-openssh.sh \
|
|
|
|
imagefiles/build-and-install-cmake.sh \
|
|
|
|
imagefiles/install-cmake-binary.sh \
|
|
|
|
imagefiles/build-and-install-curl.sh \
|
2018-06-05 07:19:46 +02:00
|
|
|
imagefiles/build-and-install-ninja.sh \
|
2018-04-13 20:56:49 +02:00
|
|
|
/dockcross/
|
|
|
|
|
2016-11-21 12:08:30 +01:00
|
|
|
RUN \
|
|
|
|
if [ "$DEFAULT_DOCKCROSS_IMAGE" = "dockcross/manylinux-x86" ]; then \
|
2018-04-13 20:56:49 +02:00
|
|
|
/dockcross/build-and-install-openssl.sh -32 && \
|
|
|
|
/dockcross/build-and-install-openssh.sh && \
|
|
|
|
/dockcross/build-and-install-curl.sh && \
|
|
|
|
/dockcross/build-and-install-git.sh && \
|
|
|
|
/dockcross/build-and-install-cmake.sh -32 || exit 1; \
|
2016-11-21 12:08:30 +01:00
|
|
|
else \
|
2018-04-13 20:56:49 +02:00
|
|
|
/dockcross/build-and-install-openssl.sh && \
|
|
|
|
/dockcross/build-and-install-openssh.sh && \
|
|
|
|
/dockcross/build-and-install-curl.sh && \
|
|
|
|
/dockcross/build-and-install-git.sh && \
|
|
|
|
/dockcross/install-cmake-binary.sh || exit 1; \
|
2016-11-21 12:08:30 +01:00
|
|
|
fi; \
|
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") && \
|
|
|
|
/dockcross/build-and-install-ninja.sh -python ${PYTHON} && \
|
2018-06-05 05:53:38 +02:00
|
|
|
rm \
|
|
|
|
/dockcross/build-and-install-git.sh \
|
|
|
|
/dockcross/utils.sh \
|
|
|
|
/dockcross/build-and-install-openssl.sh \
|
|
|
|
/dockcross/build-and-install-openssh.sh \
|
|
|
|
/dockcross/build-and-install-cmake.sh \
|
|
|
|
/dockcross/install-cmake-binary.sh \
|
2018-06-05 07:19:46 +02:00
|
|
|
/dockcross/build-and-install-curl.sh \
|
|
|
|
/dockcross/build-and-install-ninja.sh
|
2016-09-20 06:35:37 +02:00
|
|
|
|
|
|
|
COPY imagefiles/cmake.sh /usr/local/bin/cmake
|
|
|
|
COPY imagefiles/ccmake.sh /usr/local/bin/ccmake
|
2017-04-23 02:52:31 +02:00
|
|
|
COPY imagefiles/sudo.sh /usr/bin/sudo
|
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
|
|
|
|
|
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
|
|
|
RUN $([ -e /opt/python/cp35-cp35m/bin/python ] && echo "/opt/python/cp35-cp35m/bin/python" || echo "python") -m pip install --ignore-installed conan
|
2017-01-29 17:37:05 +01:00
|
|
|
|
2018-04-13 20:56:49 +02:00
|
|
|
WORKDIR /usr/share
|
|
|
|
RUN git clone "https://github.com/nojhan/liquidprompt.git" && \
|
|
|
|
cd liquidprompt && \
|
|
|
|
git checkout v_1.11
|
|
|
|
COPY imagefiles/.bashrc /root/
|
|
|
|
|
2016-09-20 06:35:37 +02:00
|
|
|
RUN echo "root:root" | chpasswd
|
|
|
|
WORKDIR /work
|
|
|
|
ENTRYPOINT ["/dockcross/entrypoint.sh"]
|
|
|
|
|
|
|
|
COPY imagefiles/entrypoint.sh imagefiles/dockcross /dockcross/
|