Skip to content

Commit 0c9ee6e

Browse files
authored
Merge pull request #14 from Jojoooo1/release/4.0
Release - 4.0
2 parents 0ecbe30 + 9cab98f commit 0c9ee6e

File tree

4 files changed

+17
-19
lines changed

4 files changed

+17
-19
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ No task assigned.
88

99
# Test
1010

11-
## Unit Tests
11+
## Unit & Integration Tests
1212

1313
`make test`
1414

1515
# Deploy
1616

17-
After the tests were successful the image will be updated automatically. If you want to update the image for production environment you will need to generate a release and gave the
17+
After the tests were successful the image will be updated automatically. If you want to update the
18+
image for production environment you will need to generate a release and gave the
1819
image name to the SRE team.
1920

2021

Makefile

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,13 @@ restart-infra: ## Reset and start required infrastructure with docker compose
3232
$(MAKE) start-database start-keycloak start-rabbitmq
3333

3434
start-all: ## Run all containers with docker compose
35-
$(MAKE) kill start-infra start-api
36-
37-
restart-all: ## Reset and start all containers with docker compose
3835
$(MAKE) start-infra start-api
3936

37+
restart-all: ## Restart containers with docker compose
38+
@docker compose stop api # used to rebuild API after modification
39+
@docker compose up -d
40+
@docker compose logs -f api
41+
4042
start-database: ## Run api database
4143
@docker compose up -d ${DB_CONTAINER} --wait
4244
# Set db_user as superuser to allow replication slot creation within migration
@@ -62,13 +64,9 @@ kill-rabbitmq : ## Kill rabbitmq
6264
@docker compose rm -sf rabbitmq
6365
@docker volume rm -f api_rabbitmq
6466

65-
restart: ## restart project
66-
@docker compose stop api # used to rebuild API after modification
67-
@docker compose up -d
68-
@docker compose logs -f api
69-
7067
kill: ## Kill and reset project
7168
@docker compose down
69+
@mvn install -DskipTests
7270
$(MAKE) kill-database kill-keycloak kill-rabbitmq
7371

7472
release: ## Create release

docker-compose.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
version: '3.9'
22

33
services:
4+
# After using this maven container you need to re-install maven using "mvn install -DskipTests"
45
api:
56
container_name: api
67
image: maven:3.9.4-eclipse-temurin-17
@@ -21,10 +22,11 @@ services:
2122
condition: service_healthy
2223
environment:
2324
MAVEN_CONFIG: /var/maven/.m2
24-
SPRING_CLOUD_KUBERNETES_ENABLED: 'false'
25-
SPRING_DATASOURCE_URL: 'jdbc:postgresql://api-database/api?stringtype=unspecified&reWriteBatchedInserts=true'
25+
SPRING_PROFILES_ACTIVE: dev
26+
SPRING_CLOUD_KUBERNETES_ENABLED: "false"
27+
SPRING_DATASOURCE_URL: "jdbc:postgresql://localhost:5432/api?stringtype=unspecified&reWriteBatchedInserts=true"
2628
volumes:
27-
- .:/usr/src/workdir:rw
29+
- "$PWD:/usr/src/workdir"
2830
- ~/.m2:/var/maven/.m2
2931
working_dir: /usr/src/workdir
3032
healthcheck:

src/main/resources/logback-spring.xml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,9 @@
3535
<stackTrace>
3636
<fieldName>stackTrace</fieldName>
3737
<throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter">
38-
<!-- By default set to Integer.MAX_VALUE, full is not working anymore -->
39-
<!-- <maxDepthPerThrowable>full</maxDepthPerThrowable>-->
40-
<!-- By default set to Integer.MAX_VALUE, full is not working anymore -->
41-
<!-- <maxLength>full</maxLength>-->
42-
<!-- By default set to -1, full is not working anymore -->
43-
<!-- <shortenedClassNameLength>20</shortenedClassNameLength>-->
38+
<maxDepthPerThrowable>4</maxDepthPerThrowable>
39+
<!-- <maxLength>256</maxLength>-->
40+
<shortenedClassNameLength>30</shortenedClassNameLength>
4441
<rootCauseFirst>true</rootCauseFirst>
4542
</throwableConverter>
4643
</stackTrace>

0 commit comments

Comments
 (0)