[skip ci] Cleanup dev_notes

This commit is contained in:
Mirco 2024-07-09 08:58:05 +02:00
parent 04a7b3c834
commit 4b64fed80a
2 changed files with 7 additions and 20 deletions

View file

@ -22,7 +22,7 @@ https://meapp-fullstack.jitsi.prod.meissa.de
* compile **native-image graalvm binary**
(1) use graalvm agent to announce project dependencies
```shell
java -agentlib:native-image-agent=config-output-dir=src/main/resources/META-INF/native-image -jar build/libs/ModeratorElection-0.0.1-SNAPSHOT.jar
MEMBERNAMES=er,sie,es java -agentlib:native-image-agent=config-output-dir=src/main/resources/META-INF/native-image -jar build/libs/ModeratorElection-0.0.1-SNAPSHOT.jar
```
(2)
`./gradlew nativeCompile -Dvaadin.productionMode=true`

View file

@ -1,7 +1,4 @@
### ToDo
```
useable vaadin version 24.3.3 !latest v24.4.3
```
```
HowTo BUILD jar?
@ -9,12 +6,12 @@ HowTo BUILD jar?
Failed within local: ./gradle build
java -jar build/libs/ModeratorElection.jar -> localhost:6333 "White Label..."-Error
=> ./gradlew clean build -Pvaadin.productionMode -x processTestAot
=> ./gradlew clean build -Pvaadin.productionMode
..in ide dev: ./gradlew clean vaadinPrepareFrontend
```
```
-x processTestAot exclude
-x processTestAot - exclude, skip tests
https://docs.spring.io/spring-boot/gradle-plugin/aot.html
Processing Tests
@ -30,20 +27,16 @@ use the output of the 'processAot' and 'processTestAot' tasks.
```
For production:
* install.sh
git clone --single-branch --branch MEapp-development https://repo.prod.meissa.de/meissa/ModeratorElection.git /usr/local/src/ModeratorElection
=> --branch main
git clone --single-branch --branch main https://repo.prod.meissa.de/meissa/ModeratorElection.git /usr/local/src/ModeratorElection
```
```
build graalvm binary
./gradlew nativeCompile failed, need for some improvements!
1. First build jar locally, and get META-INF with
./gradlew clean build -Pvaadin.productionMode -x processTestAot
java -agentlib:native-image-agent=config-output-dir=src/main/resources/META-INF/native-image -jar build/libs/ModeratorElection-0.0.1-SNAPSHOT.jar
curl -X GET http://localhost:8080
MEMBERNAMES=er,sie,es java -agentlib:native-image-agent=config-output-dir=src/main/resources/META-INF/native-image -jar build/libs/ModeratorElection-0.0.1-SNAPSHOT.jar
curl -X GET localhost:8080
2. graalvm native-image compilation
./gradlew nativeCompile -Dvaadin.productionMode=true //-H:ConfigurationFileDirectories=/path/to/config-dir/ notwendig falls nicht in src/main/resources/META-INF/native-image/
@ -55,7 +48,7 @@ https://docs.oracle.com/en/graalvm/enterprise/21/docs/reference-manual/graalvm-u
```
```
after npm audit fix during image build
vaadin 24.3.3, after npm audit fix during image build:
npm warn deprecated workbox-google-analytics@7.0.0: It is not compatible with newer versions of GA starting with v4, as long as you are using GAv3 it should be ok, but the package is not longer being maintained
npm warn deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
@ -71,12 +64,6 @@ https://vaadin.com/forum/t/unregistered-node-was-not-found-based-on-its-id-the-t
https://vaadin.com/docs/v14/flow/integrations/spring/tutorial-spring-scopes
=> @PreserveOnRefresh annotation in MainView.java does the trick
```
```
pyb test funktionsfähig machen, ddadevops Doku weiss mehr
erledigt!
```
```
ddadevops anpassung, dass src code ins docker image übergeben werden kann - ohne git clone
```