@@ -9,70 +9,54 @@ We are always open to accepting any potential contributions. Here is how you can
9
9
git clone https://github.com/your-username/repository-name.git
10
10
```
11
11
12
- 3 . Install dependencies for both mlflow and mlflow-site directories
13
-
14
- ``` bash
15
- cd mlflow && npm install
16
- cd ../mlflow-site && npm install
17
- ```
18
-
19
- 4 . Create your feature branch
12
+ 3 . Create your feature branch
20
13
21
14
``` bash
22
15
git checkout -b feature/AmazingFeature
23
16
```
24
17
25
- 5 . Run MLflow Tracking Server container with Docker
18
+ 4 . Install dependencies for both mlflow and mlflow-site directories
26
19
27
20
``` bash
28
- cd mlflow
29
- npm run docker
21
+ cd / mlflow-site && npm install
22
+ cd ../mlflow && npm run docker
30
23
```
31
24
32
- This will launch the MLflow UI on your local machine at ` http://localhost:5001 ` .
33
- The port
34
- ``` npm run docker ```
35
- launches on can be changed in the docker-compose.yml file.
25
+ This will also launch the MLflow UI on your local machine at ` http://localhost:5001 ` .
36
26
37
- 6 . Make your changes
27
+ 5 . Make your changes
38
28
39
- 7 . Run ESLint to check code style
29
+ 6 . Run ESLint to check code style
40
30
41
31
``` bash
42
32
npm run lint
43
33
```
44
34
45
- 8 . Run tests to ensure your changes don't break existing functionality
35
+ 7 . Run tests to ensure your changes don't break existing functionality
46
36
47
37
(Make sure you have mlflow UI server running on port 5002. We set 5002 as our default port for testing.)
48
38
49
39
``` bash
50
- mlflow ui --port 5002 # Run this in a separate terminal
51
- npm run test
52
- ```
53
-
54
- Alternative Docker Approach:
55
-
56
- ``` bash
57
- docker pull ghcr.io/mlflow/mlflow
58
- docker run -p 5002:5002 ghcr.io/mlflow/mlflow:latest mlflow server --host 0.0.0.0 --port 5002
40
+ cd mlflow && npm run dockerTest
59
41
npm run test
60
42
```
61
43
62
44
This will launch the MLflow UI on your local machine at ` http://localhost:5002 ` , and run the Jest tests.
63
45
64
- 9 . Commit your changes
46
+ 8 . Commit your changes
47
+
48
+ If the tests all pass:
65
49
66
50
``` bash
67
51
git commit -m ' Add AmazingFeature'
68
52
```
69
53
70
- 10 . Push to the branch
54
+ 9 . Push to the branch
71
55
72
56
``` bash
73
57
git push origin feature/AmazingFeature
74
58
```
75
59
76
- 11 . Open a Pull Request
60
+ 10 . Open a Pull Request
77
61
78
62
** Note:** Please ensure your code adheres to our style guidelines and includes appropriate documentation for any new features.
0 commit comments