-# Copyright (c) 2024 Cisco and/or its affiliates.
+# Copyright (c) 2025 Cisco and/or its affiliates.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
if days:
last_modified_begin = datetime.now(tz=UTC) - timedelta(days=days)
try:
+ if C.AWS_ENDPOINT_URL:
+ wr.config.s3_endpoint_url = C.AWS_ENDPOINT_URL
file_list = wr.s3.list_objects(
path=path,
suffix="parquet",
if days:
last_modified_begin = datetime.now(tz=UTC) - timedelta(days=days)
+ if C.AWS_ENDPOINT_URL:
+ wr.config.s3_endpoint_url = C.AWS_ENDPOINT_URL
df = wr.s3.read_parquet(
path=path,
path_suffix="parquet",
wr.config.botocore_config = botocore.config.Config(
max_pool_connections=C.MAX_POOL_SIZE
)
+ if C.AWS_ENDPOINT_URL:
+ wr.config.s3_endpoint_url = C.AWS_ENDPOINT_URL
df = wr.s3.read_parquet(
path=path,
path_suffix="parquet",
-# Copyright (c) 2024 Cisco and/or its affiliates.
+# Copyright (c) 2025 Cisco and/or its affiliates.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
############################################################################
# General, application wide constants.
+ # AWS specific settings.
+ AWS_ENDPOINT_URL = get_str_from_env("AWS_ENDPOINT_URL", "")
+
# Select applications to start.
START_TRENDING = get_bool_from_env("START_TRENDING", True)
START_REPORT = get_bool_from_env("START_REPORT", True)
export UID=$(id -u)
export GID=$(id -g)
+docker network create csit-data || true
docker compose up --remove-orphans --detach
-version: "3"
+networks:
+ csit-data:
+ external: true
+
services:
cdash:
build: "."
command: "uwsgi --ini app.ini"
environment:
+ #AWS_ACCESS_KEY_ID: ""
+ #AWS_SECRET_ACCESS_KEY: ""
+ #CSIT_AWS_ENDPOINT_URL: "http://minio:9000" # If configured, set below value to True.
+ AWS_IGNORE_CONFIGURED_ENDPOINT_URLS: "False"
FLASK_DEBUG: 1
FLASK_ENV: "development"
CSIT_START_TRENDING: "True"
CSIT_URL_DOC: "https://csit.fd.io/cdocs/"
CSIT_TIME_PERIOD: 250
mem_limit: "16g"
+ networks:
+ - "csit-data"
ports:
- "5000:5000"
user: "${UID}:${GID}"