Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
fix "make seed"
  • Loading branch information
jychen7 committed Apr 2, 2022
1 parent 63e7e12 commit 27df71b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ bigtable:
docker run --rm --network=bigtable --name bigtable -d -p 8086:8086 -v $(CURDIR)/script:/opt/script gcr.io/google.com/cloudsdktool/cloud-sdk gcloud beta emulators bigtable start --host-port=0.0.0.0:8086

seed:
# docker exec -e BIGTABLE_EMULATOR_HOST="localhost:8086" bigtable /opt/script/create_table.sh
docker exec -e BIGTABLE_EMULATOR_HOST="localhost:8086" bigtable /opt/script/create_table.sh
# docker run --rm --network=bigtable -e BIGTABLE_EMULATOR_HOST="bigtable:8086" -v $(CURDIR)/script:/opt/script python:3.9 /bin/bash -c "pip install google-cloud-bigtable==2.4.0 && python /opt/script/insert_rows.py"
# docker run --rm -e BIGTABLE_EMULATOR_HOST="host.docker.internal:8086" -v $(CURDIR)/script:/opt/script python:3.9 /bin/bash -c "pip install google-cloud-bigtable==2.4.0 && python /opt/script/insert_rows.py"
pip install google-cloud-bigtable==2.4.0 && BIGTABLE_EMULATOR_HOST="localhost:8086" python ./script/insert_rows.py
Expand Down

0 comments on commit 27df71b

Please sign in to comment.