Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
3980318
Deploy: added env var checkup script.
vladd-bit Nov 25, 2025
3318a4e
NiFi: updated docker image + packge list to install.
vladd-bit Nov 26, 2025
a20cf8b
Merge branch 'main' of https://github.com/CogStack/CogStack-NiFi into…
vladd-bit Nov 26, 2025
aa306b9
NiFi: dockerfile fix.
vladd-bit Nov 26, 2025
b4ef495
Deploy refactioring + pyproject.
vladd-bit Nov 26, 2025
496c612
.gitignore update.
vladd-bit Nov 27, 2025
3e0f848
Deploy: added resource limits to core services (NiFi/NiFiRegistry/Ngi…
vladd-bit Nov 27, 2025
c0f81b8
Deploy: env + services def updates (resource constraints per service).
vladd-bit Nov 27, 2025
5e0894c
NiFi: dockerfile update.
vladd-bit Nov 27, 2025
9eec629
Transioning NiFi scripts to python package.
vladd-bit Nov 28, 2025
66bfc7d
Re-added user scripts/templates/python_extensions folders.
vladd-bit Nov 28, 2025
9f7e697
Re-added user_scripts folder. Added configs for pgsql/nifi/elastic se…
vladd-bit Nov 28, 2025
05fc3b3
NiFi: updated user_scripts.
vladd-bit Dec 2, 2025
ef26a79
Security: fixed script typo.
vladd-bit Dec 2, 2025
3e5cccb
Merge branch 'main' of https://github.com/CogStack/CogStack-NiFi into…
vladd-bit Dec 4, 2025
5c62a3c
Dev requirements + docker template gha update.
vladd-bit Dec 7, 2025
fe0b072
Merge branch 'main' of https://github.com/CogStack/CogStack-NiFi into…
vladd-bit Dec 8, 2025
2af6cd8
Update submodules to latest release tags (or main)
vladd-bit Dec 9, 2025
c730cf3
Deploy: updated docker services restart flag on core services.
vladd-bit Dec 9, 2025
f3b805f
.gitignore update.
vladd-bit Dec 9, 2025
b8df82e
NiFi: updated processor user_scripts path ref.
vladd-bit Dec 9, 2025
f43467f
Updated path refs.
vladd-bit Dec 9, 2025
48a06ee
Updated path refs to NiFi scripts folders.
vladd-bit Dec 9, 2025
25d5be0
Updated path refs to NiFi scripts folders II.
vladd-bit Dec 9, 2025
e45d5c4
Updated .gitattributes.
vladd-bit Dec 9, 2025
fc2314f
Merge branch 'main' of https://github.com/CogStack/CogStack-NiFi into…
vladd-bit Dec 10, 2025
0fdfeed
pyproject.toml update.
vladd-bit Dec 10, 2025
0b5b85b
Merge branch 'main' of https://github.com/CogStack/CogStack-NiFi into…
vladd-bit Dec 10, 2025
724a083
Merge branch 'main' of https://github.com/CogStack/CogStack-NiFi into…
vladd-bit Dec 12, 2025
547a443
NiFi: updated requirements (pyarrow).
vladd-bit Dec 12, 2025
e427f36
NiFi registry: updated security paths.
vladd-bit Dec 12, 2025
10cc051
Merge branch 'main' of https://github.com/CogStack/CogStack-NiFi into…
vladd-bit Dec 25, 2025
86388aa
Updated docs.
vladd-bit Dec 25, 2025
eef5479
GeoLocation processor fix.
vladd-bit Jan 7, 2026
ee04a60
Changed remanining refs of user-scripts to user_scripts.
vladd-bit Jan 7, 2026
d08949f
Renamed processors (added CogStack prefix)
vladd-bit Jan 7, 2026
198e0c7
Merge branch 'main' of https://github.com/CogStack/CogStack-NiFi into…
vladd-bit Jan 7, 2026
a3728fe
Merge branch 'main' of https://github.com/CogStack/CogStack-NiFi into…
vladd-bit Jan 8, 2026
99cd1b3
Convert json record schema update.
vladd-bit Jan 8, 2026
d05dc6a
Merge branch 'main' of https://github.com/CogStack/CogStack-NiFi into…
vladd-bit Jan 9, 2026
4613793
Updated nifi requirements.txt
vladd-bit Jan 9, 2026
ded76de
Added record reader for parquet files/records + convert to json.
vladd-bit Jan 9, 2026
ff36ff9
Requirements update (added pyarrow).
vladd-bit Jan 9, 2026
5ea1ac1
Deploy: updated services def + nifi cert configs.
vladd-bit Jan 9, 2026
6a6276a
NiFi: updated docker (netty jar missing in NiFi 2.7.2) hotfix + .giti…
vladd-bit Jan 9, 2026
a736a8b
Updated parquet processor.
vladd-bit Jan 9, 2026
c3c0cb1
NiFi: added extra NARs to image.
vladd-bit Jan 10, 2026
7082a29
NiFi: updated docker image (NAR install fix).
vladd-bit Jan 10, 2026
2ad5c02
NiFi: updated docker image (NAR install fix II).
vladd-bit Jan 10, 2026
e5860df
NiFi: updated docker image, removed inexistent).
vladd-bit Jan 10, 2026
62f9347
NiFi: added extra NARs.
vladd-bit Jan 10, 2026
4e5fcaa
NiFi: updated Dockerfile.
vladd-bit Jan 10, 2026
374fcf0
NiFi: added Dockerfile.
vladd-bit Jan 11, 2026
a1a7fca
NiFi: minor linting updates to python scripts.
vladd-bit Jan 11, 2026
aa468c9
NiFi: organized non-processor scripts.
vladd-bit Jan 11, 2026
df0a096
NiFi: added missing groovy version to docker img build.
vladd-bit Jan 11, 2026
60a1196
NiFi: further organised user_scripts folder + processor imports.
vladd-bit Jan 12, 2026
dd2b93d
Docs: updated NiFi docs (processor & script descriptions/pages)
vladd-bit Jan 12, 2026
58b5ceb
NiFi: updated all scripts to use nifi package refs instead of sys pat…
vladd-bit Jan 12, 2026
de0af2e
Docs: added/updated scripts refs.
vladd-bit Jan 12, 2026
6a80257
Deploy: udpdated refs services.yml (fixed python pkg refs). NiFI: add…
vladd-bit Jan 12, 2026
a4e2b37
Deploy: fixed issue where env linter was not executable
vladd-bit Jan 12, 2026
53cb783
NiFi: fixed dockerfile paths.
vladd-bit Jan 12, 2026
db6798a
Docker build fix.
vladd-bit Jan 12, 2026
7c675e1
Services: updated kibana yml settings.
vladd-bit Jan 14, 2026
aadaf3f
Services: updated kibana yml settings(reversed opensearchDashboards.i…
vladd-bit Jan 14, 2026
f4b778f
Services: updated kibana yml settings(reversed opensearchDashboards.i…
vladd-bit Jan 14, 2026
be65eb5
Services: updated nginx defs.
vladd-bit Jan 14, 2026
6e52997
Deploy: Updated dev services docker-compose defs.
vladd-bit Jan 14, 2026
6e7d827
Services: added extra OS dashbaords settings.
vladd-bit Jan 14, 2026
9d73c4c
Deploy: changed templates folder mount NiFi.
vladd-bit Jan 14, 2026
66a2a60
Deploy: nifi mount cleanup.
vladd-bit Jan 14, 2026
0678e6c
Deploy: cleaned mounts for nifi/nifi-registry etc.
vladd-bit Jan 14, 2026
c6beb7b
Deploy: added env vars for nifi/nifi registry docker images.
vladd-bit Jan 14, 2026
daa7e8a
Deploy: fixed nifi startup issue (conf folder change).
vladd-bit Jan 14, 2026
48248ac
Deploy: fixed dev services NiFi conf folder mount.
vladd-bit Jan 14, 2026
7a73a19
Deploy: corrected nifi-registry mount (conf).
vladd-bit Jan 14, 2026
6fe0f40
Services: updated opensearch(-dashboards) version to 3.4.0.
vladd-bit Jan 14, 2026
1628411
NiFi: added sample workflow Azure -> Blobs[Parquet] -> Elasticsearch.
vladd-bit Jan 14, 2026
cc54ebf
Services: updated OpenSearch system_indices setting.
vladd-bit Jan 14, 2026
feb7011
Services: updated OS-dashboards to pre-select global tentant.
vladd-bit Jan 15, 2026
97f3e01
Security: updated OpenSearch-Dashbaords roles permissions on default …
vladd-bit Jan 15, 2026
336c2a3
NiFi: added NDJSON support for OCR processor.
vladd-bit Jan 15, 2026
05e0c0e
NiFi: updated requirements.txt
vladd-bit Jan 16, 2026
a78a411
NiFi: corrected/updated type declarations & returns for native proces…
vladd-bit Jan 16, 2026
7f1dbe3
Services: updated NGINX conf, removed old way relying on ENVSUBST com…
vladd-bit Jan 21, 2026
c599a73
Services: removed duplicate files from NGINX confs, now using templat…
vladd-bit Jan 21, 2026
52e67a2
Deploy: updated dev compose file + Makefile.
vladd-bit Jan 21, 2026
2c08988
Services: nginx conf - added new location regex matcher for nifi cont…
vladd-bit Jan 21, 2026
ae4b7eb
Deploy: updated services.yml (removed redundant env vars)
vladd-bit Jan 26, 2026
9caf816
Deploy: updated Pgsql to 17.7. Removed Nginx env var.
vladd-bit Jan 27, 2026
22fe7ab
NiFi: added convertjson to attr processor.
vladd-bit Jan 27, 2026
1833bb4
GHA: smoke tests for NiFi.
vladd-bit Jan 27, 2026
a0580b2
Updated all .sh scripts in repo to be executable.
vladd-bit Jan 27, 2026
aee255c
GHA: updated smoke test for NiFi + added shell script exec enforcer c…
vladd-bit Jan 27, 2026
298920e
Services: updated opensearch timeout settings.
vladd-bit Jan 27, 2026
9b7123a
Services: Opensearch(/+Dashboards) enabled SQL-like query settings.
vladd-bit Jan 27, 2026
aed1847
Fixed executable permissions.
vladd-bit Jan 27, 2026
a138b3e
GHA: fix nifi smoke text II.
vladd-bit Jan 27, 2026
12de564
Merge branch 'main' into etl_tests
vladd-bit Jan 27, 2026
d6997b7
NiFi scripts: deleted old file refs (parquet utils etc.)
vladd-bit Jan 27, 2026
6eb2b3d
NiFi scripts: cerner blob decompression additions.
vladd-bit Jan 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
###############################
# Git Line Endings #
# Set default behaviour to automatically normalize line endings.
* text eolf=lf
* text eol=lf
# Force batch scripts to always use CRLF line endings so that if a repo is accessed
# in Windows via a file share from Linux, the scripts will work.
*.{cmd,[cC][mM][dD]} text eol=crlf
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/_docker-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Docker metadata (again)
id: meta
id: meta_manifest
uses: docker/metadata-action@v5
with:
images: ${{ inputs.image }}
Expand All @@ -141,4 +141,4 @@ jobs:
--tag "${img}:${tag}" \
"${img}:${tag}-amd64" \
"${img}:${tag}-arm64"
done < <(printf "%s" "${{ steps.meta.outputs.tags }}")
done < <(printf "%s" "${{ steps.meta_manifest.outputs.tags }}")
2 changes: 1 addition & 1 deletion .github/workflows/docker-nifi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: ./.github/workflows/_docker-template.yml
with:
image: cogstacksystems/cogstack-nifi
context: nifi
context: .
dockerfile: nifi/Dockerfile
cache_scope: nifi
secrets: inherit
33 changes: 33 additions & 0 deletions .github/workflows/shell-script-enforce-exec-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: shell-script-enforce-exec-check

on:
pull_request:
push:
branches: ['**']

permissions:
contents: read

jobs:
exec-bit:
name: Enforce executable bit on tracked .sh scripts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6

- name: Verify shell scripts are executable
run: |
set -euo pipefail
echo "Checking tracked .sh files are executable."
echo "This prevents CI/runtime failures when scripts are invoked."
fail=0
while IFS= read -r -d '' file; do
if [[ ! -x "$file" ]]; then
echo "Non-executable .sh: $file"
fail=1
fi
done < <(git ls-files -z '*.sh')
if [[ "$fail" -ne 0 ]]; then
echo "Fix with: git update-index --chmod=+x <file>"
exit 1
fi
71 changes: 71 additions & 0 deletions .github/workflows/smoke-nifi-services.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: smoke-nifi-services

on:
pull_request:
push:
branches: ['**']
workflow_dispatch:

permissions:
contents: read

jobs:
smoke:
name: Build and smoke-test NiFi services
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v6

- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'

- name: Generate certificates
working-directory: security/scripts
run: |
set -euo pipefail
./create_root_ca_cert.sh
./create_nifi_certs.sh

- name: Start NiFi services (build)
run: |
set -euo pipefail
source deploy/export_env_vars.sh
set -euo pipefail
docker compose -f deploy/services.dev.yml up -d --build nifi nifi-nginx nifi-registry-flow

- name: Smoke tests
run: |
set -euo pipefail
echo "Running smoke checks against NiFi, NiFi Registry, and nginx."
retries=30
delay=15
for attempt in $(seq 1 $retries); do
if ./scripts/smoke_nifi_services.sh; then
exit 0
fi
echo "Attempt ${attempt}/${retries} failed. Sleeping ${delay}s..."
sleep "$delay"
done
echo "Smoke tests failed after ${retries} attempts."
exit 1

- name: Dump container logs
if: failure()
run: |
set -euo pipefail
source deploy/export_env_vars.sh
set -euo pipefail
docker compose -f deploy/services.dev.yml ps
docker compose -f deploy/services.dev.yml logs --no-color nifi nifi-nginx nifi-registry-flow

- name: Shutdown stack
if: always()
run: |
set -euo pipefail
source deploy/export_env_vars.sh
set -euo pipefail
docker compose -f deploy/services.dev.yml down -v
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,18 @@
.vscode
.venv
.ruff_cache
.mypy_cache
venv
**__pycache__
**/venv
*.pyc
.pyc
build

# Ignore setuptools metadata
*.egg-info/
*.egg-info
**/*.egg-info/

# keys and certificates
*.pem
Expand Down Expand Up @@ -37,6 +46,7 @@ security/templates/**
docs/build/*

# Ignore all .env files at any level
.env
*.env
**/*.env
!*.env.template
Expand Down
13 changes: 11 additions & 2 deletions deploy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ show-env:
start-nifi:
$(WITH_ENV) docker compose -f services.yml $(DC_START_CMD) nifi nifi-nginx nifi-registry-flow

start-nifi-dev:
$(WITH_ENV) docker compose -f services.dev.yml $(DC_START_CMD) nifi nifi-nginx nifi-registry-flow

start-nifi-dev-build:
$(WITH_ENV) docker compose -f services.dev.yml up -d --build nifi nifi-nginx nifi-registry-flow

start-elastic:
$(WITH_ENV) docker compose -f services.yml $(DC_START_CMD) elasticsearch-1 elasticsearch-2 kibana

Expand Down Expand Up @@ -95,14 +101,17 @@ start-data-infra: start-nifi start-elastic start-samples

start-all: start-data-infra start-jupyter start-medcat-service start-ocr-services

.PHONY: start-all start-data-infra start-nifi start-elastic start-samples start-jupyter
.PHONY: start-all start-data-infra start-nifi start-nifi-dev start-nifi-dev-build start-elastic start-samples start-jupyter


# stop services
#
stop-nifi:
$(WITH_ENV) docker compose -f services.yml $(DC_STOP_CMD) nifi nifi-nginx nifi-registry-flow

stop-nifi-dev:
$(WITH_ENV) docker compose -f services.dev.yml $(DC_STOP_CMD) nifi nifi-nginx nifi-registry-flow

stop-elastic:
$(WITH_ENV) docker compose -f services.yml $(DC_STOP_CMD) elasticsearch-1 elasticsearch-2 kibana

Expand Down Expand Up @@ -164,7 +173,7 @@ stop-data-infra: stop-nifi stop-elastic stop-samples

stop-all: stop-data-infra stop-jupyter stop-medcat-service stop-ocr-services

.PHONY: stop-data-infra stop-nifi stop-elastic stop-samples stop-jupyter
.PHONY: stop-data-infra stop-nifi stop-nifi-dev stop-elastic stop-samples stop-jupyter


# cleanup
Expand Down
12 changes: 8 additions & 4 deletions deploy/database.env
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# production db name
POSTGRES_DATABANK_DB=cogstack

POSTGRES_DB_MAX_CONNECTIONS=100

# Prefix of file names to load the DB schema for in /services/cogstack-db/(pgsql/mssql)/schemas/ folder
POSTGRES_DB_SCHEMA_PREFIX="cogstack_db"

POSTGRES_SHM_SIZE="1g"
# production db name
DATABASE_DB_NAME=cogstack

DATABASE_DOCKER_SHM_SIZE=1g

DATABASE_DOCKER_CPU_MIN=1
DATABASE_DOCKER_CPU_MAX=1
DATABASE_DOCKER_RAM=1g
38 changes: 27 additions & 11 deletions deploy/elasticsearch.env
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ ELASTICSEARCH_VERSION=opensearch
# possible values :
# - elasticsearch : docker.elastic.co/elasticsearch/elasticsearch:8.18.2
# - elasticsearch (custom cogstack image) : cogstacksystems/cogstack-elasticsearch:latest
# - opensearch : opensearchproject/opensearch:3.2.0
# - opensearch : opensearchproject/opensearch:3.4.0
# the custom cogstack image is always based on the last image of ES native

ELASTICSEARCH_DOCKER_IMAGE=opensearchproject/opensearch:3.2.0
ELASTICSEARCH_DOCKER_IMAGE=opensearchproject/opensearch:3.4.0

ELASTICSEARCH_LOG_LEVEL=INFO

Expand Down Expand Up @@ -88,9 +88,14 @@ ELASTICSEARCH_BACKUP_PARTITION_CONFIG=../data/es_snapshot_backups/config_backup
ELASTICSEARCH_SECURITY_DIR=../security/certificates/elastic/

# MEMORY CONFIG
ELASTICSEARCH_JAVA_OPTS="-Xms2048m -Xmx2048m -Des.failure_store_feature_flag_enabled=true"
ELASTICSEARCH_JAVA_OPTS="-Xms512m -Xmx512m -Des.failure_store_feature_flag_enabled=true"

ELASTICSEARCH_DOCKER_CPU_MIN=1
ELASTICSEARCH_DOCKER_CPU_MAX=1
ELASTICSEARCH_DOCKER_RAM=1g

ELASTICSEARCH_DOCKER_SHM_SIZE=512m

ELASTICSEARCH_SHM_SIZE="1g"
ELASTICSEARCH_DOCKER_LOG_SIZE_PER_FILE="1000m"
ELASTICSEARCH_DOCKER_LOG_NUM_FILES=10

Expand Down Expand Up @@ -140,9 +145,6 @@ ELASTICSEARCH_HOSTS='["https://elasticsearch-1:9200","https://elasticsearch-2:92

KIBANA_HOST="https://kibana:5601"

KIBANA_SERVER_NAME="cogstack-kibana"


########################################################################## KIBANA Env vars ###########################################################################
# NOTE: some variables from the Elasticsearch section are used
# - ${ELASTICSEARCH_VERSION} is used for certificate paths, as well as kibana.yml config path.
Expand All @@ -158,23 +160,27 @@ KIBANA_VERSION=opensearch-dashboards
# - kibana
# - opensearch_dashboards # make note of the underscore...

KIBANA_CONFIG_FILE_VERSION=opensearch_dashboards
KIBANA_CONFIG_FILE_VERSION=opensearch_dashboards

# possible values:
# - elasticsearch : docker.elastic.co/kibana/kibana:8.18.2
# - elasticsearch (custom cogstack image) : cogstacksystems/cogstack-kibana:latest
# - opensearch : opensearchproject/opensearch-dashboards:3.2.0
# - opensearch : opensearchproject/opensearch-dashboards:3.4.0
# the custom cogstack image is always based on the last image of ES native

ELASTICSEARCH_KIBANA_DOCKER_IMAGE=opensearchproject/opensearch-dashboards:3.2.0
ELASTICSEARCH_KIBANA_DOCKER_IMAGE=opensearchproject/opensearch-dashboards:3.4.0

KIBANA_SERVER_NAME="cogstack-kibana"
KIBANA_PUBLIC_BASE_URL="https://elasticsearch-1:5601"

KIBANA_SERVER_HOST="0.0.0.0"
KIBANA_SERVER_OUTPUT_PORT=5601

KIBANA_SHM_SIZE="1g"
KIBANA_DOCKER_SHM_SIZE=512m
KIBANA_DOCKER_CPU_MIN=1
KIBANA_DOCKER_CPU_MAX=1
KIBANA_DOCKER_RAM=1g


# this is used in Kibana
# it needs to be generated via the API
Expand All @@ -201,6 +207,10 @@ ELASTICSEARCH_XPACK_SECURITY_REPORTING_ENCRYPTION_KEY="e0Y1gTxHWOopIWMTtpjQsDS6K

METRICBEAT_IMAGE="docker.elastic.co/beats/metricbeat:8.18.2"

METRICBEAT_DOCKER_SHM=512m
METRICBEAT_DOCKER_CPU_MIN=1
METRICBEAT_DOCKER_CPU_MAX=1
METRICBEAT_DOCKER_RAM=1g

########################################################################## FILEBEAT Env vars ###########################################################################

Expand All @@ -213,3 +223,9 @@ FILEBEAT_STARTUP_COMMAND="-e --strict.perms=false"
FILEBEAT_HOST="https://elasticsearch-1:9200"

FILEBEAT_IMAGE="docker.elastic.co/beats/filebeat:8.18.2"


FILEBEAT_DOCKER_SHM=512m
FILEBEAT_DOCKER_CPU_MIN=1
FILEBEAT_DOCKER_CPU_MAX=1
FILEBEAT_DOCKER_RAM=1g
25 changes: 22 additions & 3 deletions deploy/export_env_vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
# Enable strict mode (without -e to avoid exit-on-error)
set -uo pipefail

# Support being sourced in shells where BASH_SOURCE is unset (e.g. zsh)
SCRIPT_SOURCE="${BASH_SOURCE[0]-$0}"
SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_SOURCE")" && pwd)"
SCRIPT_NAME="$(basename "$SCRIPT_SOURCE")"

echo "🔧 Running $(basename "${BASH_SOURCE[0]}")..."
echo "🔧 Running $SCRIPT_NAME..."

set -a

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
DEPLOY_DIR="$SCRIPT_DIR"
SECURITY_DIR="$SCRIPT_DIR/../security/env"
SERVICES_DIR="$SCRIPT_DIR/../services"
Expand Down Expand Up @@ -38,6 +41,22 @@ env_files=(
"$SERVICES_DIR/cogstack-nlp/medcat-service/env/medcat.env"
)

LINT_SCRIPT="$SCRIPT_DIR/../nifi/user_scripts/utils/lint_env.py"

if [ -e "$LINT_SCRIPT" ]; then
chmod +x $LINT_SCRIPT
fi

if [ -x "$LINT_SCRIPT" ]; then
echo "🔍 Validating env files..."
if ! python3 "$LINT_SCRIPT" "${env_files[@]}"; then
echo "❌ Env validation failed. Fix the errors above before continuing."
exit 1
fi
else
echo "⚠️ Skipping env validation; $LINT_SCRIPT not found or not executable."
fi

for env_file in "${env_files[@]}"; do
if [ -f "$env_file" ]; then
echo "✅ Sourcing $env_file"
Expand All @@ -56,4 +75,4 @@ set +a

# Restore safe defaults for interactive/dev shell
set +u
set +o pipefail
set +o pipefail
5 changes: 5 additions & 0 deletions deploy/gitea.env
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,8 @@ GITEA_LOCAL_PUB_KEY_PATH="$GITEA_LOCAL_KEY_PATH.pub"
GITEA_LOCAL_KEY_TITLE="gitea-cogstack-$(hostname)-$(date +%s)"

GITEA_DEFAULT_MAIN_REMOTE_NAME="cogstack-gitea"

GITEA_DOCKER_SHM_SIZE=512m
GITEA_DOCKER_CPU_MIN=1
GITEA_DOCKER_CPU_MAX=1
GITEA_DOCKER_RAM=1g
8 changes: 8 additions & 0 deletions deploy/nginx.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
NGINX_KIBANA_HOST=kibana
NGINX_KIBANA_PROXY_PORT=5601
NGINX_ES_NODE_SOURCE_INSTANCE_NAME="elasticsearch-1"

NGINX_ENVSUBST_OUTPUT_DIR=/etc/nginx


NGINX_SHM_SIZE=512mb
NGINX_DOCKER_CPU_MIN=1
NGINX_DOCKER_CPU_MAX=1
NGINX_DOCKER_RAM=1g
Loading