Skip to content

Commit

Permalink
fix makefile env var syntax, use timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
ghukill committed Oct 13, 2023
1 parent 5f90021 commit c782c8c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 17 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ ECR_URL_DEV:=222053980223.dkr.ecr.us-east-1.amazonaws.com/browsertrix-harvester-
### End of Terraform-generated header ###
SHELL=/bin/bash
DATETIME:=$(shell date -u +%Y%m%dT%H%M%SZ)
CURRENT_DATE=$(date +"%Y-%m-%d")

### Dependency commands ###
install: # install python dependencies
Expand Down Expand Up @@ -67,13 +66,14 @@ run-harvest-local:

# Test Dev1 harvest
run-harvest-dev:
CRAWL_NAME=test-harvest-ecs-$CURRENT_DATE aws ecs run-task \
CRAWL_NAME=test-harvest-ecs-$(DATETIME); \
aws ecs run-task \
--cluster timdex-dev \
--task-definition timdex-browsertrixharvester-dev \
--launch-type="FARGATE" \
--region us-east-1 \
--network-configuration '{"awsvpcConfiguration": {"subnets": ["subnet-0488e4996ddc8365b","subnet-022e9ea19f5f93e65"], "securityGroups": ["sg-044033bf5f102c544"]}}' \
--overrides '{"containerOverrides": [ {"name":"browsertrix-harvester", "command": ["--verbose", "harvest", "--crawl-name", "'"$CRAWL_NAME"'", "--config-yaml-file", "/browsertrix-harvester/tests/fixtures/lib-website-homepage.yaml", "--metadata-output-file", "s3://timdex-extract-dev-222053980223/librarywebsite/'"$CRAWL_NAME"'.xml", "--wacz-output-file", "s3://timdex-extract-dev-222053980223/librarywebsite/'"$CRAWL_NAME"'.wacz", "--num-workers", "2"]}]}'
--overrides '{"containerOverrides": [ {"name":"browsertrix-harvester", "command": ["--verbose", "harvest", "--crawl-name", "'$$CRAWL_NAME'", "--config-yaml-file", "/browsertrix-harvester/tests/fixtures/lib-website-homepage.yaml", "--metadata-output-file", "s3://timdex-extract-dev-222053980223/librarywebsite/'$$CRAWL_NAME'.xml", "--wacz-output-file", "s3://timdex-extract-dev-222053980223/librarywebsite/'$$CRAWL_NAME'.wacz", "--num-workers", "2"]}]}'

# Test local URL content parsing
test-parse-url-content:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ make run-harvest-dev
```
* Set AWS credentials are required in calling context
* Kicks off an ECS Fargate task in Dev1
* WACZ file and metadata file are written to S3 at `timdex-extract-dev-222053980223/librarywebsite/test-harvest-ecs-$CURRENT_DATE.xml|wacz`
* WACZ file and metadata file are written to S3 at `timdex-extract-dev-222053980223/librarywebsite/test-harvest-ecs-<TIMESTAMP>.xml|wacz`

## CLI commands

Expand Down
13 changes: 0 additions & 13 deletions bin/test-harvest-ecs-dev1.sh

This file was deleted.

0 comments on commit c782c8c

Please sign in to comment.