Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
WASP
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Remote Modules
WASP
Commits
1a39afe6
Commit
1a39afe6
authored
Jul 31, 2020
by
Guillaume Pasero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: prototype on rh7
parent
9fa6575f
Pipeline
#6099
failed with stage
in 1 minute and 47 seconds
Changes
3
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
123 additions
and
0 deletions
+123
-0
.gitlab-ci.yml
.gitlab-ci.yml
+44
-0
CI/RH7/Dockerfile
CI/RH7/Dockerfile
+68
-0
CI/RH7/yum.conf
CI/RH7/yum.conf
+11
-0
No files found.
.gitlab-ci.yml
0 → 100644
View file @
1a39afe6
variables
:
BUILD_ENV_REGISTRY
:
$CI_REGISTRY/gpasero/wasp
stages
:
-
container
-
build
# ---------------------------- fast pipeline ----------------------------------
build-env-centos7
:
stage
:
container
image
:
name
:
gcr.io/kaniko-project/executor:debug-v0.16.0
entrypoint
:
[
"
"
]
tags
:
-
docker
before_script
:
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}"
> /kaniko/.docker/config.json
script
:
-
/kaniko/executor --cleanup
--cache=true
--cache-repo=$CI_REGISTRY_IMAGE/wasp-env-centos7-cache
--verbosity warn
--dockerfile $CI_PROJECT_DIR/CI/RH7/Dockerfile
--context $CI_PROJECT_DIR/CI/RH7
--destination $CI_REGISTRY_IMAGE/wasp-env-centos7:latest
only
:
refs
:
-
ci
changes
:
-
CI/RH7/*
build-centos7
:
stage
:
build
image
:
$CI_REGISTRY_IMAGE/wasp-env-centos7:latest
tags
:
-
docker
script
:
-
echo $CI_COMMIT_SHA > sha1.txt
-
mkdir build
-
cd build
-
cmake -GNinja -DCMAKE_PREFIX_PATH=/opt/otb -DCMAKE_CXX_FLAGS=-Wl,--as-needed ../
-
ninja
CI/RH7/Dockerfile
0 → 100644
View file @
1a39afe6
FROM
centos:7
LABEL
VERSION="1.0" ARCHITECTURE="amd64"
LABEL
MAINTAINER "WASP development team"
ADD
yum.conf /etc/yum.conf
RUN
yum
-y
update
;
yum clean all
RUN
yum
-y
install
epel-release centos-release-scl
RUN
yum
-y
install
\
bzip2
\
devtoolset-7
\
doxygen
\
file
\
libffi-devel
\
libXcursor libXcursor-devel
\
libXi libXi-devel
\
libXinerama libXinerama-devel
\
libXrandr libXrandr-devel
\
mesa-libGL mesa-libGL-devel
\
mesa-libGLU mesa-libGLU-devel
\
ninja-build
\
patch
\
patchelf
\
rclone
\
rh-git218
\
rh-python36
\
wget
\
&&
yum clean all
# Install cmake 3.14
RUN
cd
/tmp
\
&&
wget
-nv
https://github.com/Kitware/CMake/releases/download/v3.14.0/cmake-3.14.0-Linux-x86_64.tar.gz
\
&&
tar
-xzf
cmake-3.14.0-Linux-x86_64.tar.gz
\
&&
cp
-R
cmake-3.14.0-Linux-x86_64/
*
/usr/local/
\
&&
rm
-rf
cmake-3.14.0-Linux-x86_64
*
# ADD rclone.conf /root/.config/rclone/
ENV
IMAGE_NAME=rh7
SHELL
["/usr/bin/scl", "enable", "devtoolset-7", "rh-git218", "rh-python36"]
# Install python deps
RUN
python3
-m
pip
install
\
nose
\
numpy
\
pylint
# Install OTB
RUN
cd
/opt
\
&&
wget
-nv
https://www.orfeo-toolbox.org/packages/archives/OTB/OTB-7.1.0-Linux64.run
\
&&
chmod
+x OTB-7.1.0-Linux64.run
\
&&
./OTB-7.1.0-Linux64.run
--target
/opt/otb
\
&&
source
/opt/otb/otbenv.profile
\
&&
ctest
-S
/opt/otb/share/otb/swig/build_wrapping.cmake
-VV
\
&&
rm
OTB-7.1.0-Linux64.run
ENV
LD_LIBRARY_PATH=/opt/otb/lib:$LD_LIBRARY_PATH \
OTB_APPLICATION_PATH=/opt/otb/lib/otb/applications:$OTB_APPLICATION_PATH \
PATH=/opt/otb/bin/:$PATH \
PYTHONPATH=/opt/otb/lib/python:$PYTHONPATH \
GDAL_DATA=/opt/otb/share/gdal \
GEOTIFF_CSV=/opt/otb/share/epsg_csv
ENTRYPOINT
["scl", "enable", "devtoolset-7", "rh-git218", "rh-python36", "--"]
CI/RH7/yum.conf
0 → 100644
View file @
1a39afe6
[
main
]
cachedir
=/
var
/
cache
/
yum
/$
basearch
/$
releasever
keepcache
=
0
debuglevel
=
2
logfile
=/
var
/
log
/
yum
.
log
exactarch
=
0
obsoletes
=
0
gpgcheck
=
0
plugins
=
0
installonly_limit
=
5
exclude
=*.
i
?
86
*.
i686
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment