Skip to content

Commit

Permalink
Update custom network definition for local DSS (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
palyca authored Jun 29, 2023
1 parent 972e319 commit 1dd9ed1
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
15 changes: 15 additions & 0 deletions build/dev/docker-compose_dss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ services:
ports:
- "8080:8080"
restart: always
networks:
- dss_sandbox_default_network

local-dss-rid-bootstrapper:
image: interuss/dss:v0.8.0-rc2
Expand All @@ -24,6 +26,8 @@ services:
entrypoint: /startup/rid_bootstrapper.sh
depends_on:
- local-dss-crdb
networks:
- dss_sandbox_default_network

local-dss-scd-bootstrapper:
image: interuss/dss:v0.8.0-rc2
Expand All @@ -33,6 +37,8 @@ services:
entrypoint: /startup/scd_bootstrapper.sh
depends_on:
- local-dss-crdb
networks:
- dss_sandbox_default_network

local-dss-core-service:
image: interuss/dss:v0.8.0-rc2
Expand All @@ -47,12 +53,21 @@ services:
depends_on:
- local-dss-rid-bootstrapper
- local-dss-scd-bootstrapper
networks:
- dss_sandbox_default_network

local-dss-dummy-oauth:
image: interuss/dummy-oauth
command: -private_key_file /var/test-certs/auth2.key
ports:
- "8085:8085"
networks:
- dss_sandbox_default_network


networks:
dss_sandbox_default_network:
name: dss_sandbox-default

volumes:
local-dss-data:
6 changes: 3 additions & 3 deletions monitoring/loadtest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ Simply build the Docker container with the Dockerfile from the root directory. A

1. If testing local DSS instance, be sure that the loadtest (monitoring) container has access to the DSS container

a. For ISA run: `docker run -e AUTH_SPEC="DummyOAuth(http://host.docker.internal:8085/token,uss1)" --network="dss_sandbox_default" -p 8089:8089 interuss/monitoring locust -f loadtest/locust_files/ISA.py`
a. For ISA run: `docker run -e AUTH_SPEC="DummyOAuth(http://host.docker.internal:8085/token,uss1)" --network="dss_sandbox-default" -p 8089:8089 interuss/monitoring locust -f loadtest/locust_files/ISA.py`

b. For ISA run: `docker run -e AUTH_SPEC="DummyOAuth(http://host.docker.internal:8085/token,uss1)" --network="dss_sandbox_default" -p 8089:8089 interuss/monitoring locust -f loadtest/locust_files/Sub.py`
b. For ISA run: `docker run -e AUTH_SPEC="DummyOAuth(http://host.docker.internal:8085/token,uss1)" --network="dss_sandbox-default" -p 8089:8089 interuss/monitoring locust -f loadtest/locust_files/Sub.py`

## Use
1. Navigate to http://localhost:8089
1. Start new test with number of Users to spawn and the rate to spawn them.
1. For the Host, provide the DSS Core Service endpoint used for testing. An example of such url is: http://dss_sandbox_local-dss-core-service_1:8082/v1/dss/ in case local environment is setup by [run_locally.sh](../../build/dev/run_locally.sh)
1. For the Host, provide the DSS Core Service endpoint used for testing. An example of such url is: http://dss_sandbox-local-dss-core-service-1:8082/v1/dss/ in case local environment is setup by [run_locally.sh](../../build/dev/run_locally.sh)
2 changes: 1 addition & 1 deletion monitoring/prober/run_locally.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ mkdir -p "$OUTPUT_DIR"
if ! docker run --link "$OAUTH_CONTAINER":oauth \
--link "$CORE_SERVICE_CONTAINER":core-service \
-u "$(id -u):$(id -g)" \
--network dss_sandbox_default \
--network dss_sandbox-default \
-v "$(pwd)/$OUTPUT_DIR:/app/$OUTPUT_DIR" \
-w /app/monitoring/prober \
interuss/monitoring \
Expand Down

0 comments on commit 1dd9ed1

Please sign in to comment.