Skip to content

Commit 53b7973

Browse files
author
Matt Raible
committed
Updates after switch to minikube
1 parent d579887 commit 53b7973

File tree

13 files changed

+351
-34721
lines changed

13 files changed

+351
-34721
lines changed

jhipster-k8s/blog/.yo-rc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"lastLiquibaseTimestamp": 1616651842000,
4646
"appFolder": "blog",
4747
"clusteredDb": false,
48-
"targetImageName": "gcr.io/jhipster7/blog",
48+
"targetImageName": "mraible/blog",
4949
"dbPeerCount": 1
5050
}
5151
}

jhipster-k8s/docker-compose/docker-compose.yml

Lines changed: 38 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,49 @@ services:
6262

6363
jhipster-registry:
6464
image: jhipster/jhipster-registry:v6.7.1
65+
volumes:
66+
- ./central-server-config:/central-config
67+
# By default the JHipster Registry runs with the "dev" and "native"
68+
# Spring profiles.
69+
# "native" profile means the filesystem is used to store data, see
70+
# http://cloud.spring.io/spring-cloud-config/spring-cloud-config.html
6571
environment:
6672
- _JAVA_OPTIONS=-Xmx512m -Xms256m
6773
- JHIPSTER_SLEEP=20
6874
- SPRING_PROFILES_ACTIVE=dev,oauth2
6975
- SPRING_SECURITY_USER_PASSWORD=admin
7076
- JHIPSTER_REGISTRY_PASSWORD=admin
71-
- ENCRYPT_KEY=${ENCRYPT_KEY}
72-
- SPRING_CLOUD_CONFIG_SERVER_COMPOSITE_0_TYPE=git
73-
- SPRING_CLOUD_CONFIG_SERVER_COMPOSITE_0_URI=https://github.com/mraible/reactive-java-ms-config/
74-
- SPRING_CLOUD_CONFIG_SERVER_COMPOSITE_0_SEARCH_PATHS=config
75-
- SPRING_CLOUD_CONFIG_SERVER_COMPOSITE_0_LABEL=main
77+
- SPRING_CLOUD_CONFIG_SERVER_COMPOSITE_0_TYPE=native
78+
- SPRING_CLOUD_CONFIG_SERVER_COMPOSITE_0_SEARCH_LOCATIONS=file:./central-config
79+
# - SPRING_CLOUD_CONFIG_SERVER_COMPOSITE_0_TYPE=git
80+
# - SPRING_CLOUD_CONFIG_SERVER_COMPOSITE_0_URI=https://github.com/jhipster/jhipster-registry/
81+
# - SPRING_CLOUD_CONFIG_SERVER_COMPOSITE_0_SEARCH_PATHS=central-config
82+
# For Keycloak to work, you need to add '127.0.0.1 keycloak' to your hosts file
83+
- SPRING_SECURITY_OAUTH2_CLIENT_PROVIDER_OIDC_ISSUER_URI=http://keycloak:9080/auth/realms/jhipster
84+
- SPRING_SECURITY_OAUTH2_CLIENT_REGISTRATION_OIDC_CLIENT_ID=jhipster-registry
85+
- SPRING_SECURITY_OAUTH2_CLIENT_REGISTRATION_OIDC_CLIENT_SECRET=jhipster-registry
7686
ports:
7787
- 8761:8761
88+
keycloak:
89+
image: jboss/keycloak:12.0.4
90+
command:
91+
[
92+
"-b",
93+
"0.0.0.0",
94+
"-Dkeycloak.migration.action=import",
95+
"-Dkeycloak.migration.provider=dir",
96+
"-Dkeycloak.migration.dir=/opt/jboss/keycloak/realm-config",
97+
"-Dkeycloak.migration.strategy=OVERWRITE_EXISTING",
98+
"-Djboss.socket.binding.port-offset=1000",
99+
"-Dkeycloak.profile.feature.upload_scripts=enabled",
100+
]
101+
volumes:
102+
- ./realm-config:/opt/jboss/keycloak/realm-config
103+
environment:
104+
- KEYCLOAK_USER=admin
105+
- KEYCLOAK_PASSWORD=admin
106+
- DB_VENDOR=h2
107+
ports:
108+
- 9080:9080
109+
- 9443:9443
110+
- 10990:10990

jhipster-k8s/gateway/.yo-rc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"lastLiquibaseTimestamp": 1619550889000,
4545
"appFolder": "gateway",
4646
"clusteredDb": false,
47-
"targetImageName": "gcr.io/jhipster7/gateway",
47+
"targetImageName": "mraible/gateway",
4848
"dbPeerCount": 1
4949
}
5050
}

0 commit comments

Comments
 (0)