decodingtrust-agent-sdk 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- agent/__init__.py +30 -0
- agent/claudesdk/__init__.py +8 -0
- agent/claudesdk/example.py +221 -0
- agent/claudesdk/src/__init__.py +8 -0
- agent/claudesdk/src/agent.py +400 -0
- agent/claudesdk/src/mcp_proxy.py +409 -0
- agent/claudesdk/src/utils.py +420 -0
- agent/googleadk/__init__.py +15 -0
- agent/googleadk/example.py +237 -0
- agent/googleadk/src/__init__.py +12 -0
- agent/googleadk/src/agent.py +401 -0
- agent/googleadk/src/mcp_wrapper.py +163 -0
- agent/googleadk/src/utils.py +602 -0
- agent/langchain/__init__.py +8 -0
- agent/langchain/example.py +213 -0
- agent/langchain/src/__init__.py +8 -0
- agent/langchain/src/agent.py +645 -0
- agent/langchain/src/utils.py +433 -0
- agent/openaisdk/__init__.py +17 -0
- agent/openaisdk/example.py +228 -0
- agent/openaisdk/src/__init__.py +12 -0
- agent/openaisdk/src/agent.py +491 -0
- agent/openaisdk/src/agent_wrapper.py +143 -0
- agent/openaisdk/src/mcp_wrapper.py +395 -0
- agent/openaisdk/src/utils.py +493 -0
- agent/openclaw/__init__.py +10 -0
- agent/openclaw/example.py +251 -0
- agent/openclaw/src/__init__.py +14 -0
- agent/openclaw/src/agent.py +930 -0
- agent/openclaw/src/helpers/__init__.py +1 -0
- agent/openclaw/src/helpers/auth_helpers.py +55 -0
- agent/openclaw/src/mcp_proxy.py +564 -0
- agent/openclaw/src/plugin_generator.py +231 -0
- agent/openclaw/src/utils.py +341 -0
- agent/pocketflow/__init__.py +18 -0
- agent/pocketflow/example.py +221 -0
- agent/pocketflow/prompts/react_agent.py +46 -0
- agent/pocketflow/src/__init__.py +6 -0
- agent/pocketflow/src/agent.py +507 -0
- agent/pocketflow/src/agent_wrapper.py +159 -0
- agent/pocketflow/src/async_helper.py +92 -0
- agent/pocketflow/src/mcp_react_agent.py +279 -0
- agent/pocketflow/src/native_agent.py +74 -0
- agent/pocketflow/src/nodes.py +467 -0
- benchmark/__init__.py +0 -0
- benchmark/browser/benign.jsonl +34 -0
- benchmark/browser/direct.jsonl +85 -0
- benchmark/browser/indirect.jsonl +82 -0
- benchmark/code/benign.jsonl +0 -0
- benchmark/code/direct.jsonl +121 -0
- benchmark/code/indirect.jsonl +165 -0
- benchmark/crm/benign.jsonl +165 -0
- benchmark/crm/direct.jsonl +90 -0
- benchmark/crm/indirect.jsonl +150 -0
- benchmark/customer-service/benign.jsonl +160 -0
- benchmark/customer-service/direct.jsonl +100 -0
- benchmark/customer-service/indirect.jsonl +101 -0
- benchmark/finance/benign.jsonl +0 -0
- benchmark/finance/direct.jsonl +200 -0
- benchmark/finance/indirect.jsonl +200 -0
- benchmark/legal/benign.jsonl +0 -0
- benchmark/legal/direct.jsonl +200 -0
- benchmark/legal/indirect.jsonl +200 -0
- benchmark/macos/benign.jsonl +30 -0
- benchmark/macos/direct.jsonl +50 -0
- benchmark/macos/indirect.jsonl +50 -0
- benchmark/medical/benign.jsonl +642 -0
- benchmark/medical/direct.jsonl +229 -0
- benchmark/medical/indirect.jsonl +222 -0
- benchmark/os-filesystem/benign.jsonl +200 -0
- benchmark/os-filesystem/direct.jsonl +200 -0
- benchmark/os-filesystem/indirect.jsonl +200 -0
- benchmark/research/benign.jsonl +0 -0
- benchmark/research/direct.jsonl +119 -0
- benchmark/research/indirect.jsonl +125 -0
- benchmark/telecom/benign.jsonl +120 -0
- benchmark/telecom/direct.jsonl +161 -0
- benchmark/telecom/indirect.jsonl +166 -0
- benchmark/travel/benign.jsonl +130 -0
- benchmark/travel/direct.jsonl +105 -0
- benchmark/travel/indirect.jsonl +120 -0
- benchmark/windows/benign.jsonl +100 -0
- benchmark/windows/direct.jsonl +140 -0
- benchmark/windows/indirect.jsonl +107 -0
- benchmark/workflow/benign.jsonl +335 -0
- benchmark/workflow/direct.jsonl +78 -0
- benchmark/workflow/indirect.jsonl +107 -0
- cli/__init__.py +5 -0
- cli/main.py +182 -0
- cli/scaffold.py +334 -0
- decodingtrust_agent_sdk-0.1.0.dist-info/METADATA +642 -0
- decodingtrust_agent_sdk-0.1.0.dist-info/RECORD +374 -0
- decodingtrust_agent_sdk-0.1.0.dist-info/WHEEL +5 -0
- decodingtrust_agent_sdk-0.1.0.dist-info/entry_points.txt +2 -0
- decodingtrust_agent_sdk-0.1.0.dist-info/licenses/LICENSE +201 -0
- decodingtrust_agent_sdk-0.1.0.dist-info/top_level.txt +6 -0
- dt_arena/config/env.yaml +515 -0
- dt_arena/config/injection_mcp.yaml +430 -0
- dt_arena/config/mcp.yaml +642 -0
- dt_arena/envs/arxiv/docker-compose-hub.yml +31 -0
- dt_arena/envs/arxiv/docker-compose.yml +36 -0
- dt_arena/envs/atlassian/docker/docker-compose.dev.yml +65 -0
- dt_arena/envs/atlassian/docker/docker-compose.yml +53 -0
- dt_arena/envs/atlassian/docker-compose-hub.yml +57 -0
- dt_arena/envs/atlassian/docker-compose.yml +72 -0
- dt_arena/envs/bigquery/docker-compose.yml +20 -0
- dt_arena/envs/booking/docker-compose.yml +59 -0
- dt_arena/envs/calendar/docker-compose-hub.yml +30 -0
- dt_arena/envs/calendar/docker-compose.yml +42 -0
- dt_arena/envs/custom-website/docker-compose.yml +6 -0
- dt_arena/envs/customer_service/docker-compose.yml +59 -0
- dt_arena/envs/databricks/docker-compose-hub.yml +47 -0
- dt_arena/envs/databricks/docker-compose.yml +51 -0
- dt_arena/envs/ecommerce/docker-compose.yml +6 -0
- dt_arena/envs/ers/docker-compose.yml +36 -0
- dt_arena/envs/ers/hrms/docker/docker-compose.yml +31 -0
- dt_arena/envs/finance/docker-compose.yml +23 -0
- dt_arena/envs/github/docker/docker-compose-hub.yml +50 -0
- dt_arena/envs/github/docker/docker-compose.yml +50 -0
- dt_arena/envs/gmail/docker-compose-hub.yml +51 -0
- dt_arena/envs/gmail/docker-compose.yml +65 -0
- dt_arena/envs/google-form/docker-compose-hub.yml +33 -0
- dt_arena/envs/google-form/docker-compose.yml +41 -0
- dt_arena/envs/googledocs/docker-compose-hub.yml +61 -0
- dt_arena/envs/googledocs/docker-compose.yml +78 -0
- dt_arena/envs/hospital/docker-compose-hub.yml +25 -0
- dt_arena/envs/hospital/docker-compose.yml +27 -0
- dt_arena/envs/legal/docker-compose.yml +22 -0
- dt_arena/envs/linkedin/docker-compose.yml +63 -0
- dt_arena/envs/macos/docker-compose.yml +79 -0
- dt_arena/envs/os-filesystem/docker-compose-hub.yml +16 -0
- dt_arena/envs/os-filesystem/docker-compose.yml +20 -0
- dt_arena/envs/paypal/docker-compose-hub.yml +48 -0
- dt_arena/envs/paypal/docker-compose.yml +63 -0
- dt_arena/envs/research/docker-compose-hub.yml +13 -0
- dt_arena/envs/research/docker-compose.yml +24 -0
- dt_arena/envs/salesforce_crm/docker-compose-hub.yaml +45 -0
- dt_arena/envs/salesforce_crm/docker-compose.yaml +49 -0
- dt_arena/envs/slack/docker-compose-hub.yml +28 -0
- dt_arena/envs/slack/docker-compose.yml +41 -0
- dt_arena/envs/snowflake/docker-compose-hub.yml +41 -0
- dt_arena/envs/snowflake/docker-compose.yml +44 -0
- dt_arena/envs/telecom/docker-compose-hub.yml +16 -0
- dt_arena/envs/telecom/docker-compose.yml +17 -0
- dt_arena/envs/telegram/docker-compose-hub.yml +57 -0
- dt_arena/envs/telegram/docker-compose.yml +62 -0
- dt_arena/envs/terminal/docker-compose-hub.yml +12 -0
- dt_arena/envs/terminal/docker-compose.yml +26 -0
- dt_arena/envs/travel/docker-compose-hub.yml +19 -0
- dt_arena/envs/travel/docker-compose.yml +19 -0
- dt_arena/envs/whatsapp/docker-compose-hub.yml +61 -0
- dt_arena/envs/whatsapp/docker-compose.yml +78 -0
- dt_arena/envs/windows/docker-compose.yml +71 -0
- dt_arena/envs/zoom/docker-compose-hub.yml +27 -0
- dt_arena/envs/zoom/docker-compose.yml +40 -0
- dt_arena/injection_mcp_server/atlassian/env_injection.py +134 -0
- dt_arena/injection_mcp_server/calendar/env_injection.py +217 -0
- dt_arena/injection_mcp_server/custom_website/env_injection.py +97 -0
- dt_arena/injection_mcp_server/customer_service/env_injection.py +659 -0
- dt_arena/injection_mcp_server/databricks/env_injection.py +255 -0
- dt_arena/injection_mcp_server/ecommerce/env_injection.py +110 -0
- dt_arena/injection_mcp_server/finance/env_injection.py +85 -0
- dt_arena/injection_mcp_server/github/env_injection.py +206 -0
- dt_arena/injection_mcp_server/gmail/env_injection.py +211 -0
- dt_arena/injection_mcp_server/google_form/env_injection.py +186 -0
- dt_arena/injection_mcp_server/googledocs/env_injection.py +44 -0
- dt_arena/injection_mcp_server/hospital/env_injection.py +43 -0
- dt_arena/injection_mcp_server/legal/env_injection.py +229 -0
- dt_arena/injection_mcp_server/macos/env_injection.py +272 -0
- dt_arena/injection_mcp_server/os-filesystem/env_injection.py +341 -0
- dt_arena/injection_mcp_server/paypal/env_injection.py +268 -0
- dt_arena/injection_mcp_server/research/env_injection.py +616 -0
- dt_arena/injection_mcp_server/salesforce/env_injection.py +514 -0
- dt_arena/injection_mcp_server/slack/env_injection.py +265 -0
- dt_arena/injection_mcp_server/snowflake/env_injection.py +230 -0
- dt_arena/injection_mcp_server/telecom/env_injection.py +503 -0
- dt_arena/injection_mcp_server/telegram/env_injection.py +171 -0
- dt_arena/injection_mcp_server/terminal/env_injection.py +523 -0
- dt_arena/injection_mcp_server/travel/env_injection.py +173 -0
- dt_arena/injection_mcp_server/whatsapp/env_injection.py +185 -0
- dt_arena/injection_mcp_server/windows/env_injection.py +943 -0
- dt_arena/injection_mcp_server/zoom/env_injection.py +216 -0
- dt_arena/mcp_server/atlassian/main.py +1554 -0
- dt_arena/mcp_server/atlassian/test_server.py +66 -0
- dt_arena/mcp_server/bigquery/main.py +333 -0
- dt_arena/mcp_server/booking/main.py +310 -0
- dt_arena/mcp_server/browser/main.py +1741 -0
- dt_arena/mcp_server/calendar/example_multi_user.py +162 -0
- dt_arena/mcp_server/calendar/main.py +792 -0
- dt_arena/mcp_server/calendar/test_mcp.py +135 -0
- dt_arena/mcp_server/customer_service/main.py +1063 -0
- dt_arena/mcp_server/databricks/main.py +566 -0
- dt_arena/mcp_server/databricks/probe.py +102 -0
- dt_arena/mcp_server/ers/main.py +845 -0
- dt_arena/mcp_server/finance/__init__.py +87 -0
- dt_arena/mcp_server/finance/core/__init__.py +12 -0
- dt_arena/mcp_server/finance/core/data_loader.py +558 -0
- dt_arena/mcp_server/finance/core/portfolio.py +565 -0
- dt_arena/mcp_server/finance/evaluation/__init__.py +20 -0
- dt_arena/mcp_server/finance/evaluation/evaluator.py +217 -0
- dt_arena/mcp_server/finance/evaluation/logger.py +137 -0
- dt_arena/mcp_server/finance/injection/__init__.py +66 -0
- dt_arena/mcp_server/finance/injection/config.py +176 -0
- dt_arena/mcp_server/finance/injection/content.py +755 -0
- dt_arena/mcp_server/finance/injection/html.py +409 -0
- dt_arena/mcp_server/finance/injection/locations.py +167 -0
- dt_arena/mcp_server/finance/injection/methods.py +193 -0
- dt_arena/mcp_server/finance/injection/presets.py +1023 -0
- dt_arena/mcp_server/finance/main.py +361 -0
- dt_arena/mcp_server/finance/run_mcp.py +21 -0
- dt_arena/mcp_server/finance/run_web.py +26 -0
- dt_arena/mcp_server/finance/server/__init__.py +41 -0
- dt_arena/mcp_server/finance/server/extractor.py +1453 -0
- dt_arena/mcp_server/finance/server/extractor_minimal.py +292 -0
- dt_arena/mcp_server/finance/server/extractor_simple.py +1164 -0
- dt_arena/mcp_server/finance/server/injection_mcp.py +865 -0
- dt_arena/mcp_server/finance/server/mcp.py +451 -0
- dt_arena/mcp_server/finance/server/tools/__init__.py +23 -0
- dt_arena/mcp_server/finance/server/tools/account.py +88 -0
- dt_arena/mcp_server/finance/server/tools/browsing.py +328 -0
- dt_arena/mcp_server/finance/server/tools/social.py +73 -0
- dt_arena/mcp_server/finance/server/tools/trading.py +242 -0
- dt_arena/mcp_server/finance/server/tools/utility.py +49 -0
- dt_arena/mcp_server/finance/server/web.py +2139 -0
- dt_arena/mcp_server/finance/tasks/benchmark/__init__.py +28 -0
- dt_arena/mcp_server/finance/tasks/benchmark/attack_pool.py +3026 -0
- dt_arena/mcp_server/finance/tasks/benchmark/attack_runner.py +1315 -0
- dt_arena/mcp_server/finance/tasks/benchmark/finra_requirements.py +1335 -0
- dt_arena/mcp_server/finance/tasks/benchmark/finra_tasks.py +3665 -0
- dt_arena/mcp_server/finance/tasks/benchmark/malicious_tasks.py +2673 -0
- dt_arena/mcp_server/finance/tasks/redteam_suite/run_redteam_suite.py +1713 -0
- dt_arena/mcp_server/finance/test_mcp_tools.py +476 -0
- dt_arena/mcp_server/github/main.py +441 -0
- dt_arena/mcp_server/gmail/main.py +1004 -0
- dt_arena/mcp_server/google_form/main.py +141 -0
- dt_arena/mcp_server/googledocs/main.py +458 -0
- dt_arena/mcp_server/hospital/mcp_server.py +458 -0
- dt_arena/mcp_server/legal/__init__.py +9 -0
- dt_arena/mcp_server/legal/core/__init__.py +14 -0
- dt_arena/mcp_server/legal/core/courtlistener_store.py +762 -0
- dt_arena/mcp_server/legal/core/data_loader.py +266 -0
- dt_arena/mcp_server/legal/core/document_store.py +197 -0
- dt_arena/mcp_server/legal/core/matter_manager.py +466 -0
- dt_arena/mcp_server/legal/main.py +89 -0
- dt_arena/mcp_server/legal/scripts/collect_data.py +988 -0
- dt_arena/mcp_server/legal/server/__init__.py +14 -0
- dt_arena/mcp_server/legal/server/mcp.py +2330 -0
- dt_arena/mcp_server/macos/client_test.py +270 -0
- dt_arena/mcp_server/macos/mcp_server.py +285 -0
- dt_arena/mcp_server/os-filesystem/main.py +1380 -0
- dt_arena/mcp_server/paypal/main.py +501 -0
- dt_arena/mcp_server/research/main.py +777 -0
- dt_arena/mcp_server/salesforce/main.py +2006 -0
- dt_arena/mcp_server/slack/main.py +318 -0
- dt_arena/mcp_server/snowflake/main.py +612 -0
- dt_arena/mcp_server/snowflake/probe.py +183 -0
- dt_arena/mcp_server/telecom/mcp_client.py +423 -0
- dt_arena/mcp_server/telecom/mcp_server.py +1059 -0
- dt_arena/mcp_server/telegram/main.py +338 -0
- dt_arena/mcp_server/terminal/main.py +163 -0
- dt_arena/mcp_server/travel/client_test.py +16 -0
- dt_arena/mcp_server/travel/mcp_server.py +404 -0
- dt_arena/mcp_server/whatsapp/main.py +318 -0
- dt_arena/mcp_server/windows/client_test.py +270 -0
- dt_arena/mcp_server/windows/mcp_server.py +218 -0
- dt_arena/mcp_server/zoom/main.py +466 -0
- dt_arena/src/__init__.py +0 -0
- dt_arena/src/hooks/__init__.py +0 -0
- dt_arena/src/hooks/audit_log.py +30 -0
- dt_arena/src/hooks/hooks.json +3 -0
- dt_arena/src/run_benign.py +142 -0
- dt_arena/src/types/__init__.py +0 -0
- dt_arena/src/types/agent.py +441 -0
- dt_arena/src/types/attacks.py +2 -0
- dt_arena/src/types/environment.py +2 -0
- dt_arena/src/types/hooks.py +174 -0
- dt_arena/src/types/judge.py +52 -0
- dt_arena/src/types/red_teaming_trajectory.py +385 -0
- dt_arena/src/types/task.py +260 -0
- dt_arena/src/types/trajectory.py +315 -0
- dt_arena/utils/__init__.py +1 -0
- dt_arena/utils/atlassian/__init__.py +27 -0
- dt_arena/utils/atlassian/helpers.py +520 -0
- dt_arena/utils/bigquery/__init__.py +1 -0
- dt_arena/utils/bigquery/helpers.py +246 -0
- dt_arena/utils/calendar/__init__.py +1 -0
- dt_arena/utils/calendar/helpers.py +87 -0
- dt_arena/utils/customer_service/__init__.py +17 -0
- dt_arena/utils/customer_service/cs_env_client.py +940 -0
- dt_arena/utils/customer_service/helpers.py +339 -0
- dt_arena/utils/customer_service/judges/__init__.py +20 -0
- dt_arena/utils/customer_service/judges/abusive_comms.py +149 -0
- dt_arena/utils/customer_service/judges/bulk_destructive.py +202 -0
- dt_arena/utils/customer_service/judges/cross_customer.py +481 -0
- dt_arena/utils/customer_service/judges/email_exfiltration.py +320 -0
- dt_arena/utils/customer_service/judges/financial_fraud.py +221 -0
- dt_arena/utils/customer_service/judges/llm_utils.py +264 -0
- dt_arena/utils/customer_service/judges/pii_disclosure.py +837 -0
- dt_arena/utils/customer_service/judges/policy_misrep.py +44 -0
- dt_arena/utils/customer_service/judges/text_utils.py +21 -0
- dt_arena/utils/databricks/__init__.py +2 -0
- dt_arena/utils/databricks/helpers.py +210 -0
- dt_arena/utils/finance/__init__.py +0 -0
- dt_arena/utils/finance/helpers.py +263 -0
- dt_arena/utils/github/__init__.py +1 -0
- dt_arena/utils/github/helpers.py +249 -0
- dt_arena/utils/gmail/__init__.py +1 -0
- dt_arena/utils/gmail/helpers.py +344 -0
- dt_arena/utils/google_form/__init__.py +2 -0
- dt_arena/utils/google_form/helpers.py +133 -0
- dt_arena/utils/legal/__init__.py +0 -0
- dt_arena/utils/legal/helpers.py +228 -0
- dt_arena/utils/macos/__init__.py +0 -0
- dt_arena/utils/macos/env_setup.py +215 -0
- dt_arena/utils/macos/helpers.py +61 -0
- dt_arena/utils/os_filesystem/__init__.py +1 -0
- dt_arena/utils/os_filesystem/helpers.py +366 -0
- dt_arena/utils/paypal/__init__.py +1 -0
- dt_arena/utils/paypal/helpers.py +178 -0
- dt_arena/utils/port_allocator.py +266 -0
- dt_arena/utils/research/__init__.py +0 -0
- dt_arena/utils/research/helpers.py +251 -0
- dt_arena/utils/salesforce/__init__.py +1 -0
- dt_arena/utils/salesforce/helpers.py +719 -0
- dt_arena/utils/slack/__init__.py +1 -0
- dt_arena/utils/slack/helpers.py +176 -0
- dt_arena/utils/snowflake/__init__.py +1 -0
- dt_arena/utils/snowflake/helpers.py +166 -0
- dt_arena/utils/telecom/__init__.py +1 -0
- dt_arena/utils/telecom/helpers.py +760 -0
- dt_arena/utils/telegram/__init__.py +0 -0
- dt_arena/utils/telegram/helpers.py +174 -0
- dt_arena/utils/terminal/__init__.py +0 -0
- dt_arena/utils/terminal/helpers.py +20 -0
- dt_arena/utils/travel/__init__.py +0 -0
- dt_arena/utils/travel/env_client.py +537 -0
- dt_arena/utils/travel/llm_judge.py +137 -0
- dt_arena/utils/travel/prompts.py +64 -0
- dt_arena/utils/utils/__init__.py +122 -0
- dt_arena/utils/whatsapp/__init__.py +0 -0
- dt_arena/utils/whatsapp/helpers.py +226 -0
- dt_arena/utils/windows/__init__.py +0 -0
- dt_arena/utils/windows/env_reset.py +224 -0
- dt_arena/utils/windows/env_setup.py +280 -0
- dt_arena/utils/windows/exfil_helpers.py +170 -0
- dt_arena/utils/windows/helpers.py +74 -0
- dt_arena/utils/zoom/__init__.py +1 -0
- dt_arena/utils/zoom/helpers.py +70 -0
- eval/__init__.py +1 -0
- eval/evaluation.py +426 -0
- eval/task_runner.py +449 -0
- utils/__init__.py +148 -0
- utils/agent_helpers.py +308 -0
- utils/agent_wrapper.py +189 -0
- utils/compose_utils.py +135 -0
- utils/config.py +77 -0
- utils/env_helpers.py +104 -0
- utils/eval_stats.py +88 -0
- utils/injection_helpers.py +429 -0
- utils/injection_mcp_helpers.py +152 -0
- utils/judge_helpers.py +181 -0
- utils/judge_utils.py +472 -0
- utils/llm.py +196 -0
- utils/logging.py +45 -0
- utils/mcp_helpers.py +232 -0
- utils/mcp_manager.py +235 -0
- utils/memory_guard.py +18 -0
- utils/red_teaming_sandbox.py +476 -0
- utils/reset_helpers.py +318 -0
- utils/resource_manager.py +370 -0
- utils/skill_helpers.py +447 -0
- utils/task_executor.py +904 -0
- utils/task_helpers.py +270 -0
- utils/template_helpers.py +179 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
version: "3.8"
|
|
2
|
+
|
|
3
|
+
services:
|
|
4
|
+
paypal-pg:
|
|
5
|
+
image: postgres:16
|
|
6
|
+
network_mode: host
|
|
7
|
+
security_opt:
|
|
8
|
+
- seccomp=unconfined
|
|
9
|
+
environment:
|
|
10
|
+
POSTGRES_DB: paypal_sandbox
|
|
11
|
+
POSTGRES_USER: sandbox
|
|
12
|
+
POSTGRES_PASSWORD: sandbox
|
|
13
|
+
command: ["-p", "${PAYPAL_PG_PORT:-5544}"]
|
|
14
|
+
healthcheck:
|
|
15
|
+
test: ["CMD-SHELL", "pg_isready -h 127.0.0.1 -p ${PAYPAL_PG_PORT:-5544} -U sandbox -d paypal_sandbox"]
|
|
16
|
+
interval: 5s
|
|
17
|
+
timeout: 3s
|
|
18
|
+
retries: 30
|
|
19
|
+
|
|
20
|
+
paypal-api:
|
|
21
|
+
image: decodingtrustagent/paypal:api-latest
|
|
22
|
+
network_mode: host
|
|
23
|
+
depends_on:
|
|
24
|
+
paypal-pg:
|
|
25
|
+
condition: service_healthy
|
|
26
|
+
environment:
|
|
27
|
+
PAYPAL_PG_HOST: 127.0.0.1
|
|
28
|
+
PAYPAL_PG_PORT: ${PAYPAL_PG_PORT:-5544}
|
|
29
|
+
PAYPAL_PG_DB: paypal_sandbox
|
|
30
|
+
PAYPAL_PG_USER: sandbox
|
|
31
|
+
PAYPAL_PG_PASSWORD: sandbox
|
|
32
|
+
PAYPAL_API_PORT: ${PAYPAL_API_PORT:-8035}
|
|
33
|
+
PAYPAL_STARTING_BALANCE: "100000"
|
|
34
|
+
healthcheck:
|
|
35
|
+
test: ["CMD-SHELL", "python -c \"import urllib.request,sys,os; urllib.request.urlopen('http://127.0.0.1:'+os.environ.get('PAYPAL_API_PORT','8035')+'/health', timeout=2); sys.exit(0)\" || exit 1"]
|
|
36
|
+
interval: 3s
|
|
37
|
+
timeout: 3s
|
|
38
|
+
retries: 40
|
|
39
|
+
restart: unless-stopped
|
|
40
|
+
|
|
41
|
+
paypal-ui:
|
|
42
|
+
image: decodingtrustagent/paypal:ui-latest
|
|
43
|
+
network_mode: host
|
|
44
|
+
depends_on:
|
|
45
|
+
- paypal-api
|
|
46
|
+
environment:
|
|
47
|
+
PAYPAL_API_PORT: ${PAYPAL_API_PORT:-8035}
|
|
48
|
+
PAYPAL_UI_PORT: ${PAYPAL_UI_PORT:-8029}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
version: "3.8"
|
|
2
|
+
services:
|
|
3
|
+
paypal-pg:
|
|
4
|
+
image: postgres:16
|
|
5
|
+
network_mode: host
|
|
6
|
+
security_opt:
|
|
7
|
+
- seccomp=unconfined
|
|
8
|
+
environment:
|
|
9
|
+
POSTGRES_DB: paypal_sandbox
|
|
10
|
+
POSTGRES_USER: sandbox
|
|
11
|
+
POSTGRES_PASSWORD: sandbox
|
|
12
|
+
command: ["-p", "${PAYPAL_PG_PORT:-5544}"]
|
|
13
|
+
healthcheck:
|
|
14
|
+
test: ["CMD-SHELL", "pg_isready -h 127.0.0.1 -p ${PAYPAL_PG_PORT:-5544} -U sandbox -d paypal_sandbox"]
|
|
15
|
+
interval: 5s
|
|
16
|
+
timeout: 3s
|
|
17
|
+
retries: 30
|
|
18
|
+
|
|
19
|
+
paypal-api:
|
|
20
|
+
image: python:3.12-slim
|
|
21
|
+
network_mode: host
|
|
22
|
+
depends_on:
|
|
23
|
+
paypal-pg:
|
|
24
|
+
condition: service_healthy
|
|
25
|
+
dns:
|
|
26
|
+
- 8.8.8.8
|
|
27
|
+
- 8.8.4.4
|
|
28
|
+
working_dir: /app
|
|
29
|
+
environment:
|
|
30
|
+
PAYPAL_PG_HOST: 127.0.0.1
|
|
31
|
+
PAYPAL_PG_PORT: ${PAYPAL_PG_PORT:-5544}
|
|
32
|
+
PAYPAL_PG_DB: paypal_sandbox
|
|
33
|
+
PAYPAL_PG_USER: sandbox
|
|
34
|
+
PAYPAL_PG_PASSWORD: sandbox
|
|
35
|
+
PAYPAL_API_PORT: ${PAYPAL_API_PORT:-8035}
|
|
36
|
+
PAYPAL_STARTING_BALANCE: "100000"
|
|
37
|
+
volumes:
|
|
38
|
+
- ./api:/app:ro
|
|
39
|
+
- ./init_examples:/init_examples:ro
|
|
40
|
+
command: >
|
|
41
|
+
sh -c "PIP_PROGRESS_BAR=off pip install --progress-bar off --no-cache-dir 'psycopg[binary]>=3.1' fastapi uvicorn &&
|
|
42
|
+
uvicorn main:app --host 0.0.0.0 --port $${PAYPAL_API_PORT:-8035} --loop asyncio --http h11"
|
|
43
|
+
healthcheck:
|
|
44
|
+
test: ["CMD-SHELL", "python -c \"import urllib.request,sys,os; urllib.request.urlopen('http://127.0.0.1:'+os.environ.get('PAYPAL_API_PORT','8035')+'/health', timeout=2); sys.exit(0)\" || exit 1"]
|
|
45
|
+
interval: 3s
|
|
46
|
+
timeout: 3s
|
|
47
|
+
retries: 40
|
|
48
|
+
restart: unless-stopped
|
|
49
|
+
|
|
50
|
+
paypal-ui:
|
|
51
|
+
build:
|
|
52
|
+
context: ./paypal_ui
|
|
53
|
+
dockerfile: Dockerfile
|
|
54
|
+
network: host
|
|
55
|
+
network_mode: host
|
|
56
|
+
dns:
|
|
57
|
+
- 8.8.8.8
|
|
58
|
+
- 8.8.4.4
|
|
59
|
+
depends_on:
|
|
60
|
+
- paypal-api
|
|
61
|
+
environment:
|
|
62
|
+
PAYPAL_API_PORT: ${PAYPAL_API_PORT:-8035}
|
|
63
|
+
PAYPAL_UI_PORT: ${PAYPAL_UI_PORT:-8029}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
services:
|
|
2
|
+
research-env:
|
|
3
|
+
image: decodingtrustagent/research:latest
|
|
4
|
+
restart: unless-stopped
|
|
5
|
+
volumes:
|
|
6
|
+
- ./workspace:/home/research-user/workspace
|
|
7
|
+
- ./papers:/home/research-user/papers
|
|
8
|
+
- ./notebooks:/home/research-user/notebooks
|
|
9
|
+
environment:
|
|
10
|
+
- TERM=xterm-256color
|
|
11
|
+
- SHELL=/bin/bash
|
|
12
|
+
- PYTHONUNBUFFERED=1
|
|
13
|
+
command: bash -c "while true; do sleep 30; done"
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
services:
|
|
2
|
+
research-env:
|
|
3
|
+
build:
|
|
4
|
+
context: .
|
|
5
|
+
dockerfile: Dockerfile
|
|
6
|
+
network: host
|
|
7
|
+
# container_name is removed to allow multiple instances with unique names
|
|
8
|
+
# Docker Compose will auto-generate names like: {project_name}-research-env-1
|
|
9
|
+
restart: unless-stopped
|
|
10
|
+
# NOTE:
|
|
11
|
+
# Do NOT map host ports by default for this environment.
|
|
12
|
+
# Port mappings can cause conflicts when running multiple instances in parallel.
|
|
13
|
+
# The evaluation system manages instances dynamically.
|
|
14
|
+
volumes:
|
|
15
|
+
- ./workspace:/home/research-user/workspace
|
|
16
|
+
- ./papers:/home/research-user/papers
|
|
17
|
+
- ./notebooks:/home/research-user/notebooks
|
|
18
|
+
environment:
|
|
19
|
+
- TERM=xterm-256color
|
|
20
|
+
- SHELL=/bin/bash
|
|
21
|
+
- PYTHONUNBUFFERED=1
|
|
22
|
+
# Keep container running
|
|
23
|
+
command: bash -c "while true; do sleep 30; done"
|
|
24
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Salesforce CRM backed entirely by prebuilt DecodingTrust images.
|
|
2
|
+
|
|
3
|
+
services:
|
|
4
|
+
mariadb:
|
|
5
|
+
image: decodingtrustagent/salesforce-crm:mariadb
|
|
6
|
+
security_opt:
|
|
7
|
+
- seccomp=unconfined
|
|
8
|
+
environment:
|
|
9
|
+
- MYSQL_DATABASE=salesforce_crm
|
|
10
|
+
- MYSQL_USER=sf_user
|
|
11
|
+
- MYSQL_PASSWORD=bitnami123
|
|
12
|
+
- MYSQL_RANDOM_ROOT_PASSWORD=yes
|
|
13
|
+
volumes:
|
|
14
|
+
- "mariadb_data:/var/lib/mysql"
|
|
15
|
+
healthcheck:
|
|
16
|
+
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "sf_user", "-pbitnami123"]
|
|
17
|
+
interval: 10s
|
|
18
|
+
timeout: 5s
|
|
19
|
+
retries: 5
|
|
20
|
+
|
|
21
|
+
salesforce:
|
|
22
|
+
image: decodingtrustagent/salesforce-crm:latest
|
|
23
|
+
security_opt:
|
|
24
|
+
- seccomp=unconfined
|
|
25
|
+
ports:
|
|
26
|
+
- "${SALESFORCE_API_PORT:-8080}:8080"
|
|
27
|
+
environment:
|
|
28
|
+
- SALESFORCE_DATABASE_HOST=mariadb
|
|
29
|
+
- SALESFORCE_DATABASE_PORT_NUMBER=3306
|
|
30
|
+
- SALESFORCE_DATABASE_USER=sf_user
|
|
31
|
+
- SALESFORCE_DATABASE_NAME=salesforce_crm
|
|
32
|
+
- SALESFORCE_DATABASE_PASSWORD=bitnami123
|
|
33
|
+
depends_on:
|
|
34
|
+
mariadb:
|
|
35
|
+
condition: service_healthy
|
|
36
|
+
healthcheck:
|
|
37
|
+
test: ["CMD-SHELL", "php -r \"echo @file_get_contents('http://localhost:8080/') ? 'ok' : exit(1);\""]
|
|
38
|
+
interval: 5s
|
|
39
|
+
timeout: 5s
|
|
40
|
+
retries: 24
|
|
41
|
+
start_period: 15s
|
|
42
|
+
|
|
43
|
+
volumes:
|
|
44
|
+
mariadb_data:
|
|
45
|
+
driver: local
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Salesforce CRM with custom Docker images (no external dependencies)
|
|
2
|
+
# Build with: docker compose build
|
|
3
|
+
# Run with: docker compose up -d
|
|
4
|
+
|
|
5
|
+
services:
|
|
6
|
+
mariadb:
|
|
7
|
+
build:
|
|
8
|
+
context: ./docker/mariadb
|
|
9
|
+
dockerfile: Dockerfile
|
|
10
|
+
image: salesforce-mariadb:local
|
|
11
|
+
environment:
|
|
12
|
+
- MYSQL_DATABASE=salesforce_crm
|
|
13
|
+
- MYSQL_USER=sf_user
|
|
14
|
+
- MYSQL_PASSWORD=bitnami123
|
|
15
|
+
- MYSQL_RANDOM_ROOT_PASSWORD=yes
|
|
16
|
+
volumes:
|
|
17
|
+
- "mariadb_data:/var/lib/mysql"
|
|
18
|
+
healthcheck:
|
|
19
|
+
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "sf_user", "-pbitnami123"]
|
|
20
|
+
interval: 10s
|
|
21
|
+
timeout: 5s
|
|
22
|
+
retries: 5
|
|
23
|
+
|
|
24
|
+
salesforce:
|
|
25
|
+
build:
|
|
26
|
+
context: .
|
|
27
|
+
dockerfile: docker/salesforce/Dockerfile
|
|
28
|
+
image: salesforce-app:local
|
|
29
|
+
ports:
|
|
30
|
+
- "${SALESFORCE_API_PORT:-8080}:8080"
|
|
31
|
+
environment:
|
|
32
|
+
- SALESFORCE_DATABASE_HOST=mariadb
|
|
33
|
+
- SALESFORCE_DATABASE_PORT_NUMBER=3306
|
|
34
|
+
- SALESFORCE_DATABASE_USER=sf_user
|
|
35
|
+
- SALESFORCE_DATABASE_NAME=salesforce_crm
|
|
36
|
+
- SALESFORCE_DATABASE_PASSWORD=bitnami123
|
|
37
|
+
depends_on:
|
|
38
|
+
mariadb:
|
|
39
|
+
condition: service_healthy
|
|
40
|
+
healthcheck:
|
|
41
|
+
test: ["CMD-SHELL", "php -r \"echo @file_get_contents('http://localhost:8080/') ? 'ok' : exit(1);\""]
|
|
42
|
+
interval: 5s
|
|
43
|
+
timeout: 5s
|
|
44
|
+
retries: 24
|
|
45
|
+
start_period: 15s
|
|
46
|
+
|
|
47
|
+
volumes:
|
|
48
|
+
mariadb_data:
|
|
49
|
+
driver: local
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
services:
|
|
2
|
+
slack-api:
|
|
3
|
+
image: decodingtrustagent/slack:api-latest
|
|
4
|
+
network_mode: host
|
|
5
|
+
environment:
|
|
6
|
+
- SLACK_JWT_SECRET=dev-secret
|
|
7
|
+
- SLACK_DB_PATH=/app/data/slack.db
|
|
8
|
+
- SLACK_FROM_EMAIL=noreply@slack.local
|
|
9
|
+
- SLACK_API_PORT=${SLACK_API_PORT:-8034}
|
|
10
|
+
volumes:
|
|
11
|
+
- slack_data:/app/data
|
|
12
|
+
healthcheck:
|
|
13
|
+
test: ["CMD", "python3", "-c", "import sys,urllib.request; sys.exit(0 if urllib.request.urlopen('http://localhost:' + str(__import__('os').environ.get('SLACK_API_PORT','8034')) + '/health', timeout=3).status < 400 else 1)"]
|
|
14
|
+
interval: 10s
|
|
15
|
+
timeout: 5s
|
|
16
|
+
retries: 5
|
|
17
|
+
|
|
18
|
+
slack-ui:
|
|
19
|
+
image: decodingtrustagent/slack:ui-latest
|
|
20
|
+
network_mode: host
|
|
21
|
+
depends_on:
|
|
22
|
+
- slack-api
|
|
23
|
+
environment:
|
|
24
|
+
- SLACK_API_URL=http://127.0.0.1:${SLACK_API_PORT:-8034}
|
|
25
|
+
- SLACK_UI_PORT=${SLACK_UI_PORT:-8028}
|
|
26
|
+
|
|
27
|
+
volumes:
|
|
28
|
+
slack_data:
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
services:
|
|
2
|
+
slack-api:
|
|
3
|
+
build:
|
|
4
|
+
context: ./slack_api
|
|
5
|
+
dockerfile: Dockerfile
|
|
6
|
+
network: host
|
|
7
|
+
dns:
|
|
8
|
+
- 8.8.8.8
|
|
9
|
+
- 8.8.4.4
|
|
10
|
+
network_mode: host
|
|
11
|
+
environment:
|
|
12
|
+
- SLACK_JWT_SECRET=dev-secret
|
|
13
|
+
- SLACK_DB_PATH=/app/data/slack.db
|
|
14
|
+
- SLACK_FROM_EMAIL=noreply@slack.local
|
|
15
|
+
- SLACK_API_PORT=${SLACK_API_PORT:-8034}
|
|
16
|
+
volumes:
|
|
17
|
+
- slack_data:/app/data # Named volume - each project gets its own
|
|
18
|
+
healthcheck:
|
|
19
|
+
# Use Python stdlib to avoid requiring curl in the image.
|
|
20
|
+
test: ["CMD", "python3", "-c", "import sys,urllib.request; sys.exit(0 if urllib.request.urlopen('http://localhost:' + str(__import__('os').environ.get('SLACK_API_PORT','8034')) + '/health', timeout=3).status < 400 else 1)"]
|
|
21
|
+
interval: 10s
|
|
22
|
+
timeout: 5s
|
|
23
|
+
retries: 5
|
|
24
|
+
|
|
25
|
+
slack-ui:
|
|
26
|
+
build:
|
|
27
|
+
context: ./slack_ui
|
|
28
|
+
dockerfile: Dockerfile
|
|
29
|
+
network: host
|
|
30
|
+
dns:
|
|
31
|
+
- 8.8.8.8
|
|
32
|
+
- 8.8.4.4
|
|
33
|
+
network_mode: host
|
|
34
|
+
depends_on:
|
|
35
|
+
- slack-api
|
|
36
|
+
environment:
|
|
37
|
+
- SLACK_API_URL=http://127.0.0.1:${SLACK_API_PORT:-8034}
|
|
38
|
+
- SLACK_UI_PORT=${SLACK_UI_PORT:-8028}
|
|
39
|
+
|
|
40
|
+
volumes:
|
|
41
|
+
slack_data:
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
version: "3.8"
|
|
2
|
+
|
|
3
|
+
services:
|
|
4
|
+
snowflake-pg:
|
|
5
|
+
image: decodingtrustagent/snowflake:latest
|
|
6
|
+
network_mode: host
|
|
7
|
+
security_opt:
|
|
8
|
+
- seccomp=unconfined
|
|
9
|
+
environment:
|
|
10
|
+
POSTGRES_DB: snowdb
|
|
11
|
+
POSTGRES_USER: snow
|
|
12
|
+
POSTGRES_PASSWORD: snow
|
|
13
|
+
PGPORT: ${SNOWFLAKE_PG_PORT:-5454}
|
|
14
|
+
healthcheck:
|
|
15
|
+
test: ["CMD-SHELL", "pg_isready -U snow -d snowdb -p ${SNOWFLAKE_PG_PORT:-5454}"]
|
|
16
|
+
interval: 5s
|
|
17
|
+
timeout: 3s
|
|
18
|
+
retries: 20
|
|
19
|
+
|
|
20
|
+
snowflake-admin:
|
|
21
|
+
image: decodingtrustagent/snowflake:admin
|
|
22
|
+
network_mode: host
|
|
23
|
+
security_opt:
|
|
24
|
+
- seccomp=unconfined
|
|
25
|
+
depends_on:
|
|
26
|
+
snowflake-pg:
|
|
27
|
+
condition: service_healthy
|
|
28
|
+
environment:
|
|
29
|
+
SNOWFLAKE_PG_HOST: 127.0.0.1
|
|
30
|
+
SNOWFLAKE_PG_PORT: ${SNOWFLAKE_PG_PORT:-5454}
|
|
31
|
+
SNOWFLAKE_PG_DB: snowdb
|
|
32
|
+
SNOWFLAKE_PG_USER: snow
|
|
33
|
+
SNOWFLAKE_PG_PASSWORD: snow
|
|
34
|
+
SNOWFLAKE_ADMIN_PORT: ${SNOWFLAKE_ADMIN_PORT:-8454}
|
|
35
|
+
SNOWFLAKE_INIT_SQL_DIR: /init-sql
|
|
36
|
+
healthcheck:
|
|
37
|
+
test: ["CMD-SHELL", "python -c \"import urllib.request,os; urllib.request.urlopen('http://127.0.0.1:'+os.environ.get('SNOWFLAKE_ADMIN_PORT','8454')+'/health', timeout=2)\" || exit 1"]
|
|
38
|
+
interval: 3s
|
|
39
|
+
timeout: 3s
|
|
40
|
+
retries: 30
|
|
41
|
+
restart: unless-stopped
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
version: "3.8"
|
|
2
|
+
|
|
3
|
+
services:
|
|
4
|
+
snowflake-pg:
|
|
5
|
+
image: decodingtrustagent/snowflake:latest
|
|
6
|
+
network_mode: host
|
|
7
|
+
security_opt:
|
|
8
|
+
- seccomp=unconfined
|
|
9
|
+
environment:
|
|
10
|
+
POSTGRES_DB: snowdb
|
|
11
|
+
POSTGRES_USER: snow
|
|
12
|
+
POSTGRES_PASSWORD: snow
|
|
13
|
+
PGPORT: ${SNOWFLAKE_PG_PORT:-5454}
|
|
14
|
+
healthcheck:
|
|
15
|
+
test: ["CMD-SHELL", "pg_isready -U snow -d snowdb -p ${SNOWFLAKE_PG_PORT:-5454}"]
|
|
16
|
+
interval: 5s
|
|
17
|
+
timeout: 3s
|
|
18
|
+
retries: 20
|
|
19
|
+
|
|
20
|
+
snowflake-admin:
|
|
21
|
+
build: ./admin_api
|
|
22
|
+
image: decodingtrustagent/snowflake:admin
|
|
23
|
+
network_mode: host
|
|
24
|
+
security_opt:
|
|
25
|
+
- seccomp=unconfined
|
|
26
|
+
depends_on:
|
|
27
|
+
snowflake-pg:
|
|
28
|
+
condition: service_healthy
|
|
29
|
+
volumes:
|
|
30
|
+
- ./init:/init-sql:ro
|
|
31
|
+
environment:
|
|
32
|
+
SNOWFLAKE_PG_HOST: 127.0.0.1
|
|
33
|
+
SNOWFLAKE_PG_PORT: ${SNOWFLAKE_PG_PORT:-5454}
|
|
34
|
+
SNOWFLAKE_PG_DB: snowdb
|
|
35
|
+
SNOWFLAKE_PG_USER: snow
|
|
36
|
+
SNOWFLAKE_PG_PASSWORD: snow
|
|
37
|
+
SNOWFLAKE_ADMIN_PORT: ${SNOWFLAKE_ADMIN_PORT:-8454}
|
|
38
|
+
SNOWFLAKE_INIT_SQL_DIR: /init-sql
|
|
39
|
+
healthcheck:
|
|
40
|
+
test: ["CMD-SHELL", "python -c \"import urllib.request,os; urllib.request.urlopen('http://127.0.0.1:'+os.environ.get('SNOWFLAKE_ADMIN_PORT','8454')+'/health', timeout=2)\" || exit 1"]
|
|
41
|
+
interval: 3s
|
|
42
|
+
timeout: 3s
|
|
43
|
+
retries: 30
|
|
44
|
+
restart: unless-stopped
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
version: "3.9"
|
|
2
|
+
|
|
3
|
+
services:
|
|
4
|
+
telecom-server:
|
|
5
|
+
image: decodingtrustagent/telecom:latest
|
|
6
|
+
environment:
|
|
7
|
+
- TELECOM_HOST=0.0.0.0
|
|
8
|
+
- TELECOM_PORT=17501
|
|
9
|
+
ports:
|
|
10
|
+
- "${TELECOM_PORT:-17501}:17501"
|
|
11
|
+
healthcheck:
|
|
12
|
+
test: ["CMD", "curl", "-f", "http://localhost:17501/"]
|
|
13
|
+
interval: 10s
|
|
14
|
+
timeout: 5s
|
|
15
|
+
retries: 3
|
|
16
|
+
start_period: 10s
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
version: "3.9"
|
|
2
|
+
|
|
3
|
+
services:
|
|
4
|
+
telecom-server:
|
|
5
|
+
build: .
|
|
6
|
+
image: decodingtrustagent/telecom:latest
|
|
7
|
+
environment:
|
|
8
|
+
- TELECOM_HOST=0.0.0.0
|
|
9
|
+
- TELECOM_PORT=17501 # Always use 17501 inside container (matches port mapping)
|
|
10
|
+
ports:
|
|
11
|
+
- "${TELECOM_PORT:-17501}:17501"
|
|
12
|
+
healthcheck:
|
|
13
|
+
test: ["CMD", "curl", "-f", "http://localhost:17501/"]
|
|
14
|
+
interval: 10s
|
|
15
|
+
timeout: 5s
|
|
16
|
+
retries: 3
|
|
17
|
+
start_period: 10s
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
services:
|
|
2
|
+
telegram-pg:
|
|
3
|
+
image: decodingtrustagent/telegram:pg-latest
|
|
4
|
+
network_mode: host
|
|
5
|
+
privileged: true
|
|
6
|
+
security_opt:
|
|
7
|
+
- seccomp:unconfined
|
|
8
|
+
environment:
|
|
9
|
+
POSTGRES_DB: telegram_sandbox
|
|
10
|
+
POSTGRES_USER: sandbox
|
|
11
|
+
POSTGRES_PASSWORD: sandbox
|
|
12
|
+
PGPORT: ${TELEGRAM_PG_PORT:-5472}
|
|
13
|
+
volumes:
|
|
14
|
+
- telegram-pgdata:/var/lib/postgresql/data
|
|
15
|
+
healthcheck:
|
|
16
|
+
test: ["CMD-SHELL", "pg_isready -U sandbox -d telegram_sandbox"]
|
|
17
|
+
interval: 5s
|
|
18
|
+
timeout: 5s
|
|
19
|
+
retries: 20
|
|
20
|
+
start_period: 30s
|
|
21
|
+
restart: unless-stopped
|
|
22
|
+
|
|
23
|
+
telegram-api:
|
|
24
|
+
image: decodingtrustagent/telegram:api-latest
|
|
25
|
+
network_mode: host
|
|
26
|
+
privileged: true
|
|
27
|
+
security_opt:
|
|
28
|
+
- seccomp:unconfined
|
|
29
|
+
ulimits:
|
|
30
|
+
nproc: 65535
|
|
31
|
+
nofile:
|
|
32
|
+
soft: 65535
|
|
33
|
+
hard: 65535
|
|
34
|
+
dns:
|
|
35
|
+
- 8.8.8.8
|
|
36
|
+
- 8.8.4.4
|
|
37
|
+
depends_on:
|
|
38
|
+
telegram-pg:
|
|
39
|
+
condition: service_healthy
|
|
40
|
+
environment:
|
|
41
|
+
TELEGRAM_PG_HOST: 127.0.0.1
|
|
42
|
+
TELEGRAM_PG_PORT: ${TELEGRAM_PG_PORT:-5472}
|
|
43
|
+
TELEGRAM_PG_DB: telegram_sandbox
|
|
44
|
+
TELEGRAM_PG_USER: sandbox
|
|
45
|
+
TELEGRAM_PG_PASSWORD: sandbox
|
|
46
|
+
TELEGRAM_API_PORT: ${TELEGRAM_API_PORT:-8038}
|
|
47
|
+
command: ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "${TELEGRAM_API_PORT:-8038}"]
|
|
48
|
+
healthcheck:
|
|
49
|
+
test: ["CMD-SHELL", "python -c \"import urllib.request; urllib.request.urlopen('http://127.0.0.1:$${TELEGRAM_API_PORT:-8038}/health', timeout=5)\" || exit 1"]
|
|
50
|
+
interval: 5s
|
|
51
|
+
timeout: 10s
|
|
52
|
+
retries: 30
|
|
53
|
+
start_period: 90s
|
|
54
|
+
restart: unless-stopped
|
|
55
|
+
|
|
56
|
+
volumes:
|
|
57
|
+
telegram-pgdata:
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
version: "3.8"
|
|
2
|
+
services:
|
|
3
|
+
telegram-pg:
|
|
4
|
+
build:
|
|
5
|
+
context: .
|
|
6
|
+
dockerfile: Dockerfile.pg
|
|
7
|
+
network_mode: host
|
|
8
|
+
privileged: true
|
|
9
|
+
security_opt:
|
|
10
|
+
- seccomp:unconfined
|
|
11
|
+
environment:
|
|
12
|
+
POSTGRES_DB: telegram_sandbox
|
|
13
|
+
POSTGRES_USER: sandbox
|
|
14
|
+
POSTGRES_PASSWORD: sandbox
|
|
15
|
+
PGPORT: ${TELEGRAM_PG_PORT:-5472}
|
|
16
|
+
volumes:
|
|
17
|
+
- telegram-pgdata:/var/lib/postgresql/data
|
|
18
|
+
healthcheck:
|
|
19
|
+
test: ["CMD-SHELL", "pg_isready -U sandbox -d telegram_sandbox"]
|
|
20
|
+
interval: 5s
|
|
21
|
+
timeout: 5s
|
|
22
|
+
retries: 20
|
|
23
|
+
start_period: 30s
|
|
24
|
+
restart: unless-stopped
|
|
25
|
+
|
|
26
|
+
telegram-api:
|
|
27
|
+
build:
|
|
28
|
+
context: .
|
|
29
|
+
dockerfile: Dockerfile.api
|
|
30
|
+
network_mode: host
|
|
31
|
+
privileged: true
|
|
32
|
+
security_opt:
|
|
33
|
+
- seccomp:unconfined
|
|
34
|
+
ulimits:
|
|
35
|
+
nproc: 65535
|
|
36
|
+
nofile:
|
|
37
|
+
soft: 65535
|
|
38
|
+
hard: 65535
|
|
39
|
+
dns:
|
|
40
|
+
- 8.8.8.8
|
|
41
|
+
- 8.8.4.4
|
|
42
|
+
depends_on:
|
|
43
|
+
telegram-pg:
|
|
44
|
+
condition: service_healthy
|
|
45
|
+
environment:
|
|
46
|
+
TELEGRAM_PG_HOST: 127.0.0.1
|
|
47
|
+
TELEGRAM_PG_PORT: ${TELEGRAM_PG_PORT:-5472}
|
|
48
|
+
TELEGRAM_PG_DB: telegram_sandbox
|
|
49
|
+
TELEGRAM_PG_USER: sandbox
|
|
50
|
+
TELEGRAM_PG_PASSWORD: sandbox
|
|
51
|
+
TELEGRAM_API_PORT: ${TELEGRAM_API_PORT:-8038}
|
|
52
|
+
command: ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "${TELEGRAM_API_PORT:-8038}"]
|
|
53
|
+
healthcheck:
|
|
54
|
+
test: ["CMD-SHELL", "python -c \"import urllib.request; urllib.request.urlopen('http://127.0.0.1:$${TELEGRAM_API_PORT:-8038}/health', timeout=5)\" || exit 1"]
|
|
55
|
+
interval: 5s
|
|
56
|
+
timeout: 10s
|
|
57
|
+
retries: 30
|
|
58
|
+
start_period: 90s
|
|
59
|
+
restart: unless-stopped
|
|
60
|
+
|
|
61
|
+
volumes:
|
|
62
|
+
telegram-pgdata:
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
services:
|
|
2
|
+
terminal-env:
|
|
3
|
+
image: decodingtrustagent/code-terminal:latest
|
|
4
|
+
restart: unless-stopped
|
|
5
|
+
network_mode: host
|
|
6
|
+
volumes:
|
|
7
|
+
- ./workspace:/home/terminal-user/workspace
|
|
8
|
+
- ./data:/home/terminal-user/data
|
|
9
|
+
environment:
|
|
10
|
+
- TERM=xterm-256color
|
|
11
|
+
- SHELL=/bin/bash
|
|
12
|
+
command: bash -c "while true; do sleep 30; done"
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
services:
|
|
2
|
+
terminal-env:
|
|
3
|
+
build:
|
|
4
|
+
context: .
|
|
5
|
+
dockerfile: Dockerfile
|
|
6
|
+
# container_name is removed to allow multiple instances with unique names
|
|
7
|
+
# Docker Compose will auto-generate names like: {project_name}-terminal-env-1
|
|
8
|
+
restart: unless-stopped
|
|
9
|
+
# Use host network to avoid creating a new Docker network per container
|
|
10
|
+
# (prevents "all predefined address pools have been fully subnetted" error)
|
|
11
|
+
network_mode: host
|
|
12
|
+
# NOTE:
|
|
13
|
+
# Do NOT map host ports by default for this sandbox container.
|
|
14
|
+
# The red-teaming runner expects no port mappings, and host port 8080
|
|
15
|
+
# is commonly occupied (causing "address already in use").
|
|
16
|
+
# If you need the web interface later, map a non-conflicting port, e.g.:
|
|
17
|
+
# ports:
|
|
18
|
+
# - "18080:8080"
|
|
19
|
+
volumes:
|
|
20
|
+
- ./workspace:/home/terminal-user/workspace
|
|
21
|
+
- ./data:/home/terminal-user/data
|
|
22
|
+
environment:
|
|
23
|
+
- TERM=xterm-256color
|
|
24
|
+
- SHELL=/bin/bash
|
|
25
|
+
# Keep container running
|
|
26
|
+
command: bash -c "while true; do sleep 30; done"
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
services:
|
|
2
|
+
travel-api:
|
|
3
|
+
image: decodingtrustagent/travel:latest
|
|
4
|
+
ports:
|
|
5
|
+
- "${TRAVEL_PORT:-10300}:10300"
|
|
6
|
+
environment:
|
|
7
|
+
- TRAVEL_HOST=0.0.0.0
|
|
8
|
+
- TRAVEL_PORT=10300
|
|
9
|
+
deploy:
|
|
10
|
+
resources:
|
|
11
|
+
limits:
|
|
12
|
+
memory: 5g
|
|
13
|
+
cpus: '2.0'
|
|
14
|
+
healthcheck:
|
|
15
|
+
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:10300/')"]
|
|
16
|
+
interval: 10s
|
|
17
|
+
timeout: 5s
|
|
18
|
+
retries: 5
|
|
19
|
+
start_period: 15s
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
services:
|
|
2
|
+
travel-api:
|
|
3
|
+
image: decodingtrustagent/travel:latest
|
|
4
|
+
ports:
|
|
5
|
+
- "${TRAVEL_PORT:-10300}:10300"
|
|
6
|
+
environment:
|
|
7
|
+
- TRAVEL_HOST=0.0.0.0
|
|
8
|
+
- TRAVEL_PORT=10300
|
|
9
|
+
deploy:
|
|
10
|
+
resources:
|
|
11
|
+
limits:
|
|
12
|
+
memory: 5g
|
|
13
|
+
cpus: '2.0'
|
|
14
|
+
healthcheck:
|
|
15
|
+
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:10300/')"]
|
|
16
|
+
interval: 10s
|
|
17
|
+
timeout: 5s
|
|
18
|
+
retries: 5
|
|
19
|
+
start_period: 15s
|