GithubHelp home page GithubHelp logo

bundle-cgal-3d-demo's Introduction

docker.io/cgal/bundle-3d-demo Build Status

Automatic building of the CGAL 3D demo (Polyhedron Demo)

Overview

A simple command line to build the demo from $HOME/Git/cgal, and put it in the results/ sub-directory of your current working-directory:

docker run --rm -v $PWD/results:/results:Z -v ~/Git/cgal:/cgal:ro docker.io/cgal/bundle-3d-demo  `/scripts/build.sh -j6 && /scripts/deploy.sh'

Usage

Container Directories

The container scripts uses those directories:

  • /cgal/ is the location of CGAL sources. It can be either a Git checkout of a CGAL branch, or an extracted tarball.
  • /build/ is the binary directory used during the compilation. In particular /build/demo/Polyhedron/ will be the binary tree of the demo.
  • /scripts/ contains the two scripts used to build and create the AppImage of the demo:
    • /scripts/build.sh
    • /scripts/deploy.sh
  • /dist/ is the AppDir created by linuxdeployqt before appimagetool is called.
  • /results/ is the output directory where the AppImage binary will be created.

Directories you should mount as Docker volumes:

  • /cgal/, as a read-only volume, because that is the input of the scripts, and
  • /results/, as a read-write volume, to get an easy access to the result.

Directories that can be mounted as Docker volumes for debugging purpose:

  • /build/ (read-write) if you want to avoid rebuilding the full demo between two runs of the container,
  • /scripts/ (read-only) if you want to debug the scripts,
  • /dist/ if you want to debug issues with linuxdeployqt.

The Main Command

The entrypoint of the container is ["scl", "enable", "devtoolset-4"]. That command only accept one extra option, that is interpreted by a shell. Quote it with single-quotes (').

For example, a possible debugging command line is:

docker run --rm -t -i -v $PWD/build:/build:Z -v $PWD/results:/results:Z -v $PWD/scripts:/scripts:ro -v $PWD/dist:/dist:Z -v ~/Git/cgal:/cgal:ro docker.io/cgal/bundle-3d-demo  'bash -x /scripts/build.sh -j6 VERBOSE=1 && bash -x /scripts/deploy.sh'

The extra :Z option to volume specification is used on Linux version where docker-selinux is enabled. It allows the container to write to the directory.

bundle-cgal-3d-demo's People

Contributors

lrineau avatar maxgimeno avatar oleg-alexandrov avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.