Commit 16493fe0 authored by Guilhem Bonnefille's avatar Guilhem Bonnefille
Browse files

Add Ubuntu based images

parents
stages:
- build
- deploy
build:
stage: build
image: docker:git
services:
- docker:dind
script:
# Double tag in order to:
# - reference images from each others during build
# - publish image to registry
- docker build -t otb-ubuntu-base:18.04 -t $CI_REGISTRY_IMAGE/otb-ubuntu-base:18.04 ubuntu-base
- docker build -t otb-ubuntu-native:18.04 -t $CI_REGISTRY_IMAGE/otb-ubuntu-native:18.04 ubuntu-native
deploy:
stage: deploy
image: docker:git
services:
- docker:dind
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker push $CI_REGISTRY_IMAGE/otb-ubuntu-base:18.04
- docker push $CI_REGISTRY_IMAGE/otb-ubuntu-native:18.04
A repository for all OTB build environments.
FROM ubuntu:18.04
MAINTAINER Sebastien Dinot <sebastien.dinot@c-s.fr>
ENV DEBIAN_FRONTEND noninteractive
RUN echo "Europe/Paris" > /etc/timezone
# ----------------------------------------------------------------------------
# First stage : install tools (they rarely evolve)
# ----------------------------------------------------------------------------
RUN apt-get update -y \
&& apt-get upgrade -y \
&& apt-get install -y --no-install-recommends \
ca-certificates \
curl \
make \
cmake \
g++ \
gcc \
git \
libtool \
swig \
xvfb \
&& rm -rf /var/lib/apt/lists/*
Base image for all Ubuntu related images.
\ No newline at end of file
FROM otb-ubuntu-base:18.04
MAINTAINER Sebastien Dinot <sebastien.dinot@c-s.fr>
# ----------------------------------------------------------------------------
# Second stage : dependencies (they evolve more often)
# ----------------------------------------------------------------------------
RUN apt-get update -y \
&& apt-get upgrade -y \
&& apt-get install -y --no-install-recommends \
freeglut3-dev \
libboost-date-time-dev \
libboost-filesystem-dev \
libboost-graph-dev \
libboost-program-options-dev \
libboost-system-dev \
libboost-thread-dev \
libcurl4-gnutls-dev \
libexpat1-dev \
libfftw3-dev \
libgdal-dev \
libgeotiff-dev \
libglew-dev \
libglfw3-dev \
libinsighttoolkit4-dev \
libkml-dev \
libmuparser-dev \
libmuparserx-dev \
libopencv-core-dev \
libopencv-ml-dev \
libopenmpi-dev \
libopenthreads-dev \
libossim-dev \
libpng-dev \
libqt5opengl5-dev \
libqwt-qt5-dev \
libshark-dev \
libsvm-dev \
libtinyxml-dev \
qtbase5-dev \
qttools5-dev \
python-dev \
python-numpy \
python-gdal \
python3-dev \
python3-numpy \
python3-gdal \
&& rm -rf /var/lib/apt/lists/*
A base system for build with packaged dependencies.
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