Compiling modified graylog project

Hi all,

I have modified the master branch code for graylog and I want to create a docker image out of it.

i have used mvn -Dmaven.javadoc.skip=true -DskipTests package to create the jar files and tried to copy the stracture of these files as best as I can from the structure of graylog 5.0 package.
i have created the image using this repo:

slightly modified it so it wouldn’t take the package from the graylog site but us my own package.

once the image starts, after opensearch boots up I am getting this errer:
Exception in thread “main”

java.lang.NoClassDefFoundError: com/github/rvesse/airline/Cli

at org.graylog2.bootstrap.Main.main(Main.java:34)

Caused by: java.lang.ClassNotFoundException: com.github.rvesse.airline.Cli

at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)

at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)

at java.base/java.lang.ClassLoader.loadClass(Unknown Source)

... 1 more

which makes me think there was something wrong with the package command/ the way I took the jar files?

it works great when building the develop image or running locally from the IDE

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.