-
Notifications
You must be signed in to change notification settings - Fork 47
/
Dockerfile
30 lines (24 loc) · 923 Bytes
/
Dockerfile
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
30
ARG DBT_VERSION=1.0.0
FROM fishtownanalytics/dbt:${DBT_VERSION}
# Install utils
RUN apt -y update \
&& apt -y upgrade \
&& apt -y install curl wget gpg unzip
# Install dbt adapter
RUN set -ex \
&& python -m pip install --upgrade pip setuptools \
&& python -m pip install --upgrade dbt-clickhouse
# Install yc CLI
RUN curl https://storage.yandexcloud.net/yandexcloud-yc/install.sh | \
bash -s -- -a
# Install Terraform
ARG TERRAFORM_VERSION=1.4.6
RUN curl -sL https://hashicorp-releases.yandexcloud.net/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip -o terraform.zip \
&& unzip terraform.zip \
&& install -o root -g root -m 0755 terraform /usr/local/bin/terraform \
&& rm -rf terraform terraform.zip
# Terraform configuration file
# ADD terraformrc root/.terraformrc
# RUN terraform init
# Set default directory for dbt profiles
ENV DBT_PROFILES_DIR=.