Skip to content

Commit 66f4878

Browse files
update matchbox port
1 parent 939eddc commit 66f4878

3 files changed

Lines changed: 27 additions & 9 deletions

File tree

apps/bfd-model-idr/compile_resources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import requests
88

9-
MATCHBOX_SERVER = "http://localhost:8080/matchboxv3"
9+
MATCHBOX_SERVER = "http://localhost:18080/matchboxv3"
1010

1111

1212
def run_command(cmd, cwd=None):

apps/bfd-model-idr/docker-compose.yml

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,30 @@ services:
44
container_name: matchbox
55
restart: on-failure
66
ports:
7-
- "8080:8080"
7+
- "18080:8080"
88
depends_on:
99
- matchbox-db
10-
entrypoint: ["java", "-Xms1G", "-Xmx4G", "-XX:+UseG1GC", "-XX:+UseCompressedOops", "-Xss512k", "-Dfhir.settings.path=/config/fhir-settings.json", "-Dspring.config.additional-location=optional:file:/config/application.yaml", "-jar", "/matchbox.jar"]
10+
entrypoint:
11+
[
12+
"java",
13+
"-Xms1G",
14+
"-Xmx4G",
15+
"-XX:+UseG1GC",
16+
"-XX:+UseCompressedOops",
17+
"-Xss512k",
18+
"-Dfhir.settings.path=/config/fhir-settings.json",
19+
"-Dspring.config.additional-location=optional:file:/config/application.yaml",
20+
"-jar",
21+
"/matchbox.jar",
22+
]
1123
healthcheck:
12-
test: ["CMD", "curl", "-f", "http://localhost:8080/matchboxv3/actuator/health"]
24+
test:
25+
[
26+
"CMD",
27+
"curl",
28+
"-f",
29+
"http://localhost:8080/matchboxv3/actuator/health",
30+
]
1331
interval: 5s
1432
timeout: 5s
1533
retries: 30
@@ -34,8 +52,8 @@ services:
3452
ports:
3553
- "15432:5432"
3654
environment:
37-
POSTGRES_DB: 'matchbox'
38-
POSTGRES_USER: 'matchbox'
39-
POSTGRES_PASSWORD: 'matchbox'
55+
POSTGRES_DB: "matchbox"
56+
POSTGRES_USER: "matchbox"
57+
POSTGRES_PASSWORD: "matchbox"
4058
volumes:
4159
- ./data:/var/lib/postgresql/data

apps/bfd-model-idr/setup_matchbox.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def upload_resource(base_url, resource_json, session):
7878

7979
def main():
8080
parser = argparse.ArgumentParser()
81-
parser.add_argument("--url", default="http://localhost:8080/matchboxv3/fhir")
81+
parser.add_argument("--url", default="http://localhost:18080/matchboxv3/fhir")
8282
parser.add_argument("--manifest", default="matchbox_profiles.txt")
8383
args = parser.parse_args()
8484

@@ -88,7 +88,7 @@ def main():
8888
logger.info("Waiting for local matchbox server to start...")
8989
for _ in range(30):
9090
try:
91-
if requests.get("http://matchbox:8080/matchboxv3/actuator/health", timeout=5).ok:
91+
if requests.get("http://matchbox:18080/matchboxv3/actuator/health", timeout=5).ok:
9292
break
9393
except requests.RequestException:
9494
pass

0 commit comments

Comments
 (0)