1
- # Opik Installer
1
+ # Opik Server Installer & Manager
2
2
3
- This python package provides a wrapper around an Ansible Playbook that sets up
4
- Docker + Minikube and installs the Open Source Opik Server using Helm.
3
+ The Opik server installer is a Python package that installs and manages the
4
+ Opik server on a local machine.
5
+ It aims to make this process as simple as possible, by reducing the number of
6
+ steps required to install the Opik server.
5
7
6
- ## Building the Package
8
+ ## Usage
9
+
10
+ To install the tool, run the following command:
11
+
12
+ ``` bash
13
+ pip install opik-server
14
+ ```
15
+
16
+ ### Installing Opik Server
17
+
18
+ To install the Opik server, run the following command:
19
+
20
+ ``` bash
21
+ opik-server install
22
+ ```
23
+
24
+ You can also run the installer in debug mode to see the details of the
25
+ installation process:
26
+
27
+ ``` bash
28
+ opik-server --debug install
29
+ ```
30
+
31
+ By default, the installer will install the same version of the Opik as its
32
+ own version (` opik-server -v ` ). If you want to install a specific version, you
33
+ can specify the version using the ` --opik-version ` flag:
34
+
35
+ ``` bash
36
+ opik-server install --opik-version 0.1.0
37
+ ```
38
+
39
+ By default, the installer will setup a local port forward to the Opik server
40
+ using the port ` 5173 ` . If you want to use a different port, you can specify
41
+ the port using the ` --local-port ` flag:
42
+
43
+ ``` bash
44
+ opik-server install --local-port 5174
45
+ ```
46
+
47
+ ### Upgrading Opik Server
48
+
49
+ To upgrade the Opik server, run the following command:
50
+
51
+ ``` bash
52
+ pip install --upgrade opik-server
53
+ opik-server upgrade
54
+ ```
55
+
56
+ Or upgrade to a specific version:
57
+
58
+ ``` bash
59
+ opik-server upgrade --opik-version 0.1.1
60
+ ```
61
+
62
+ ## Building the Python Package
7
63
8
64
To build the package:
9
65
@@ -27,18 +83,6 @@ This will create a `dist` directory containing the built package.
27
83
twine upload dist/*
28
84
```
29
85
30
- ### Versioning
31
-
32
- The version of the package is set dynamically by the ` setup.py ` file using the
33
- [ ` git-semver-compute ` script] ( https://github.com/comet-ml/git-semver-compute/blob/main/calculate-version.sh ) .
34
- This script dynamically calculates the version of the package based on the
35
- latest git tag (that is a valid SemVer) and the number of commits since that
36
- tag. This ensures versions are always correctly incremented.
37
-
38
- Because of this, it is important to ensure that when building a release, the
39
- latest tag is a valid SemVer tag, and that no changes are made to the repo's
40
- tacked files as a side effect of the package build.
41
-
42
86
## QA Testing
43
87
44
88
To test the installer, clone this repository onto the machine you want to
@@ -69,11 +113,7 @@ Review the warning message to see the path to the executable.
69
113
``` bash
70
114
# When the package is publically released none of these flags will be needed.
71
115
# and you will be able to simply run `opik-server install`
72
- opik-server install \
73
- --helm-repo-url https://comet-ml.github.io/opik \
74
- --container-registry ghcr.io \
75
- --container-repo-prefix comet-ml/opik \
76
- --opik-version 0.1.0
116
+ opik-server install --opik-version 0.1.0
77
117
```
78
118
79
119
This will install the Opik server on your machine.
0 commit comments