Skip to content

Commit 7435fa4

Browse files
committed
small changes
1 parent 2271020 commit 7435fa4

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

mlflow/docker-compose.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ services:
55
# The latest mlflow docker image
66
image: ghcr.io/mlflow/mlflow
77
ports:
8-
- "5001:5001"
9-
command: mlflow server --host 0.0.0.0 --port 5001
8+
- "5002:5002"
9+
command: mlflow server --host 0.0.0.0 --port 5002
1010
healthcheck:
11-
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:5001/health')"]
11+
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:5002/health')"]
1212
interval: 30s
1313
timeout: 10s
1414
retries: 3
@@ -18,9 +18,13 @@ services:
1818
context: .
1919
dockerfile: Dockerfile
2020
volumes:
21-
- .:/mlflow # Mount code for live development
22-
- /mlflow/node_modules # Keep node_modules in container
21+
# - .:/mlflow # Mount code for live development
22+
- ./:/mlflow # Mount code for live development
23+
# - /mlflow/node_modules # Keep node_modules in container
24+
- node_modules:/mlflow/node_modules # Keep node_modules in container
2325
command: /bin/sh -c "while sleep 1000; do :; done" # Keep container running
2426
depends_on:
2527
mlflow:
26-
condition: service_healthy
28+
condition: service_healthy
29+
volumes:
30+
node_modules:

mlflow/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"scripts": {
2828
"clean": "rimraf lib",
2929
"build": "npm run clean && tsc -p tsconfig.json && tsc-alias -p tsconfig.json",
30-
"test": "jest",
30+
"test": "jest --runInBand",
3131
"lint": "eslint src",
3232
"docker": "docker-compose pull && docker-compose -f docker-compose.yml up"
3333
},

0 commit comments

Comments
 (0)