First, and most importantly, thanks!
-
Install the requirements
- Java 11
- SBT
- Docker
You will also require
Deploy Tools - Developer
permissions from Janus in order to run locally.
-
Create configuration Create a configuration file at
~/.gu/riff-raff.conf
. At a minimum it looks like this, replacing placeholders with appropriate values:artifact.aws.bucketName=<ARTIFACTS BUCKET NAME> build.aws.bucketName=<BUILDS BUCKET NAME> db.default.url="jdbc:postgresql://localhost:7432/riffraff" db.default.user="riffraff" db.default.hostname="riffraff" db.default.password="riffraff" lookup.prismUrl=<PRISM URL> lookup.source="prism"
-
From the root of the repository, run:
./script/start
Add
--debug
to attach a remote debugger on port 9999. -
Visit http://localhost:9000/
-
Details of how to configure Riff-Raff can then be found at http://localhost:9000/docs/riffraff/administration/properties
It's worth reading the Pull Request recommendations first.
Adding tests, particularly if you're modifying existing code, is preferable.
Tests can be run locally via:
./script/test
Unfortunately, there is a long standing bug where CI will randomly fail with a message similar to:
scala.reflect.internal.Symbols$CyclicReference: illegal cyclic reference involving class GetParameterResponse
We've not managed to fully resolve this. If you can, that'd be amazing!
The problem usually resolves itself if you re-run the build. If you're still seeing the error, it's worth compiling and running the tests locally to be sure it's not a genuine issue with your branch.