-
Notifications
You must be signed in to change notification settings - Fork 9
Add Docker support #13
base: master
Are you sure you want to change the base?
Conversation
|
Beware of #12 as both |
|
@f0o thanks got the PR, I’m used the config to run the bot in Docker env. Do you run version 1.0.1 yourself? Can you confirm it works? My bot starts and is online on server but does not respond to commands and DB is not being created, I wonder if it’s this version issue or something to do with Docker env |
|
I think it's related to JDA and updated Discord API rules, rendering version 1.0.1 not functional anymore, see discord-jda/JDA#1424 |
|
yeah this project might as well just be dead. not sure I'm willing to fix it in Kotlin, rather recode it in golang or similar to be more efficient and smaller in size overall |
|
FIY, I've managed to patch v1.0.1 to make it work, see commit here in my fork GitNation@77c2e3a |
|
Awesome thanks, added your patch to my backports branch haha |
|
Hi ! |
|
I have this error @operatino [02:31:06.451][JDA MainWS-ReadThread][ERROR]: net.dv8tion.jda.api.JDA: One of the EventListeners had an uncaught exception
java.lang.IllegalStateException: No default locale: en_US
at com.shimmermare.inviteroles.i18n.InternalizationService.getDefaultLocale(InternalizationService.kt:30)
at com.shimmermare.inviteroles.i18n.InternalizationService.apply(InternalizationService.kt:47)
at com.shimmermare.inviteroles.i18n.InternalizationService.apply(InternalizationService.kt:44)
at com.shimmermare.inviteroles.command.AboutCommandProcessor.processAbout(AboutCommandProcessor.kt:25)
at com.shimmermare.inviteroles.command.CommandService$registerCommands$1.invoke(CommandService.kt:154)
at com.shimmermare.inviteroles.command.CommandService$registerCommands$1.invoke(CommandService.kt:28)
at com.shimmermare.inviteroles.command.CommandService$sam$com_mojang_brigadier_Command$0.run(CommandService.kt)
at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:262)
at com.shimmermare.inviteroles.command.CommandService.onGuildMessageReceived(CommandService.kt:82)
at net.dv8tion.jda.api.hooks.ListenerAdapter.onEvent(ListenerAdapter.java:395)
at net.dv8tion.jda.api.hooks.InterfacedEventManager.handle(InterfacedEventManager.java:96)
at net.dv8tion.jda.internal.hooks.EventManagerProxy.handle(EventManagerProxy.java:64)
at net.dv8tion.jda.internal.JDAImpl.handleEvent(JDAImpl.java:165)
at net.dv8tion.jda.internal.handle.MessageCreateHandler.handleInternally(MessageCreateHandler.java:97)
at net.dv8tion.jda.internal.handle.SocketHandler.handle(SocketHandler.java:36)
at net.dv8tion.jda.internal.requests.WebSocketClient.onDispatch(WebSocketClient.java:883)
at net.dv8tion.jda.internal.requests.WebSocketClient.onEvent(WebSocketClient.java:771)
at net.dv8tion.jda.internal.requests.WebSocketClient.handleEvent(WebSocketClient.java:750)
at net.dv8tion.jda.internal.requests.WebSocketClient.onBinaryMessage(WebSocketClient.java:921)
at com.neovisionaries.ws.client.ListenerManager.callOnBinaryMessage(ListenerManager.java:385)
at com.neovisionaries.ws.client.ReadingThread.callOnBinaryMessage(ReadingThread.java:276)
at com.neovisionaries.ws.client.ReadingThread.handleBinaryFrame(ReadingThread.java:996)
at com.neovisionaries.ws.client.ReadingThread.handleFrame(ReadingThread.java:755)
at com.neovisionaries.ws.client.ReadingThread.main(ReadingThread.java:108)
at com.neovisionaries.ws.client.ReadingThread.runMain(ReadingThread.java:64)
at com.neovisionaries.ws.client.WebSocketThread.run(WebSocketThread.java:45) |
|
@Guilhem-Pech I'm not really a Java dev, so can't really assist... I've managed to make my fork work, there are more issues related to new Discord API changes, see details here #15 Hope that helps |
Based of Tag
v1.0.1this implements an alpine based Docker image using OpenJDK 16.Sadly due to java being excessively bloated by nature the container is still 335MB in size. (321MB for the JDK Alpine image)