Skip to content

Commit

Permalink
Updated makerules 2024-10-05
Browse files Browse the repository at this point in the history
  • Loading branch information
digital-land-bot committed Oct 5, 2024
1 parent d73e28d commit 26c0701
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion makerules/pipeline.mk
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ PIPELINE_CONFIG_FILES=\
endif

define run-pipeline
mkdir -p $(@D) $(ISSUE_DIR)$(notdir $(@D)) $(OPERATIONAL_ISSUE_DIR) $(COLUMN_FIELD_DIR)$(notdir $(@D)) $(DATASET_RESOURCE_DIR)$(notdir $(@D)) $(CONVERTED_RESOURCE_DIR)$(notdir $(@D))
digital-land ${DIGITAL_LAND_OPTS} --dataset $(notdir $(@D)) --pipeline-dir $(PIPELINE_DIR) $(DIGITAL_LAND_FLAGS) pipeline $(1) --issue-dir $(ISSUE_DIR)$(notdir $(@D)) --column-field-dir $(COLUMN_FIELD_DIR)$(notdir $(@D)) --dataset-resource-dir $(DATASET_RESOURCE_DIR)$(notdir $(@D)) --converted-resource-dir $(CONVERTED_RESOURCE_DIR)$(notdir $(@D)) --config-path $(CACHE_DIR)config.sqlite3 --organisation-path $(CACHE_DIR)organisation.csv $(PIPELINE_FLAGS) $< $@
endef

Expand Down Expand Up @@ -178,6 +177,7 @@ init:: $(CACHE_DIR)organisation.csv
echo "File not found at $$url"; \
fi; \
done
mkdir -p $(@D) $(ISSUE_DIR)$(notdir $(@D)) $(OPERATIONAL_ISSUE_DIR) $(COLUMN_FIELD_DIR)$(notdir $(@D)) $(DATASET_RESOURCE_DIR)$(notdir $(@D)) $(CONVERTED_RESOURCE_DIR)$(notdir $(@D))

makerules::
curl -qfsL '$(MAKERULES_URL)pipeline.mk' > makerules/pipeline.mk
Expand All @@ -190,6 +190,7 @@ save-transformed::
aws s3 sync $(CONVERTED_RESOURCE_DIR) s3://$(COLLECTION_DATASET_BUCKET_NAME)/$(REPOSITORY)/$(CONVERTED_RESOURCE_DIR) --no-progress

save-dataset::
@mkdir -p $(DATASET_DIR)
aws s3 sync $(DATASET_DIR) s3://$(COLLECTION_DATASET_BUCKET_NAME)/$(REPOSITORY)/$(DATASET_DIR) --no-progress
@mkdir -p $(FLATTENED_DIR)
ifeq ($(HOISTED_COLLECTION_DATASET_BUCKET_NAME),digital-land-$(ENVIRONMENT)-collection-dataset-hoisted)
Expand All @@ -203,6 +204,7 @@ save-expectations::
aws s3 sync $(EXPECTATION_DIR) s3://$(COLLECTION_DATASET_BUCKET_NAME)/$(EXPECTATION_DIR) --exclude "*" --include "*.csv" --no-progress

save-performance::
@mkdir -p $(PERFORMANCE_DIR)
aws s3 sync $(PERFORMANCE_DIR) s3://$(COLLECTION_DATASET_BUCKET_NAME)/$(PERFORMANCE_DIR) --no-progress

# convert an individual resource
Expand Down

0 comments on commit 26c0701

Please sign in to comment.