2016-09-20 06:35:37 +02:00
|
|
|
WORKDIR /usr/src
|
2016-11-18 21:30:03 +01:00
|
|
|
|
2021-06-30 09:08:40 +02:00
|
|
|
ARG GIT_VERSION=2.32.0
|
2021-08-06 22:54:32 +02:00
|
|
|
ARG CMAKE_VERSION=3.21.1
|
2022-03-30 15:45:08 +02:00
|
|
|
ARG FLATCC_VERSION=d90ed18ad09824297ffd5fbc578ccb1666d13890
|
2018-04-13 20:56:49 +02:00
|
|
|
|
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 \
|
2022-02-28 19:54:59 +01:00
|
|
|
imagefiles/build-and-install-flatcc.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:58:31 +02:00
|
|
|
imagefiles/install-python-packages.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 \
|
2021-08-05 19:06:40 +02:00
|
|
|
X86_FLAG=$([ "$DEFAULT_DOCKCROSS_IMAGE" = "dockcross/manylinux2014-x86" ] && echo "-32" || echo "") && \
|
2018-06-09 20:14:19 +02:00
|
|
|
/buildscripts/build-and-install-openssl.sh $X86_FLAG && \
|
|
|
|
/buildscripts/build-and-install-openssh.sh && \
|
|
|
|
/buildscripts/build-and-install-curl.sh && \
|
|
|
|
/buildscripts/build-and-install-git.sh && \
|
2021-06-30 15:07:13 +02:00
|
|
|
if [ "$CMAKE_BIN" = "true" ]; then CMAKE_VERSION=3.17.1 && /buildscripts/install-cmake-binary.sh $X86_FLAG;else /buildscripts/build-and-install-cmake.sh $X86_FLAG;fi && \
|
2018-06-07 02:17:10 +02:00
|
|
|
/buildscripts/install-liquidprompt-binary.sh && \
|
2021-06-24 22:57:41 +02:00
|
|
|
PYTHON=$([ -e /opt/python/cp38-cp38/bin/python ] && echo "/opt/python/cp38-cp38/bin/python" || echo "python3") && \
|
2018-06-07 02:58:31 +02:00
|
|
|
/buildscripts/install-python-packages.sh -python ${PYTHON} && \
|
2018-06-07 02:17:10 +02:00
|
|
|
/buildscripts/build-and-install-ninja.sh -python ${PYTHON} && \
|
2022-02-28 19:54:59 +01:00
|
|
|
/buildscripts/build-and-install-flatcc.sh && \
|
2018-06-07 02:58:31 +02:00
|
|
|
rm -rf /buildscripts
|
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
|