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
|
|
|
|
ARG CMAKE_VERSION=3.23.1
|
|
|
|
ARG NINJA_VERSION=1.11.0
|
2022-03-30 15:45:08 +02:00
|
|
|
ARG FLATCC_VERSION=d90ed18ad09824297ffd5fbc578ccb1666d13890
|
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
|
|
|
|
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
|