-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
EkaterinaPonomareva2000
committed
Nov 12, 2023
1 parent
eb0b234
commit ef684a1
Showing
29 changed files
with
2,268 additions
and
2,254 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,53 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile | ||
{ | ||
"name": "Existing Dockerfile", | ||
"build": { | ||
// Sets the run context to one level up instead of the .devcontainer folder. | ||
// "context": "." | ||
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename. | ||
"dockerfile": "../Dockerfile" | ||
}, | ||
|
||
// Features to add to the dev container. More info: https://containers.dev/features. | ||
// "features": {}, | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
"forwardPorts": [ | ||
8080 | ||
], | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"innoverio.vscode-dbt-power-user", | ||
"ms-python.python", | ||
"eamodio.gitlens", | ||
"GitHub.vscode-pull-request-github", | ||
"nemesv.copy-file-name" | ||
] | ||
} | ||
}, | ||
"features": { | ||
"ghcr.io/devcontainers/features/common-utils:2": { | ||
"installZsh": true, | ||
"configureZshAsDefaultShell": true, | ||
"installOhMyZsh": true, | ||
"upgradePackages": true, | ||
"username": "automatic", | ||
"userUid": "automatic", | ||
"userGid": "automatic" | ||
}, | ||
"ghcr.io/stuartleeks/dev-container-features/shell-history:0": {} | ||
}, | ||
|
||
"runArgs": ["--env-file",".env", "--network=mybi-dbt-showcase_default"] | ||
|
||
// Uncomment the next line to run commands after the container is created. | ||
// "postCreateCommand": "cat /etc/os-release", | ||
|
||
// Configure tool-specific properties. | ||
// "customizations": {}, | ||
|
||
// Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "devcontainer" | ||
} | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile | ||
{ | ||
"name": "Existing Docker Compose (Extend)", | ||
"build": { | ||
// Sets the run context to one level up instead of the .devcontainer folder. | ||
// "context": "." | ||
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename. | ||
"dockerfile": "../Dockerfile" | ||
}, | ||
|
||
// Features to add to the dev container. More info: https://containers.dev/features. | ||
// "features": {}, | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
"forwardPorts": [ | ||
8080 | ||
], | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"innoverio.vscode-dbt-power-user", | ||
"ms-python.python", | ||
"eamodio.gitlens", | ||
"GitHub.vscode-pull-request-github", | ||
"nemesv.copy-file-name" | ||
] | ||
} | ||
}, | ||
"features": { | ||
"ghcr.io/devcontainers/features/common-utils:2": { | ||
"installZsh": true, | ||
"configureZshAsDefaultShell": true, | ||
"installOhMyZsh": true, | ||
"upgradePackages": true, | ||
"username": "automatic", | ||
"userUid": "automatic", | ||
"userGid": "automatic" | ||
}, | ||
"ghcr.io/stuartleeks/dev-container-features/shell-history:0": {} | ||
}, | ||
|
||
"runArgs": ["--env-file",".env", "--network=mybi-dbt-showcase_default"] | ||
|
||
// Uncomment the next line to run commands after the container is created. | ||
// "postCreateCommand": "cat /etc/os-release", | ||
|
||
// Configure tool-specific properties. | ||
// "customizations": {}, | ||
|
||
// Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "devcontainer" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
CUBEJS_DEV_MODE=true | ||
|
||
CUBEJS_DB_TYPE=clickhouse | ||
CUBEJS_DB_HOST=clickhouse | ||
CUBEJS_DB_PORT=8123 | ||
CUBEJS_DB_NAME=analytics | ||
CUBEJS_DB_USER=default | ||
CUBEJS_DB_PASS= | ||
|
||
CUBEJS_DB_SSL=false | ||
CUBEJS_DEV_MODE=true | ||
|
||
CUBEJS_DB_TYPE=clickhouse | ||
CUBEJS_DB_HOST=clickhouse | ||
CUBEJS_DB_PORT=8123 | ||
CUBEJS_DB_NAME=analytics | ||
CUBEJS_DB_USER=default | ||
CUBEJS_DB_PASS= | ||
|
||
CUBEJS_DB_SSL=false | ||
# NODE_TLS_REJECT_UNAUTHORIZED=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,49 @@ | ||
name: Continuous Integration Tests | ||
|
||
on: | ||
pull_request: | ||
branches: [ main ] | ||
concurrency: | ||
group: ${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
ci: | ||
name: Continuous Integration Tests | ||
timeout-minutes: 30 | ||
services: | ||
clickhouse: | ||
image: clickhouse/clickhouse-server:22.3 | ||
ports: | ||
- 9000:9000 | ||
- 8123:8123 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: wait for services to start up | ||
run: sleep 10 | ||
- name: dbt version | ||
uses: kzzzr/mybi-dbt-action@v4 | ||
with: | ||
command: dbt --version | ||
- name: dbt debug | ||
uses: kzzzr/mybi-dbt-action@v4 | ||
with: | ||
command: dbt debug | ||
- name: dbt deps | ||
uses: kzzzr/mybi-dbt-action@v4 | ||
with: | ||
command: dbt deps | ||
- name: dbt init_source_data | ||
uses: kzzzr/mybi-dbt-action@v4 | ||
with: | ||
command: dbt run-operation init_source_data | ||
- name: dbt build | ||
uses: kzzzr/mybi-dbt-action@v4 | ||
with: | ||
command: dbt build --full-refresh | ||
# - name: Setup tmate session | ||
# uses: mxschmitt/action-tmate@v3 | ||
# if: ${{ failure() }} | ||
# timeout-minutes: 30 | ||
name: Continuous Integration Tests | ||
|
||
on: | ||
pull_request: | ||
branches: [ main ] | ||
concurrency: | ||
group: ${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
ci: | ||
name: Continuous Integration Tests | ||
timeout-minutes: 30 | ||
services: | ||
clickhouse: | ||
image: clickhouse/clickhouse-server:22.3 | ||
ports: | ||
- 9000:9000 | ||
- 8123:8123 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: wait for services to start up | ||
run: sleep 10 | ||
- name: dbt version | ||
uses: kzzzr/mybi-dbt-action@v4 | ||
with: | ||
command: dbt --version | ||
- name: dbt debug | ||
uses: kzzzr/mybi-dbt-action@v4 | ||
with: | ||
command: dbt debug | ||
- name: dbt deps | ||
uses: kzzzr/mybi-dbt-action@v4 | ||
with: | ||
command: dbt deps | ||
- name: dbt init_source_data | ||
uses: kzzzr/mybi-dbt-action@v4 | ||
with: | ||
command: dbt run-operation init_source_data | ||
- name: dbt build | ||
uses: kzzzr/mybi-dbt-action@v4 | ||
with: | ||
command: dbt build --full-refresh | ||
# - name: Setup tmate session | ||
# uses: mxschmitt/action-tmate@v3 | ||
# if: ${{ failure() }} | ||
# timeout-minutes: 30 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,58 @@ | ||
name: Publish dbt Documentation on PR Closed | ||
|
||
|
||
# triggers for the workflow | ||
on: | ||
workflow_dispatch: | ||
# See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target | ||
pull_request_target: | ||
types: | ||
- closed | ||
branches: | ||
- main | ||
|
||
|
||
jobs: | ||
generate-dbt-docs: | ||
name: Generate dbt docs | ||
runs-on: ubuntu-latest | ||
services: | ||
clickhouse: | ||
image: clickhouse/clickhouse-server:22.3 | ||
ports: | ||
- 9000:9000 | ||
- 8123:8123 | ||
|
||
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment | ||
permissions: | ||
pages: write # to deploy to Pages | ||
id-token: write # to verify the deployment originates from an appropriate source | ||
|
||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: dbt debug | ||
uses: kzzzr/mybi-dbt-action@v4 | ||
with: | ||
command: dbt debug | ||
- name: dbt deps | ||
uses: kzzzr/mybi-dbt-action@v4 | ||
with: | ||
command: dbt deps | ||
- name: dbt docs | ||
uses: kzzzr/mybi-dbt-action@v4 | ||
with: | ||
command: dbt docs generate | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v2 | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v1 | ||
with: | ||
path: 'target' | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v1 | ||
|
||
name: Publish dbt Documentation on PR Closed | ||
|
||
|
||
# triggers for the workflow | ||
on: | ||
workflow_dispatch: | ||
# See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target | ||
pull_request_target: | ||
types: | ||
- closed | ||
branches: | ||
- main | ||
|
||
|
||
jobs: | ||
generate-dbt-docs: | ||
name: Generate dbt docs | ||
runs-on: ubuntu-latest | ||
services: | ||
clickhouse: | ||
image: clickhouse/clickhouse-server:22.3 | ||
ports: | ||
- 9000:9000 | ||
- 8123:8123 | ||
|
||
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment | ||
permissions: | ||
pages: write # to deploy to Pages | ||
id-token: write # to verify the deployment originates from an appropriate source | ||
|
||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: dbt debug | ||
uses: kzzzr/mybi-dbt-action@v4 | ||
with: | ||
command: dbt debug | ||
- name: dbt deps | ||
uses: kzzzr/mybi-dbt-action@v4 | ||
with: | ||
command: dbt deps | ||
- name: dbt docs | ||
uses: kzzzr/mybi-dbt-action@v4 | ||
with: | ||
command: dbt docs generate | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v2 | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v1 | ||
with: | ||
path: 'target' | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
|
||
target/ | ||
dbt_packages/ | ||
logs/ | ||
|
||
/metabase/plugins/* | ||
!clickhouse.metabase-driver.jar | ||
|
||
.DS_Store | ||
|
||
|
||
target/ | ||
dbt_packages/ | ||
logs/ | ||
|
||
/metabase/plugins/* | ||
!clickhouse.metabase-driver.jar | ||
|
||
.DS_Store | ||
|
||
.cubestore/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
ARG DBT_VERSION=1.0.0 | ||
FROM fishtownanalytics/dbt:${DBT_VERSION} | ||
|
||
RUN set -ex \ | ||
&& python -m pip install --upgrade pip setuptools \ | ||
&& python -m pip install --upgrade dbt-clickhouse numpy | ||
|
||
WORKDIR /usr/app/ | ||
ENV DBT_PROFILES_DIR=. | ||
|
||
ENTRYPOINT ["tail", "-f", "/dev/null"] | ||
ARG DBT_VERSION=1.0.0 | ||
FROM fishtownanalytics/dbt:${DBT_VERSION} | ||
|
||
RUN set -ex \ | ||
&& python -m pip install --upgrade pip setuptools \ | ||
&& python -m pip install --upgrade dbt-clickhouse numpy | ||
|
||
WORKDIR /usr/app/ | ||
ENV DBT_PROFILES_DIR=. | ||
|
||
ENTRYPOINT ["tail", "-f", "/dev/null"] |
Oops, something went wrong.