Commit graph

263 commits

Author SHA1 Message Date
8f2cdf8bad ci: Remove platform constrain for builds
All checks were successful
ci/woodpecker/push/build-amd64 Pipeline was successful
ci/woodpecker/push/build-arm Pipeline was successful
2023-07-18 18:39:14 +02:00
2cefa95f6f ci: Change docker image to woodpeckers docker image with buildx support 2023-07-18 18:38:16 +02:00
1a130da1da ci: Change platform for arm builds to arm 2023-07-18 18:38:16 +02:00
ca6a913578 container: Add .dockerignore
Some checks failed
ci/woodpecker/push/build-amd64 Pipeline was successful
ci/woodpecker/push/build-arm Pipeline failed
We will use Docker as builder in the CI for now and Docker doesn't
understand .containerignore files...
2023-07-18 00:35:32 +02:00
e56e9d0ee3 ci: Change to docker plugin to build multi platform image 2023-07-18 00:34:36 +02:00
f7e8b2356f container: Switch from alpine to jammy as final base image
Eclipse doesn't provide arm64 builds of the alpine base image.
2023-07-17 00:39:32 +02:00
1a432e9f3d container: Further reduce build output 2023-07-17 00:38:59 +02:00
d4ca9336b4 ci: Switch back to previous docker password config
Some checks failed
ci/woodpecker/push/build-arm Pipeline is pending
ci/woodpecker/push/build-amd64 Pipeline failed
2023-07-16 21:49:14 +02:00
1d68948c5a container: Reduce maven output wihle building 2023-07-16 21:46:44 +02:00
db07e70679 ci: Specify Containerfile
Some checks failed
ci/woodpecker/push/build-arm Pipeline is pending
ci/woodpecker/push/build-amd64 Pipeline failed
2023-07-16 21:36:29 +02:00
0062491b2e ci: Fix when clause
Some checks failed
ci/woodpecker/push/build-arm Pipeline is pending
ci/woodpecker/push/build-amd64 Pipeline failed
2023-07-16 21:27:14 +02:00
de18f158aa ci: Fix image indentation 2023-07-16 21:21:11 +02:00
439f62c31f Add different method to provide Docker creds 2023-07-16 21:19:32 +02:00
cb42a9b2c2 Add Woodpecker CI config for building bot image 2023-07-16 21:11:59 +02:00
95cb36d6ed Change command event logging to debug level
Reduce the log output in info mode.
2023-06-16 17:12:56 +02:00
2afe46f888 Add tokens slash command support on DMs 2023-06-16 17:09:35 +02:00
1beb7bea27 Change DMs to send as normal message and not as reply
This should give a better read experience.
2023-06-16 14:14:16 +02:00
c66f31948a Add support for the 16k context model for DMs 2023-06-16 14:00:02 +02:00
ce61216dd6 Simplify checking of the OpenAI response 2023-06-11 22:05:03 +02:00
f3fa173c3c Add explicit use of env-file in compose 2023-06-11 20:43:00 +02:00
bec45ce14c Fix starting web with virtual threads
I don't know how to disable them on Javalin and with them it breaks...
2023-05-21 22:44:41 +02:00
b5791e784b Add custom user to run the deployed apps
To prevent running them with the root user.
2023-05-21 22:24:01 +02:00
f3bcd64a90 Fix db pooling shutdown on web after startup 2023-05-21 22:23:22 +02:00
4b60f59956 Add support to use chat hitory for context in private chats 2023-05-21 20:03:34 +02:00
9243b410ab Increase timeout for OpenAI API to 5 minutes
The API is very slow lately...
2023-05-21 19:05:33 +02:00
6d537db12e Move dependency version management from module to parent pom
This should simplify updating dependencies and reduce dependency
resolution overhead.
2023-05-21 19:04:20 +02:00
d160f01b52 Intorduce HikariCP for JDBC connection pooling 2023-05-21 18:48:45 +02:00
f5e40e324d Fix to reply if no response was provided 2023-05-20 20:37:10 +02:00
5459cf1dd1 Refactor exception handling while handling events 2023-05-20 20:34:46 +02:00
3641b01162 Refactor unnecessary assignments 2023-05-20 20:28:31 +02:00
f457c23301 Increase OpenAI API timeout to 90 seconds
30 was to low.
2023-05-20 20:23:28 +02:00
92473716fb Update deployment 2023-05-20 20:22:00 +02:00
5662d2faf1 Add additional package information to the pom.xml 2023-05-16 03:12:46 +02:00
f7ebd79cbd Change license from MIT to MPL-2.0
It fits better to this project and is a license I find interesting.
2023-05-16 03:06:52 +02:00
c8c3f70254 Fix ui redirect 2023-05-16 02:43:22 +02:00
cbab8ff439 Fix ui serving location
The ui is now part of the classpath.
2023-05-16 02:08:48 +02:00
4f0be9919f Adjust container image build to support multi modules 2023-05-16 01:51:45 +02:00
b8b83baa72 Move into multi module project structure
Javalin and Javacord crash if running on same JVM but on different
threads for some reasons. This is should fix it :D
2023-05-16 01:50:56 +02:00
e7e601a28b Remove unused port binding 2023-05-14 01:09:28 +02:00
1a7cb6f055 Add comment to explain blocking call while migration runs 2023-05-14 00:57:13 +02:00
9de90700c3 Switch to virtual thread for discord bot shutdown hook
Why use a system Thread?
2023-05-14 00:56:21 +02:00
9dc9f16c06 Add JDK_JAVA_OPTIONS env to enable preview features 2023-05-14 00:53:06 +02:00
9754e36c99 Switch back to JDK 19 for the final image
We use preview features while compiling so it won't run on JDK 20...
Waiting for NixOS to package JDK 20 :D
2023-05-14 00:51:55 +02:00
18ab41ed09 Update running jdk to 20 with alpine as base
This should reduce the final image size and improve performance by using
the now maintained version, since 19 is now EOL.
2023-05-13 01:42:31 +02:00
1805321f18 Disable dev Javalin logging 2023-05-11 21:25:12 +02:00
bb9a7e8279 Fix api url in UI
Reminding of the local development
2023-05-11 18:45:20 +02:00
a398641172 Change type of user_id and server_id from long to string
JS don't support such big numbers.
2023-05-08 18:02:32 +02:00
4ce0f70d5d Fix not updateing user_id on config entity 2023-05-08 17:46:52 +02:00
568e175208 Use the system message from the config 2023-05-08 17:31:05 +02:00
e6b7f10b87 Fix grama 2023-05-08 16:34:00 +02:00