Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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 Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ RUN pip install awscli
RUN pip install --upgrade pip
RUN pip3 install --upgrade -r requirements.txt

ENTRYPOINT ["./run.sh"]
CMD ["./run.sh"]

25 changes: 25 additions & 0 deletions task/build-performance.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash

set -e

ENTRY_DATE=$(date +%Y-%m-%d)
echo "Performance build for entry date: $ENTRY_DATE"

# run the script to generate the provision-quality dataset
echo "Running generate_provision_quality.py for entry date: $ENTRY_DATE"
python3 -c "from digital_land.commands import generate_provision_quality; generate_provision_quality()"
OUTPUT_FILE="/tmp/performance/provision-quality/entry-date=${ENTRY_DATE}/provision-quality.parquet"

if [[ -n "$COLLECTION_DATASET_BUCKET_NAME" ]]; then
if [[ -f "$OUTPUT_FILE" ]]; then
echo "Uploading $OUTPUT_FILE to s3"
aws s3 cp "$OUTPUT_FILE" "s3://${COLLECTION_DATASET_BUCKET_NAME}/performance/provision-quality/entry-date=${ENTRY_DATE}/provision-quality.parquet"
else
echo "ERROR: Output file $OUTPUT_FILE not found. Skipping S3 upload."
exit 1
fi
else
echo "COLLECTION_DATASET_BUCKET_NAME not set. Skipping S3 upload."
fi

echo "Performance build complete"
2 changes: 1 addition & 1 deletion task/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
-e git+https://github.com/digital-land/pipeline.git@main#egg=digital-land
-e git+https://github.com/digital-land/pipeline.git@provision-quality-dataset#egg=digital-land

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to change this