mirror of
https://github.com/FlipsideCrypto/arbitrum-models.git
synced 2026-02-06 09:26:45 +00:00
community curation setup (#30)
This commit is contained in:
parent
8012421e14
commit
1b6b48686d
8
.env.sample
Normal file
8
.env.sample
Normal file
@ -0,0 +1,8 @@
|
||||
ACCOUNT=vna27887.us-east-1
|
||||
USERNAME=<YOUR SNOWFLAKE USERNAME>
|
||||
PASSWORD=<YOUR SNOWFLAKE PASSWORD>
|
||||
REGION=us-east-1
|
||||
DATABASE=ARBITRUM_COMMUNITY_DEV
|
||||
WAREHOUSE=FLIPSIDE_COMMUNITY_CURATOR
|
||||
ROLE=FLIPSIDE_COMMUNITY_CURATOR
|
||||
SCHEMA=SILVER
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@ -14,3 +14,4 @@ logs/
|
||||
.history/
|
||||
**/.DS_Store
|
||||
.vscode/
|
||||
.env
|
||||
9
Dockerfile
Normal file
9
Dockerfile
Normal file
@ -0,0 +1,9 @@
|
||||
FROM fishtownanalytics/dbt:1.2.0
|
||||
WORKDIR /support
|
||||
RUN mkdir /root/.dbt
|
||||
COPY profiles.yml /root/.dbt
|
||||
RUN mkdir /root/arbitrum
|
||||
WORKDIR /arbitrum
|
||||
COPY . .
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT [ "bash"]
|
||||
6
Makefile
Normal file
6
Makefile
Normal file
@ -0,0 +1,6 @@
|
||||
SHELL := /bin/bash
|
||||
|
||||
dbt-console:
|
||||
docker-compose run dbt_console
|
||||
|
||||
.PHONY: dbt-console
|
||||
9
docker-compose.yml
Normal file
9
docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
||||
version: "3.4"
|
||||
|
||||
services:
|
||||
dbt_console:
|
||||
build: .
|
||||
volumes:
|
||||
- .:/arbitrum
|
||||
env_file:
|
||||
- .env
|
||||
10
macros/run_sp_create_prod_community_clone.sql
Normal file
10
macros/run_sp_create_prod_community_clone.sql
Normal file
@ -0,0 +1,10 @@
|
||||
{% macro run_sp_create_prod_community_clone() %}
|
||||
{% set clone_query %}
|
||||
call arbitrum._internal.create_prod_clone(
|
||||
'arbitrum',
|
||||
'arbitrum_community_dev',
|
||||
'flipside_community_curator'
|
||||
);
|
||||
{% endset %}
|
||||
{% do run_query(clone_query) %}
|
||||
{% endmacro %}
|
||||
19
profiles.yml
Normal file
19
profiles.yml
Normal file
@ -0,0 +1,19 @@
|
||||
arbitrum:
|
||||
target: dev
|
||||
outputs:
|
||||
dev:
|
||||
type: snowflake
|
||||
account: "{{ env_var('ACCOUNT') }}"
|
||||
# User/password auth
|
||||
user: "{{ env_var('USERNAME') }}"
|
||||
password: "{{ env_var('PASSWORD') }}"
|
||||
role: "{{ env_var('ROLE') }}"
|
||||
schema: "{{ env_var('SCHEMA') }}"
|
||||
region: "{{ env_var('REGION') }}"
|
||||
database: "{{ env_var('DATABASE') }}"
|
||||
warehouse: "{{ env_var('WAREHOUSE') }}"
|
||||
threads: 4
|
||||
client_session_keep_alive: False
|
||||
query_tag: arbitrum_curator
|
||||
config:
|
||||
send_anonymous_usage_stats: False
|
||||
Loading…
Reference in New Issue
Block a user