-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WFLY-18512: todo-backend Quickstart Common Enhancements CY2023Q3
* Updating charts to fix conflict with cli script * Updating the pom to reflect the new properties * Removing the bootable-jar bits * Removing arquillian and upgrading to JUnit to 5 * Adding postgresql Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
- Loading branch information
Showing
12 changed files
with
156 additions
and
371 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
.ci/openshift-ci/build-root/scripts/qs-overrides/todo-backend/ci.yaml
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,16 @@ | ||
postgresql: | ||
primary: | ||
podSecurityContext: | ||
enabled: true | ||
fsGroup: 1001 | ||
containerSecurityContext: | ||
enabled: true | ||
runAsUser: 1001 | ||
runAsGroup: 0 | ||
runAsNonRoot: true | ||
allowPrivilegeEscalation: false | ||
seccompProfile: | ||
type: RuntimeDefault | ||
capabilities: | ||
drop: | ||
- ALL |
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,16 @@ | ||
name: WildFly Todo Backend Quickstart CI | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
paths: | ||
- 'todo-backend/**' | ||
- '.github/workflows/quickstart_ci.yml' | ||
jobs: | ||
call-quickstart_ci: | ||
uses: ./.github/workflows/quickstart_ci.yml | ||
with: | ||
QUICKSTART_PATH: todo-backend | ||
TEST_PROVISIONED_SERVER: true | ||
TEST_OPENSHIFT: true | ||
MATRIX_OS: "ubuntu-latest" |
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,2 @@ | ||
#!/bin/sh | ||
docker run --name todo-backend-db -e POSTGRES_USER=todos -e POSTGRES_PASSWORD=mysecretpassword -p 5432:5432 postgres |
File renamed without changes.
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,46 @@ | ||
# Default values for todo-backend-chart. | ||
# This is a YAML-formatted file. | ||
# Declare variables to be passed into your templates. | ||
|
||
postgresql: | ||
auth: | ||
username: todos-db | ||
password: todos-db | ||
database: todos-db | ||
architecture: "standalone" | ||
primary: | ||
podSecurityContext: | ||
enabled: false | ||
fsGroup: "auto" | ||
containerSecurityContext: | ||
enabled: false | ||
runAsUser: "auto" | ||
runAsGroup: "" | ||
|
||
|
||
wildfly: | ||
build: | ||
uri: https://github.com/wildfly/quickstart.git | ||
ref: main | ||
contextDir: todo-backend | ||
deploy: | ||
replicas: 1 | ||
env: | ||
# Env vars to connect to PostgreSQL DB | ||
- name: POSTGRESQL_DATABASE | ||
value: todos-db | ||
- name: POSTGRESQL_USER | ||
value: todos-db | ||
- name: POSTGRESQL_PASSWORD | ||
value: todos-db | ||
- name: POSTGRESQL_DATASOURCE | ||
value: ToDos | ||
- name: POSTGRESQL_SERVICE_HOST | ||
value: todo-backend-postgresql | ||
- name: POSTGRESQL_SERVICE_PORT | ||
value: "5432" | ||
# Env to avoid OOME | ||
- name: GC_MAX_METASPACE_SIZE | ||
value: "256" | ||
- name: GC_METASPACE_SIZE | ||
value: "96" |
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
Oops, something went wrong.