Skip to content

Commit

Permalink
added module multibanking-server
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Geist committed Jul 10, 2019
1 parent 01e4b54 commit b67ef59
Show file tree
Hide file tree
Showing 143 changed files with 7,267 additions and 2,905 deletions.
37 changes: 37 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[*.java]
indent_style = space
indent_size = 4
continuation_indent_size = 4

[*.py]
indent_style = space
indent_size = 4

[*.{js,css,html}]
indent_style = space
indent_size = 4
insert_final_newline = false

[*.yml]
indent_style = space
indent_size = 2

[*.json]
indent_style = space
indent_size = 2

[*.php]
insert_final_newline = false
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ multibanking-app/.history
pom.xml.versionsBackup
multibanking-app/.sourcemaps
multibanking-app/platforms
multibanking-persistence-jpa/de.adorsys.multibanking.jpa.entity.BankJpaEntity
7 changes: 7 additions & 0 deletions multibanking-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM adorsys/java:8

MAINTAINER https://git.adorsys.de/adorsys/multibanking-service

ENV JAVA_OPTS -Xmx1024m

COPY ./target/multibanking-service.jar .
19 changes: 19 additions & 0 deletions multibanking-server/docker-compose.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

rm .env

hostIp=$(ifconfig | grep '\<inet\>' | cut -d ' ' -f2 | grep -v '127.0.0.1' | head -1)

echo "HOST_IP=$hostIp" >> .env

if [ $# -eq 1 ]; then
if [ $1 = "debug" ]; then
echo "KEYCLOAK_PARAMS=-b 0.0.0.0 --debug" >> .env
fi
fi

cat .env

docker-compose up

rm .env
58 changes: 58 additions & 0 deletions multibanking-server/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
version: '3.1'
services:
postgres_keycloak:
image: postgres:9.6
environment:
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: keycloak
postgres_mbs:
image: postgres:9.6
environment:
POSTGRES_USER: mbs
POSTGRES_PASSWORD: mbs
ports:
- 5432:5432
keycloak:
image: openshift-registry.adorsys.de/adorsys-multibanking-dev/keycloak:latest
environment:
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: admin123
DB_VENDOR: postgres
DB_ADDR: postgres_keycloak
DB_USER: keycloak
DB_PASSWORD: keycloak
USER_SECRET_ENCRYPTION_PASSWORD: 123456789
STS_RESOURCE_SERVER_LIST: MULTIBANKING
STS_RESOURCE_SERVERS_MULTIBANKING_JWKS_URL: http:https://host.docker.internal:8081/pop
STS_RESOURCE_SERVERS_MULTIBANKING_AUDIENCE: Multibanking
STS_RESOURCE_SERVERS_MULTIBANKING_USER_SECRET_CLAIM_NAME: Multibanking
STS_DEFAULT_AUDIENCE: Multibanking
ports:
- "8080:8080"
- "8787:8787"
depends_on:
- postgres_keycloak
command:
"${KEYCLOAK_PARAMS}"
mongodb:
image: mongo:3
ports:
- "27017:27017"
multibanking:
image: adorsys/openjdk-jre-base:8-minideb
working_dir: /app
volumes:
- ./target:/app
environment:
spring.profiles.active: dev-mongo
server.port: 8081
mongo.server: mongodb
mongo.databaseName: multibanking
db_secret: 1234567890123456
mockConnectionUrl: http:https://localhost:8083
SMARTANALYTICS_URL: http:https://localhost:8082
SPRING_APPLICATION_JSON: '{"sts":{"authservers":[{"name":"keycloak","iss-url":"http:https://keycloak:8080/auth/realms/multibanking","jwks-url":"http:https://keycloak:8080/auth/realms/multibanking/protocol/openid-connect/certs"}]}}'
command: java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8787 -jar /app/multibanking-server.jar
ports:
- "8088:8081"
- "8788:8787"
Loading

0 comments on commit b67ef59

Please sign in to comment.