-
Notifications
You must be signed in to change notification settings - Fork 28
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
Closed
Closed
Redis sample starter #175
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,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 | ||
This file contains hidden or 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,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 | ||
This file contains hidden or 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,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 | ||
This file contains hidden or 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 hidden or 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,2 @@ | ||
| /mvnw text eol=lf | ||
| *.cmd text eol=crlf |
This file contains hidden or 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,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/ |
This file contains hidden or 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,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. | ||
|
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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?