-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (26 loc) · 813 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
setup:
pip install virtualenv && \
virtualenv ~/.venv && \
. ~/.venv/bin/activate
install:
pip install --upgrade pip && \
pip install -r requirements.txt \
chmod +x ./terraform_setup.sh \
./terraform_setup.sh
stream_tweets:
python main.py \
--bearer_token=${TWITTER_BEARER_TOKEN} \
--stream_rule="Elon Musk" \
--project_id=${GCP_PROJECT_ID} \
--topic=${PUBSUB_TOPIC}
process_tweets:
python process_tweets.py \
--project=${GCP_PROJECT_ID} \
--region=${GCP_REGION} \
--staging_location=${GCP_STAGING_BUCKET} \
--temp_location=${GCP_TEMP_BUCKET} \
--runner=${BEAM_RUNNER} \
--aggregate_table=${BIGQUERY_AGGREGATE_TABLE} \
--raw_table=${BIGQUERY_RAW_TABLE} \
--input_topic=${PUBSUB_TOPIC} \
--dead_letter_bucket=${DEAD_LETTER_BUCKET}