Commit 095e4064 authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
Browse files

own dockerfiles

parent fbbb1840
Pipeline #7878 failed with stages
in 37 seconds
......@@ -20,7 +20,7 @@
# see <http://www.gnu.org/licenses/>.
mseabuild-linux :
image : immc/migflow-build:v0.6
image : immc/msea-build:v0.1
stage : build
script:
- cd msealib
......@@ -37,7 +37,7 @@ mseabuild-linux :
expire_in: 1 day
mseabuild-windows :
image : immc/migflow-build:v0.6
image : immc/msea-build:v0.1
stage : build
script:
- cd msealib
......@@ -50,7 +50,7 @@ mseabuild-windows :
- python3 setup.py bdist_wheel --plat-name=win_amd64
mseabuild-osx :
image : immc/migflow-build:v0.6
image : immc/msea-build:v0.1
stage : build
script:
- cd msealib
......@@ -67,7 +67,7 @@ mseabuild-osx :
expire_in: 1 day
mseatest :
image : immc/migflow-valid:v0.12
image : immc/mseavalid:v0.1
stage : test
script:
- pip3 install --user dist/*manylinux1_x86_64*
......@@ -75,7 +75,7 @@ mseatest :
- python3 testshp.py
mfdeploy-test :
image : immc/migflow-build:v0.6
image : immc/msea-build:v0.1
stage : deploy
rules :
- if: '$CI_COMMIT_TAG =~ /^w-.*$/'
......
FROM ubuntu:20.04
env DEBIAN_FRONTEND=noninteractive
#linux
RUN apt update && apt install -y git python3 make cmake gcc
#windows
RUN apt update && apt install -y mingw-w64 mingw-w64-tools
run echo "\
SET(CMAKE_SYSTEM_NAME Windows)\n\
SET(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc)\n\
SET(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++)\n\
SET(CMAKE_RC_COMPILER x86_64-w64-mingw32-windres)\n\
SET(CMAKE_Fortran_COMPILER x86_64-w64-mingw32-gfortran)\n\
SET(CMAKE_FIND_ROOT_PATH /mingw64)\n\
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)\n\
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)\n\
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)\n"\
> /cmake-mingw
RUN apt update && apt install -y git python3-setuptools python3-wheel twine
### osxcross
RUN apt-get update && apt-get install -y clang patch libssl-dev liblzma-dev libxml2-dev llvm-dev uuid-dev zlib1g-dev
RUN useradd -ms /bin/bash validator
RUN mkdir -p /osxcross && chown validator /osxcross
USER validator
RUN git clone https://github.com/tpoechtrager/osxcross.git /osxcross
COPY MacOSX10.15.sdk.tar.xz /osxcross/tarballs/MacOSX10.15.sdk.tar.xz
RUN cd /osxcross && SDK_VERSION=10.15 UNATTENDED=1 ./build.sh
ENV PATH=/osxcross/target/bin/:$PATH
ENV OSXCROSS_HOST=x86_64-apple-darwin19
VOLUME ["/etc/gitlab-runner"]
WORKDIR /home/validator
FROM ubuntu:20.04
RUN apt update
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && apt install -y git python3 python3-numpy gmsh python3-scipy python3-petsc4py python3-pip gdal-bin
VOLUME ["/etc/gitlab-runner"]
RUN useradd -ms /bin/bash validator
USER validator
WORKDIR /home/validator
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment