-
Notifications
You must be signed in to change notification settings - Fork 22
test(nemo-agents): add docker-mode agent deployment e2e test #715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
328556a
test(nemo-agents): add docker-mode agent deployment e2e test
benmccown e4c75bb
CR feedback
benmccown 2fdd2d3
test(e2e): run docker-agent e2e in a dedicated prebuilt-image job
benmccown ceecc8c
docs: correct test docstring (deploys nmp-api image, not calculator i…
benmccown deb9b6c
CR feedback
benmccown File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| # E2E config for docker-mode agent deployments. | ||
| # | ||
| # The platform runs as a normal local process (subprocess harness backend), but | ||
| # it is wired with a nemo-deployments Docker executor so an agent deployed with | ||
| # deployment_mode=docker runs as a real Docker container on the host daemon. | ||
| # | ||
| # platform.base_url below is a placeholder: the e2e harness rewrites it to | ||
| # http://<container_base_url_host>:<the free port it picked> right before launch | ||
| # (see harness={"container_base_url_host": ...} on the test module). That makes | ||
| # the Inference Gateway URL the platform injects into the deployed agent | ||
| # container reachable from *inside* that container (the docker bridge address), | ||
| # instead of a loopback the container cannot reach. The runner seeds NMP_BASE_URL | ||
| # from this platform.base_url host (paired with the actual bind port), so the | ||
| # configured host takes effect instead of the bind-derived loopback default. | ||
|
|
||
| platform: | ||
| runtime: "docker" | ||
| base_url: "http://0.0.0.0:8080" | ||
|
|
||
| service: {} | ||
|
|
||
| auth: | ||
| enabled: false | ||
| allow_unsigned_jwt: true | ||
| policy_decision_point_provider: embedded | ||
| policy_decision_point_base_url: "http://localhost:8080" | ||
| policy_data_refresh_interval: 2 | ||
| bundle_cache_seconds: 15 | ||
| admin_email: "admin@example.com" | ||
|
|
||
| entities: {} | ||
|
|
||
| agents: | ||
| deployments: | ||
| # Names below must match a deployments.executors[].name. | ||
| default_executor: local-docker | ||
| docker_executor: local-docker | ||
| # Container port the NAT server binds inside the agent container (and the | ||
| # readiness-probe target). | ||
| container_port: 8000 | ||
|
|
||
| deployments: | ||
| default_executor: local-docker | ||
| executors: | ||
| - name: local-docker | ||
| backend: docker | ||
| config: | ||
| # The agent runs from the prebuilt nmp-api image, already present in the | ||
| # local Docker daemon (pulled by the test's CI job), so disable the | ||
| # per-run pull and use the image as-is. | ||
| pull_images: false | ||
| port_range_start: 9000 | ||
| port_range_end: 9100 | ||
|
|
||
| models: | ||
| controller: | ||
| interval_seconds: 5 | ||
| model_deployment_garbage_collection_ttl_seconds: 30 | ||
|
|
||
| inference_gateway: {} | ||
|
|
||
| secrets: | ||
| allow_key_creation: true | ||
|
|
||
| files: | ||
| default_storage_config: | ||
| type: local | ||
| path: .tmp/e2e/files |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.