@@ -27,6 +27,8 @@ COPY yarn.lock .
2727COPY tsconfig.base.json .
2828COPY rollup.config.js .
2929COPY packages/cubejs-linter packages/cubejs-linter
30+
31+ # Backend
3032COPY rust/cubesql/package.json rust/cubesql/package.json
3133COPY rust/cubestore/package.json rust/cubestore/package.json
3234COPY rust/cubestore/bin rust/cubestore/bin
@@ -43,6 +45,7 @@ COPY packages/cubejs-clickhouse-driver/package.json packages/cubejs-clickhouse-d
4345COPY packages/cubejs-crate-driver/package.json packages/cubejs-crate-driver/package.json
4446COPY packages/cubejs-dremio-driver/package.json packages/cubejs-dremio-driver/package.json
4547COPY packages/cubejs-druid-driver/package.json packages/cubejs-druid-driver/package.json
48+ COPY packages/cubejs-duckdb-driver/package.json packages/cubejs-duckdb-driver/package.json
4649COPY packages/cubejs-elasticsearch-driver/package.json packages/cubejs-elasticsearch-driver/package.json
4750COPY packages/cubejs-firebolt-driver/package.json packages/cubejs-firebolt-driver/package.json
4851COPY packages/cubejs-hive-driver/package.json packages/cubejs-hive-driver/package.json
@@ -67,6 +70,7 @@ COPY packages/cubejs-sqlite-driver/package.json packages/cubejs-sqlite-driver/pa
6770COPY packages/cubejs-ksql-driver/package.json packages/cubejs-ksql-driver/package.json
6871COPY packages/cubejs-dbt-schema-extension/package.json packages/cubejs-dbt-schema-extension/package.json
6972COPY packages/cubejs-jdbc-driver/package.json packages/cubejs-jdbc-driver/package.json
73+ COPY packages/cubejs-vertica-driver/package.json packages/cubejs-vertica-driver/package.json
7074
7175# We dont need client libraries
7276# COPY packages/cubejs-templates/package.json packages/cubejs-templates/package.json
@@ -84,28 +88,24 @@ RUN yarn config set network-timeout 120000 -g
8488# #####################################################################
8589# Databricks driver dependencies #
8690# #####################################################################
87- FROM base AS prod_base_dependencies
91+ FROM base as prod_base_dependencies
8892COPY packages/cubejs-databricks-jdbc-driver/package.json packages/cubejs-databricks-jdbc-driver/package.json
8993RUN mkdir packages/cubejs-databricks-jdbc-driver/bin
9094RUN echo '#!/usr/bin/env node' > packages/cubejs-databricks-jdbc-driver/bin/post-install
9195RUN yarn install --prod
9296
93- FROM prod_base_dependencies AS prod_dependencies
97+ FROM prod_base_dependencies as prod_dependencies
9498COPY packages/cubejs-databricks-jdbc-driver/bin packages/cubejs-databricks-jdbc-driver/bin
9599RUN yarn install --prod --ignore-scripts
96100
97101# #####################################################################
98102# Build dependencies #
99103# #####################################################################
100- FROM base AS build_dependencies
104+ FROM base AS build
101105
102106RUN yarn install
103107
104- # #####################################################################
105- # Build layer #
106- # #####################################################################
107- FROM build_dependencies AS build
108-
108+ # Backend
109109COPY rust/cubestore/ rust/cubestore/
110110COPY rust/cubesql/ rust/cubesql/
111111COPY packages/cubejs-backend-shared/ packages/cubejs-backend-shared/
@@ -121,6 +121,7 @@ COPY packages/cubejs-clickhouse-driver/ packages/cubejs-clickhouse-driver/
121121COPY packages/cubejs-crate-driver/ packages/cubejs-crate-driver/
122122COPY packages/cubejs-dremio-driver/ packages/cubejs-dremio-driver/
123123COPY packages/cubejs-druid-driver/ packages/cubejs-druid-driver/
124+ COPY packages/cubejs-duckdb-driver/ packages/cubejs-duckdb-driver/
124125COPY packages/cubejs-elasticsearch-driver/ packages/cubejs-elasticsearch-driver/
125126COPY packages/cubejs-firebolt-driver/ packages/cubejs-firebolt-driver/
126127COPY packages/cubejs-hive-driver/ packages/cubejs-hive-driver/
@@ -146,6 +147,7 @@ COPY packages/cubejs-ksql-driver/ packages/cubejs-ksql-driver/
146147COPY packages/cubejs-dbt-schema-extension/ packages/cubejs-dbt-schema-extension/
147148COPY packages/cubejs-jdbc-driver/ packages/cubejs-jdbc-driver/
148149COPY packages/cubejs-databricks-jdbc-driver/ packages/cubejs-databricks-jdbc-driver/
150+ COPY packages/cubejs-vertica-driver/ packages/cubejs-vertica-driver/
149151
150152# We dont need client libraries
151153# COPY packages/cubejs-templates/ packages/cubejs-templates/
@@ -158,7 +160,8 @@ COPY packages/cubejs-databricks-jdbc-driver/ packages/cubejs-databricks-jdbc-dri
158160# COPY packages/cubejs-playground/ packages/cubejs-playground/
159161
160162# As we don't need any UI to test drivers, it's enough to transpile ts only.
161- RUN yarn lerna run tsc
163+ RUN yarn lerna run build
164+
162165RUN find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +
163166
164167# #####################################################################
@@ -177,7 +180,7 @@ COPY --from=prod_dependencies /cubejs .
177180COPY packages/cubejs-docker/bin/cubejs-dev /usr/local/bin/cubejs
178181
179182# By default Node dont search in parent directory from /cube/conf, @todo Reaserch a little bit more
180- ENV NODE_PATH= /cube/conf/node_modules:/cube/node_modules
183+ ENV NODE_PATH /cube/conf/node_modules:/cube/node_modules
181184RUN ln -s /cubejs/packages/cubejs-docker /cube
182185RUN ln -s /cubejs/rust/cubestore/bin/cubestore-dev /usr/local/bin/cubestore-dev
183186
0 commit comments