Running Docker - groovylabs/lyre GitHub Wiki

Pre-requirements

  • Docker (tested on v17.06.0-ce)

Installation

  • Pull our image from DockerHub

    • Stable version: docker pull groovylabs/lyre
    • Development version: docker pull groovylabs/lyre:nightly
  • You also can build the image locally

    • git clone https://github.com/groovylabs/lyre.git
    • cd lyre
    • ./mvnw install
    • docker build -t groovylabs/lyre .

Start with custom properties

If you want to change the default configuration, just create a new configuration inside a shared folder with the suffix .properties and use this command:

docker run -p <your-port>:8080 -v <your-path>:/lyre/shared -e 'SPRING_CONFIG_LOCATION=/lyre/shared/<custom-file>.properties' -it groovylabs/lyre

Remember, don't change the application port neither spring active profile. We use a particular Docker configuration/profile.


Acceptable environment variable

You can input your custom configuration with environment variable too, like this command:

docker run -p <your-port>:8080 -v <your-path>:/lyre/shared \
    -e 'LYRE_ENABLE_LIVE_RELOAD=<boolean>' \
    -e 'LYRE_CONTEXT_PATH=<string>' \
    -e 'LYRE_APPLICATION_PATH=<string>' \
    -e 'LYRE_FILE_FORMAT=<string>' \
    -e 'LYRE_DEBUG=<boolean>' \ 
    groovylabs/lyre
⚠️ **GitHub.com Fallback** ⚠️