Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 70a56a35 authored by PRUVOST Florent's avatar PRUVOST Florent
Browse files

pages.sh: use pages docker image to run on gitlab instance runners

parent bf6fb2a9
No related branches found
No related tags found
1 merge request!501Update docker environment, use shared runners, and plafrim for cuda/rocm
#
# @file Dockerfile-pages
#
# @copyright 2024-2024 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria,
# Univ. Bordeaux. All rights reserved.
#
# @version 1.3.0
# @author Florent Pruvost
# @date 2024-12-02
#
# This docker image is used to test the package during gitlab-ci pipelines.
# It should be stored in the gitlab's project container registry:
# https://gitlab.inria.fr/solverstack/chameleon/container_registry
#
FROM registry.gitlab.inria.fr/solverstack/chameleon
USER root
# Chameleon tools/pages.sh script additional dependencies
RUN apt-get -y upgrade --no-install-recommends \
emacs \
emacs-goodies-el \
elpa-htmlize \
python3-click \
python3-elasticsearch \
python3-pandas \
r-cran-ggplot2 \
r-cran-plyr \
r-cran-reshape2
RUN apt-get autoremove -y
RUN apt-get autoclean -y
RUN apt-get purge -y
USER gitlab
--- ---
docker: .docker_script_common:
stage: docker stage: docker
image: docker image: docker
when: manual when: manual
before_script: before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script: script:
- docker build -f .gitlab/Dockerfile -t $CI_REGISTRY_IMAGE $PWD - docker build -f $IMAGE_FILE -t $IMAGE_NAME $PWD
- docker push $CI_REGISTRY_IMAGE - docker push $IMAGE_NAME
docker-tests:
extends: .docker_script_common
variables:
IMAGE_FILE: .gitlab/Dockerfile
IMAGE_NAME: $CI_REGISTRY_IMAGE
docker-pages:
extends: .docker_script_common
variables:
IMAGE_FILE: .gitlab/Dockerfile-pages
IMAGE_NAME: $CI_REGISTRY_IMAGE/pages
--- ---
pages: pages:
stage: deploy stage: deploy
image: $CI_REGISTRY_IMAGE/pages
extends: .only-master extends: .only-master
needs: [coverage_master] needs: [coverage_master]
variables:
VERSION: pages
script:
- ./tools/pages.sh
artifacts: artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG" name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
expire_in: 1 week expire_in: 1 week
paths: paths:
- public - public
variables:
VERSION: pages
script:
- ./tools/pages.sh
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#+OPTIONS: H:3 num:t \n:nil @:t ::t |:t _:nil ^:nil -:t f:t *:t <:t #+OPTIONS: H:3 num:t \n:nil @:t ::t |:t _:nil ^:nil -:t f:t *:t <:t
#+OPTIONS: TeX:t LaTeX:t skip:nil d:nil pri:nil tags:not-in-toc html-style:nil #+OPTIONS: TeX:t LaTeX:t skip:nil d:nil pri:nil tags:not-in-toc html-style:nil
# #+HTML_LINK_HOME: https://solverstack.gitlabpages.inria.fr/chameleon/ # #+HTML_LINK_HOME: https://solverstack.gitlabpages.inria.fr/chameleon/
#+SETUPFILE: https://mfelsoci.gitlabpages.inria.fr/inria-org-html-themes/online-theme-readtheorginria.setup #+SETUPFILE: https://solverstack.gitlabpages.inria.fr/inria-org-html-themes/online-theme-readtheorginria.setup
* Overview * Overview
:PROPERTIES: :PROPERTIES:
......
...@@ -9,6 +9,8 @@ ...@@ -9,6 +9,8 @@
(require 'org) (require 'org)
(require 'htmlize) (require 'htmlize)
(setq org-safe-remote-resources '("https://solverstack.gitlabpages.inria.fr/inria-org-html-themes/online-theme-readtheorginria.setup"))
(setq org-html-htmlize-output-type 'css) (setq org-html-htmlize-output-type 'css)
(setq org-src-fontify-natively t) (setq org-src-fontify-natively t)
(org-babel-do-load-languages (org-babel-do-load-languages
......
...@@ -5,13 +5,21 @@ ...@@ -5,13 +5,21 @@
# @copyright 2020-2024 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria, # @copyright 2020-2024 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria,
# Univ. Bordeaux. All rights reserved. # Univ. Bordeaux. All rights reserved.
# #
# @version 1.2.0 # @version 1.3.0
# @author Florent Pruvost # @author Florent Pruvost
# @date 2022-02-22 # @date 2022-02-22
# #
set -e
set -x
CHAMELEON_SRC_DIR=${CHAMELEON_SRC_DIR:-$PWD} CHAMELEON_SRC_DIR=${CHAMELEON_SRC_DIR:-$PWD}
mkdir tmp_fig # where is installed starpu in the docker image
CURRENTUSER=`whoami`
if [[ -f /.dockerenv && $CURRENTUSER == "gitlab" ]]; then
export PKG_CONFIG_PATH=/home/gitlab/install/starpu/lib/pkgconfig:$PKG_CONFIG_PATH
fi
mkdir -p tmp_fig
cd tmp_fig cd tmp_fig
## need to generate figures from last benchmarks ## need to generate figures from last benchmarks
...@@ -49,22 +57,23 @@ cd .. ...@@ -49,22 +57,23 @@ cd ..
## Build the doc ## Build the doc
VERSION=${VERSION:-pages} VERSION=${VERSION:-pages}
mkdir -p build-$VERSION cmake -S ${CHAMELEON_SRC_DIR} -B build-$VERSION -DCHAMELEON_ENABLE_DOC=ON
cd build-$VERSION cmake --build build-$VERSION --target doc --verbose -j5
cmake $CHAMELEON_SRC_DIR -DCHAMELEON_ENABLE_DOC=ON
make doc -j5
## Copy files in public/ used as an artefact (zip archive) to upload on gitlab pages, see ## Copy files in public/ used as an artefact (zip archive) to upload on gitlab pages, see
## Homepage: https://solverstack.gitlabpages.inria.fr/chameleon/index.html mkdir -p public/dev/
## API: https://solverstack.gitlabpages.inria.fr/chameleon/dev/index.html
cd .. ## Homepage (user's guide): https://solverstack.gitlabpages.inria.fr/chameleon/index.html
mkdir public/
mkdir public/dev/
cp build-$VERSION/doc/user/*.html public/ cp build-$VERSION/doc/user/*.html public/
cp build-$VERSION/doc/user/*.png public/ cp build-$VERSION/doc/user/*.png public/
cp build-$VERSION/doc/user/*.jpg public/ cp build-$VERSION/doc/user/*.jpg public/
cp build-$VERSION/doc/user/*.svg public/ cp build-$VERSION/doc/user/*.svg public/
## API (doxygen): https://solverstack.gitlabpages.inria.fr/chameleon/dev/index.html
cp -r build-$VERSION/doc/dev/html/* public/dev/ cp -r build-$VERSION/doc/dev/html/* public/dev/
## Images such as last performances on plafrim
cp tmp_fig/* public/ cp tmp_fig/* public/
## lcov code coverage: https://solverstack.gitlabpages.inria.fr/chameleon/coverage/
cp -r coverage public/ cp -r coverage public/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment