modify community resources to match other flipside repos

This commit is contained in:
Desmond Hui 2022-10-17 16:34:18 -07:00
parent fd5f648aa6
commit 46fa4de849
5 changed files with 14 additions and 22 deletions

View File

@ -1,8 +1,8 @@
SF_ACCOUNT=zsniary-metricsdao
SF_USERNAME=<your_metrics_dao_snowflake_username>
SF_PASSWORD=<your_metrics_dao_snowflake_password>
SF_ACCOUNT=vna27887.us-east-1
SF_USERNAME=<YOUR SNOWFLAKE USERNAME>
SF_PASSWORD=<YOUR SNOWFLAKE PASSWORD>
SF_REGION=us-east-1
SF_DATABASE=NEAR_DEV
SF_WAREHOUSE=DEFAULT
SF_ROLE=PUBLIC
SF_DATABASE=NEAR_COMMUNITY_DEV
SF_WAREHOUSE=FLIPSIDE_COMMUNITY_CURATOR
SF_ROLE=FLIPSIDE_COMMUNITY_CURATOR
SF_SCHEMA=SILVER

View File

@ -3,7 +3,4 @@ SHELL := /bin/bash
dbt-console:
docker-compose run dbt_console
dbt-docs:
docker-compose run --service-ports dbt_docs
.PHONY: dbt-console

View File

@ -7,15 +7,3 @@ services:
- .:/near
env_file:
- .env
dbt_docs:
build: .
volumes:
- .:/near
ports:
- 8080:8080
expose:
- 8080
command: "dbt_docs.sh"
env_file:
- .env

View File

@ -0,0 +1,7 @@
{% macro run_sp_create_prod_community_clone() %}
{% set clone_query %}
call near._internal.create_prod_clone('near', 'near_community_dev', 'flipside_community_curator');
{% endset %}
{% do run_query(clone_query) %}
{% endmacro %}

View File

@ -14,6 +14,6 @@ near:
warehouse: "{{ env_var('SF_WAREHOUSE') }}"
threads: 4
client_session_keep_alive: False
query_tag: near
query_tag: near_curator
config:
send_anonymous_usage_stats: False