Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 27
Redis sample starter#175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Redis sample starter #175
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| auth: | ||
| - name: admin | ||
| fixedHeaders: | ||
| - name: User-Tag | ||
| value: +user/admin | ||
| - name: User-Role | ||
| value: ROLE_ADMIN | ||
| - name: X-XSRF-TOKEN | ||
| value: evomaster | ||
| - name: Cookie | ||
| value: XSRF-TOKEN=evomaster | ||
| - name: alice | ||
| fixedHeaders: | ||
| - name: User-Tag | ||
| value: +user/alice | ||
| - name: User-Role | ||
| value: ROLE_USER | ||
| - name: X-XSRF-TOKEN | ||
| value: evomaster | ||
| - name: Cookie | ||
| value: XSRF-TOKEN=evomaster | ||
| - name: bob | ||
| fixedHeaders: | ||
| - name: User-Tag | ||
| value: +user/bob | ||
| - name: User-Role | ||
| value: ROLE_USER | ||
| - name: X-XSRF-TOKEN | ||
| value: evomaster | ||
| - name: Cookie | ||
| value: XSRF-TOKEN=evomaster | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| FROM amazoncorretto:25-alpine-jdk | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why | ||
| COPY ./dist/jasper-sut.jar . | ||
| COPY ./dist/jacocoagent.jar . | ||
| #ENV TOOL="undefined" | ||
| #ENV RUN="0" | ||
| ENTRYPOINT \ | ||
| java \ | ||
| # unfortunately dumponexit is completely unreliable in Docker :( | ||
| # -javaagent:jacocoagent.jar=destfile=./jacoco/jasper__${TOOL}__${RUN}__jacoco.exec,append=false,dumponexit=true \ | ||
| -javaagent:jacocoagent.jar=output=tcpserver,address=*,port=6300,append=false,dumponexit=false \ | ||
| -jar jasper-sut.jar \ | ||
| --server.port=8080 --spring.profiles.active=api-docs --spring.datasource.url=jdbc:postgresql://db:5432/jasper --spring.datasource.username=postgres --spring.datasource.password=password --spring.datasource.hikari.auto-commit=false --spring.jpa.database-platform=jasper.config.PostgreSQLDialect --springdoc.api-docs.path=/api/v3/api-docs --jasper.allow-user-tag-header=true --jasper.allow-user-role-header=true --jasper.allow-auth-headers=true | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| services: | ||
| mitmproxy: | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why | ||
| image: mitmproxy/mitmproxy:10.2.4 | ||
| user: "0:0" | ||
| environment: | ||
| MITM_LOG_DIR: /custom-logs | ||
| MITM_LOG_FILE: ${MITM_LOG_FILE:-minlog.csv} | ||
| command: > | ||
| mitmdump | ||
| --mode reverse:http://sut-jasper:8080 | ||
| --listen-host 0.0.0.0 | ||
| --listen-port 8080 | ||
| --set keep_host_header=true | ||
| -s /addons/minlog.py | ||
| volumes: | ||
| - ${HOST_LOG_DIR:-./mitm-logs}:/custom-logs | ||
| - ./addons:/addons:ro | ||
| ports: | ||
| - "${HOST_PORT:-8080}:8080" | ||
| depends_on: | ||
| - sut-jasper | ||
| sut-jasper: | ||
| build: | ||
| dockerfile: ./dockerfiles/jasper.dockerfile | ||
| context: .. | ||
| environment: | ||
| AUTH_PORT: ${AUTH_PORT:-8081} | ||
| ports: | ||
| - "${JACOCO_PORT:-6300}:6300" | ||
| db: | ||
| image: postgres:18 | ||
| tmpfs: | ||
| - '/var/lib/postgresql' | ||
| environment: | ||
| POSTGRES_PASSWORD: password | ||
| POSTGRES_HOST_AUTH_METHOD: trust | ||
| POSTGRES_DB: jasper | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| /mvnwtexteol=lf | ||
| *.cmdtexteol=crlf |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| target/ | ||
| !.mvn/wrapper/maven-wrapper.jar | ||
| !**/src/main/**/target/ | ||
| !**/src/test/**/target/ | ||
| ### STS ### | ||
| .apt_generated | ||
| .classpath | ||
| .factorypath | ||
| .project | ||
| .settings | ||
| .springBeans | ||
| .sts4-cache | ||
| ### IntelliJ IDEA ### | ||
| .idea | ||
| *.iws | ||
| *.iml | ||
| *.ipr | ||
| logs | ||
| ### NetBeans ### | ||
| /nbproject/private/ | ||
| /nbbuild/ | ||
| /dist/ | ||
| /nbdist/ | ||
| /.nb-gradle/ | ||
| build/ | ||
| !**/src/main/**/build/ | ||
| !**/src/test/**/build/ | ||
| ### VS Code ### | ||
| .vscode/ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| # Read Me First | ||
| The following was discovered as part of building this project: | ||
| * No Docker Compose services found. As of now, the application won't start! Please add at least one service to the | ||
| `compose.yaml` file. | ||
| # Getting Started | ||
| ### Reference Documentation | ||
| For further reference, please consider the following sections: | ||
| * [Official Apache Maven documentation](https://maven.apache.org/guides/index.html) | ||
| * [Spring Boot Maven Plugin Reference Guide](https://docs.spring.io/spring-boot/3.4.4/maven-plugin) | ||
| * [Create an OCI image](https://docs.spring.io/spring-boot/3.4.4/maven-plugin/build-image.html) | ||
| * [Spring Configuration Processor](https://docs.spring.io/spring-boot/3.4.4/specification/configuration-metadata/annotation-processor.html) | ||
| * [Spring Boot DevTools](https://docs.spring.io/spring-boot/3.4.4/reference/using/devtools.html) | ||
| * [Docker Compose Support](https://docs.spring.io/spring-boot/3.4.4/reference/features/dev-services.html#features.dev-services.docker-compose) | ||
| ### Docker Compose support | ||
| This project contains a Docker Compose file named `compose.yaml`. | ||
| However, no services were found. As of now, the application won't start! | ||
| Please make sure to add at least one service in the `compose.yaml` file. | ||
| ### Maven Parent overrides | ||
| Due to Maven's design, elements are inherited from the parent POM to the project POM. | ||
| While most of the inheritance is fine, it also inherits unwanted elements like `<license>` and `<developers>` from the | ||
| parent. | ||
| To prevent this, the project POM contains empty overrides for these elements. | ||
| If you manually switch to a different parent and actually want the inheritance, you need to remove those overrides. | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why
jasperfiles in this PR?