2019-01-23 10:11:31 +00:00
|
|
|
ARG BASE_IMAGE_TAG
|
|
|
|
|
2019-01-31 23:17:55 +00:00
|
|
|
FROM statusteam/status-build-base:${BASE_IMAGE_TAG}
|
2018-09-26 14:40:41 +00:00
|
|
|
|
2019-01-18 00:31:07 +00:00
|
|
|
ARG RNATIVE_VERSION
|
2019-01-11 18:07:26 +00:00
|
|
|
ARG CONAN_VERSION
|
2019-01-18 00:31:07 +00:00
|
|
|
ARG CMAKE_VERSION
|
2019-01-31 23:17:55 +00:00
|
|
|
ARG GOLANG_VERSION
|
|
|
|
ARG NODE_VERSION
|
2019-02-26 20:58:15 +00:00
|
|
|
ARG WIN_BASE_IMAGE_VERSION
|
2019-01-31 23:17:55 +00:00
|
|
|
ENV PATH=/home/jenkins/.nvm/versions/node/v${NODE_VERSION}/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
2019-01-11 18:07:26 +00:00
|
|
|
|
2019-01-18 00:31:07 +00:00
|
|
|
RUN add-apt-repository -y ppa:git-core/ppa \
|
|
|
|
&& apt-get update \
|
|
|
|
&& DEBIAN_FRONTEND=noninteractive \
|
2018-09-26 14:40:41 +00:00
|
|
|
apt-get -q -y --no-install-recommends install \
|
2019-01-31 23:17:55 +00:00
|
|
|
nsis fuse python python3-pip python3-setuptools python3-wheel \
|
|
|
|
apt-transport-https openjdk-8-jdk-headless extra-cmake-modules build-essential \
|
|
|
|
libx11-xcb1 libxss1 libasound2 libgl-dev libsm6 libxrandr2 python-dev \
|
|
|
|
libjasper-dev libegl1-mesa libxcomposite-dev libxcursor-dev \
|
2019-01-18 00:31:07 +00:00
|
|
|
&& apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/man \
|
|
|
|
&& python3 -m pip install --upgrade pip \
|
|
|
|
&& pip3 install conan==${CONAN_VERSION}
|
|
|
|
|
|
|
|
RUN cd /tmp \
|
|
|
|
&& wget -q https://cmake.org/files/v${CMAKE_VERSION%.*}/cmake-${CMAKE_VERSION}-Linux-x86_64.tar.gz \
|
|
|
|
&& tar xf cmake-${CMAKE_VERSION}-Linux-x86_64.tar.gz --strip 1 -C /usr/local \
|
|
|
|
&& rm -fr /usr/local/doc/cmake \
|
|
|
|
&& rm cmake-${CMAKE_VERSION}-Linux-x86_64.tar.gz
|
|
|
|
|
2019-01-31 23:17:55 +00:00
|
|
|
RUN cd /tmp \
|
|
|
|
&& wget -q https://dl.google.com/go/go${GOLANG_VERSION}.linux-amd64.tar.gz \
|
|
|
|
&& tar -C /usr/local -xzf go${GOLANG_VERSION}.linux-amd64.tar.gz \
|
|
|
|
&& rm go${GOLANG_VERSION}.linux-amd64.tar.gz
|
|
|
|
|
2019-01-18 00:31:07 +00:00
|
|
|
RUN mkdir -p /tmp/react-native-desktop \
|
|
|
|
&& cd /tmp/react-native-desktop \
|
|
|
|
&& git --version \
|
|
|
|
&& git init \
|
|
|
|
&& git remote add origin https://github.com/status-im/react-native-desktop.git \
|
|
|
|
&& git fetch --depth=1 origin ${RNATIVE_VERSION} \
|
|
|
|
&& git reset --hard FETCH_HEAD \
|
|
|
|
&& cp -r /tmp/react-native-desktop/react-native-cli /opt \
|
|
|
|
&& cd /opt/react-native-cli \
|
|
|
|
&& npm update \
|
|
|
|
&& npm install -g --prefix /usr/local \
|
|
|
|
&& cd \
|
|
|
|
&& rm -r /tmp/react-native-desktop
|
2018-09-26 14:40:41 +00:00
|
|
|
|
2019-02-26 20:58:15 +00:00
|
|
|
ADD ./StatusIm-Windows-base-image_${WIN_BASE_IMAGE_VERSION}.zip /opt/StatusIm-Windows-base-image.zip
|
|
|
|
ENV STATUSIM_WINDOWS_BASEIMAGE_ZIP=/opt/StatusIm-Windows-base-image.zip
|
|
|
|
|
2019-01-31 23:17:55 +00:00
|
|
|
LABEL source="https://github.com/status-im/status-react/tree/develop/docker/windows" \
|
2018-09-26 14:40:41 +00:00
|
|
|
description="Image for building Windows Desktop version of Status app." \
|
|
|
|
maintainer="jakub@status.im"
|