-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update micronaut, add testuser to sql migration, saving new WidgetCon…
…figValue
- Loading branch information
Showing
14 changed files
with
124 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
FROM eclipse-temurin:17-jdk-jammy | ||
FROM fedora:39 | ||
WORKDIR /app | ||
COPY target/oda-config-service-0.1.jar /app | ||
COPY target/oda-config-service /app | ||
|
||
CMD ["java","--add-opens","java.base/java.time=ALL-UNNAMED","-jar","oda-config-service-0.1.jar"] | ||
CMD ["./oda-config-service"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
default paymentpage config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
version=`date +%s` | ||
imagename="ghcr.io/opendonationassistant/oda-config-service:$version" | ||
|
||
export JAVA_HOME=/usr/lib/jvm/graalvm-jdk-21.0.2+13.1 | ||
mvn clean package -Dpackaging=native-image | ||
podman build . -t $imagename | ||
podman save $imagename | sudo k3s ctr image import - | ||
kubectl get deploy config-service -o json | jq ".spec.template.spec.containers[0].image = \"$imagename\"" | kubectl apply -f - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,29 @@ | ||
package io.github.stcarolas.oda; | ||
|
||
import io.micronaut.context.ApplicationContext; | ||
import io.micronaut.context.ApplicationContextBuilder; | ||
import io.micronaut.context.ApplicationContextConfigurer; | ||
import io.micronaut.context.annotation.ContextConfigurer; | ||
import io.micronaut.runtime.Micronaut; | ||
|
||
public class Application { | ||
|
||
@ContextConfigurer | ||
public static class DefaultEnvironmentConfigurer | ||
implements ApplicationContextConfigurer { | ||
|
||
@Override | ||
public void configure(ApplicationContextBuilder builder) { | ||
builder.defaultEnvironments("standalone"); | ||
} | ||
} | ||
|
||
public static void main(String[] args) { | ||
Beans.context = Micronaut.build(args).banner(false).start(); | ||
ApplicationContext context = Micronaut | ||
.build(args) | ||
.mainClass(Application.class) | ||
.banner(false) | ||
.start(); | ||
Beans.context = context; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
datasources: | ||
default: | ||
driverClassName: 'org.postgresql.Driver' | ||
db-type: "postgresql" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
rabbitmq.host: ${RABBITMQ_HOST:`localhost`} | ||
datasources: | ||
default: | ||
url: ${JDBC_URL:`jdbc:postgresql://localhost/postgres?currentSchema=config`} | ||
username: ${JDBC_USER:`postgres`} | ||
password: ${JDBC_PASSWORD:`postgres`} | ||
driverClassName: 'org.postgresql.Driver' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
insert into config(id, name, owner_id, value) values ('018e139a-89e6-75cb-adc2-d02202470b14', 'paymentpage', 'testuser', '{"fio": "Иванов Иван Иванович", "inn": "111111111111", "email": "[email protected]", "nickname": "testuser", "arbitraryText": "приветик, \nспасибо за донатик))", "media.requests.enabled": true}') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters