- View License Usages - Celery Beat container added - First schedule in Celery Beat for calculating usage (hourly) - repopack can now split for different components - Various fixes as consequece of changing file_location / file_name ==> bucket_name / object_name - Celery Routing / Queuing updated
36 lines
1.3 KiB
Bash
Executable File
36 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
# Delete previous repopack files
|
|
rm -f *repo.txt
|
|
|
|
# Define the list of components
|
|
components=("docker" "eveai_api" "eveai_app" "eveai_beat" "eveai_chat" "eveai_chat_workers" "eveai_entitlements" "eveai_workers" "nginx" "full" "integrations")
|
|
|
|
# Get the current date and time in the format YYYY-MM-DD_HH-MM
|
|
timestamp=$(date +"%Y-%m-%d_%H-%M")
|
|
|
|
# Loop through each component and perform the tasks
|
|
for component in "${components[@]}"; do
|
|
echo "Processing component: $component"
|
|
|
|
# Merge the .repopackignore_base and .repopackignore_<component> into .repopackignore
|
|
if [[ -f ".repopackignore_base" && -f ".repopackignore_$component" ]]; then
|
|
cat .repopackignore_base .repopackignore_$component > .repopackignore
|
|
else
|
|
echo "Warning: Missing .repopackignore_base or .repopackignore_$component for $component"
|
|
continue
|
|
fi
|
|
|
|
# Execute repopack
|
|
repopack
|
|
|
|
# Rename the resulting eveai_repo.txt file to <component>YYYY-MM-DD_HH-MM_repo.txt
|
|
if [[ -f "eveai_repo.txt" ]]; then
|
|
mv eveai_repo.txt "${component}_${timestamp}_repo.txt"
|
|
echo "Renamed eveai_repo.txt to ${component}_${timestamp}_repo.txt"
|
|
else
|
|
echo "Error: repopack did not generate eveai_repo.txt for $component"
|
|
fi
|
|
|
|
echo "Finished processing $component"
|
|
done
|