/optaplanner-website

The awestruct sources for the website https://www.optaplanner.org and the presentation sources.

Primary LanguageHTML

OptaPlanner

How to build with Awestruct

On Fedora 31

Follow these instructions:

# Optional: clean your system first.
$ sudo dnf remove ruby rubygems rubygem-rake rubygem-bundler ruby-devel rpm-build gcc-c++ make

# Install ruby and other native RPM packages
# TODO Is rpm-build obsolete? It was once needed for ffi
# TODO Is gcc-c++ obsolete? It was needed for eventmachine
$ sudo dnf install ruby rubygems rubygem-rake rubygem-bundler ruby-devel rpm-build gcc-c++ make

$ ruby --version
ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-linux]

# Setup the gem dependencies
$ rake setup

Then build the optaplanner-website (before and after your changes):

$ rake clean build
$ firefox _site/index.html

And publish your changes (if you got authorization, otherwise Jenkins will do it):

$ rake clean build publish

Troubleshooting:

  • Error message Could not find ffi-1.13.1 in any of the sources

    If you get that error message, run:

    sudo gem pristine ffi --version 1.13.1
    ...
    rake setup

On other systems

Follow the instructions of Awestruct’s getting started guide.

Developing Drools, OptaPlanner and jBPM

If you want to build or contribute to a kiegroup project, read this document.

It will save you and us a lot of time by setting up your development environment correctly. It solves all known pitfalls that can disrupt your development. It also describes all guidelines, tips and tricks. If you want your pull requests (or patches) to be merged into master, please respect those guidelines.