2016-09-20 06:35:37 +02:00
|
|
|
WORKDIR /usr/src
|
2016-11-18 21:30:03 +01:00
|
|
|
|
2022-05-18 17:45:56 +02:00
|
|
|
ARG GIT_VERSION=2.36.1
|
2022-05-19 00:24:44 +02:00
|
|
|
|
2022-05-18 17:45:56 +02:00
|
|
|
ARG CMAKE_VERSION=3.23.1
|
2022-05-19 00:24:44 +02:00
|
|
|
|
2022-05-18 17:45:56 +02:00
|
|
|
ARG NINJA_VERSION=1.11.0
|
2022-05-24 15:21:42 +02:00
|
|
|
ARG FLATCC_VERSION=0.6.1
|
2022-05-19 00:24:44 +02:00
|
|
|
|
2022-05-18 17:56:48 +02:00
|
|
|
ARG OPENSSL_VERSION=openssl-1.1.1o
|
|
|
|
ARG OPENSSL_HASH=9384a2b0570dd80358841464677115df785edb941c71211f75076d72fe6b438f
|
2018-04-13 20:56:49 +02:00
|
|
|
|
2022-05-19 00:24:44 +02:00
|
|
|
ARG CURL_VERSION=curl-7.76.0
|
|
|
|
ARG CURL_HASH=3b4378156ba09e224008e81dcce854b7ce4d182b1f9cfb97fe5ed9e9c18c6bd3
|
|
|
|
|
|
|
|
ARG PERL_VERSION=perl-5.32.1
|
|
|
|
ARG PERL_HASH=03b693901cd8ae807231b1787798cf1f2e0b8a56218d07b7da44f784a7caeb2c
|
|
|
|
|
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 && \
|
2022-05-18 17:45:56 +02:00
|
|
|
/buildscripts/build-and-install-cmake.sh $X86_FLAG && \
|
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
|