1- WORKDIR /usr/share
2- RUN git clone "https://github.com/nojhan/liquidprompt.git" && \
3- cd liquidprompt && \
4- git checkout v_1.11
5- COPY imagefiles/.bashrc /root/
6-
71WORKDIR /usr/src
82
9- COPY imagefiles/install-openssl.sh imagefiles/install-cmake.sh /dockcross/
3+ ARG GIT_VERSION=2.16.2
4+ ARG CMAKE_VERSION=3.11.0
5+
6+ COPY imagefiles/build-and-install-git.sh \
7+ imagefiles/utils.sh \
8+ imagefiles/build-and-install-openssl.sh \
9+ imagefiles/build-and-install-openssh.sh \
10+ imagefiles/build-and-install-cmake.sh \
11+ imagefiles/install-cmake-binary.sh \
12+ imagefiles/build-and-install-curl.sh \
13+ /dockcross/
14+
1015RUN \
1116 if [ "$DEFAULT_DOCKCROSS_IMAGE" = "dockcross/manylinux-x86" ]; then \
12- /dockcross/install-openssl.sh -32 && \
13- /dockcross/install-cmake.sh -32 || exit 1; \
17+ /dockcross/build-and-install-openssl.sh -32 && \
18+ /dockcross/build-and-install-openssh.sh && \
19+ /dockcross/build-and-install-curl.sh && \
20+ /dockcross/build-and-install-git.sh && \
21+ /dockcross/build-and-install-cmake.sh -32 || exit 1; \
1422 else \
15- /dockcross/install-openssl.sh && \
16- /dockcross/install-cmake.sh || exit 1; \
23+ /dockcross/build-and-install-openssl.sh && \
24+ /dockcross/build-and-install-openssh.sh && \
25+ /dockcross/build-and-install-curl.sh && \
26+ /dockcross/build-and-install-git.sh && \
27+ /dockcross/install-cmake-binary.sh || exit 1; \
1728 fi; \
18- rm /dockcross/install-openssl.sh /dockcross/install-cmake.sh
29+ rm /dockcross/build-and-install-git.sh \
30+ /dockcross/utils.sh \
31+ /dockcross/build-and-install-openssl.sh \
32+ /dockcross/build-and-install-openssh.sh \
33+ /dockcross/build-and-install-cmake.sh \
34+ /dockcross/install-cmake-binary.sh \
35+ /dockcross/build-and-install-curl.sh
1936
2037COPY imagefiles/cmake.sh /usr/local/bin/cmake
2138COPY imagefiles/ccmake.sh /usr/local/bin/ccmake
@@ -31,13 +48,19 @@ RUN \
3148RUN if [ -e /opt/python/cp35-cp35m/bin/python ]; then \
3249 : nothing to do here since it is updated by manylinux-common/install-python-packages.sh ; \
3350 else \
34- wget https://bootstrap.pypa.io/get-pip.py && \
51+ curl -# -LO https://bootstrap.pypa.io/get-pip.py && \
3552 python get-pip.py --ignore-installed && \
3653 rm get-pip.py || exit 1; \
3754 fi
3855
3956RUN $([ -e /opt/python/cp35-cp35m/bin/python ] && echo "/opt/python/cp35-cp35m/bin/python" || echo "python") -m pip install --ignore-installed conan
4057
58+ WORKDIR /usr/share
59+ RUN git clone "https://github.com/nojhan/liquidprompt.git" && \
60+ cd liquidprompt && \
61+ git checkout v_1.11
62+ COPY imagefiles/.bashrc /root/
63+
4164RUN echo "root:root" | chpasswd
4265WORKDIR /work
4366ENTRYPOINT ["/dockcross/entrypoint.sh"]
0 commit comments