Skip to content

Commit

Permalink
Merge pull request #53 from netboxlabs/develop
Browse files Browse the repository at this point in the history
release 🚚
  • Loading branch information
leoparente authored Jan 16, 2025
2 parents cddd6c4 + f2ae7b5 commit 668dfb3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions worker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Orb worker backend - allow running custom Backend implementations

### Usage
```bash
usage: worker [-h] [-V] [-s HOST] [-p PORT] -t DIODE_TARGET -k DIODE_API_KEY
usage: orb-worker [-h] [-V] [-s HOST] [-p PORT] -t DIODE_TARGET -k DIODE_API_KEY

Orb Worker Backend

Expand Down Expand Up @@ -38,7 +38,7 @@ worker can be run by installing it with pip
git clone https://github.com/netboxlabs/orb-discovery.git
cd orb-discovery/
pip install --no-cache-dir ./worker/
worker -t 'grpc://192.168.0.10:8080/diode' -k '${DIODE_API_KEY}'
orb-worker -t 'grpc://192.168.0.10:8080/diode' -k '${DIODE_API_KEY}'
```

## Docker Image
Expand All @@ -47,7 +47,7 @@ worker can be build and run using docker:
cd worker
docker build --no-cache -t worker:develop -f docker/Dockerfile .
docker run -e DIODE_API_KEY={YOUR_API_KEY} -p 8071:8071 worker:develop \
worker -t 'grpc://192.168.0.10:8080/diode' -k '${DIODE_API_KEY}'
orb-worker -t 'grpc://192.168.0.10:8080/diode' -k '${DIODE_API_KEY}'
```

### Routes (v1)
Expand Down
2 changes: 1 addition & 1 deletion worker/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ test = ["coverage", "pytest", "pytest-cov"]
"Homepage" = "https://netboxlabs.com/"

[project.scripts]
worker = "worker.main:main"
orb-worker = "worker.main:main"

[tool.setuptools]
packages = [
Expand Down
2 changes: 1 addition & 1 deletion worker/tests/nbl-custom/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ classifiers = [
]

dependencies = [
"netboxlabs-worker~=0.0.1",
"netboxlabs-orb-worker~=0.1",
]

[project.optional-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions worker/worker/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ def main():
"-V",
"--version",
action="version",
version=f"Worker version: {version_semver()}, "
version=f"Orb Worker version: {version_semver()}, "
f"Diode SDK version: {SdkVersion.version_semver()}",
help="Display Version",
help="Display Orb Worker and Diode SDK versions",
)
parser.add_argument(
"-s",
Expand Down

0 comments on commit 668dfb3

Please sign in to comment.