Skip to content

Commit 1ae6f79

Browse files
committed
update cubestore Dockerfile
1 parent a1ee835 commit 1ae6f79

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ jobs:
552552
- name: Push to Docker Hub
553553
uses: docker/build-push-action@v6
554554
with:
555-
context: ./rust/cubestore/
555+
context: ./rust/
556556
file: ./rust/cubestore/Dockerfile
557557
platforms: ${{ matrix.platforms }}
558558
build-args: ${{ matrix.build-args }}

.github/workflows/rust-cubestore.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
9999
- name: Build only
100100
uses: docker/build-push-action@v6
101101
with:
102-
context: ./rust/cubestore/
102+
context: ./rust/
103103
file: ./rust/cubestore/Dockerfile
104104
platforms: ${{ matrix.platforms }}
105105
build-args: ${{ matrix.build-args }}

rust/cubestore/Dockerfile

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
FROM cubejs/rust-builder:bookworm-llvm-18 AS builder
22

33
WORKDIR /build/cubestore
4-
COPY Cargo.toml .
5-
COPY Cargo.lock .
6-
COPY cuberockstore cuberockstore
7-
COPY cubehll cubehll
8-
COPY cubezetasketch cubezetasketch
9-
COPY cubedatasketches cubedatasketches
10-
COPY cuberpc cuberpc
11-
COPY cubestore-sql-tests cubestore-sql-tests
12-
COPY cubestore/Cargo.toml cubestore/Cargo.toml
4+
5+
COPY cubeshared /build/cubeshared
6+
7+
COPY cubestore/Cargo.toml .
8+
COPY cubestore/Cargo.lock .
9+
COPY cubestore/cuberockstore cuberockstore
10+
COPY cubestore/cubehll cubehll
11+
COPY cubestore/cubezetasketch cubezetasketch
12+
COPY cubestore/cubedatasketches cubedatasketches
13+
COPY cubestore/cuberpc cuberpc
14+
COPY cubestore/cubestore-sql-tests cubestore-sql-tests
15+
COPY cubestore/cubestore/Cargo.toml cubestore/Cargo.toml
1316
RUN mkdir -p cubestore/src/bin && \
1417
echo "fn main() {print!(\"Dummy main\");} // dummy file" > cubestore/src/bin/cubestored.rs
1518

@@ -18,8 +21,8 @@ RUN [ "$WITH_AVX2" -eq "1" ] && export RUSTFLAGS="-C target-feature=+avx2"; \
1821
cargo build --release -p cubestore
1922

2023
# Cube Store get version from his own package
21-
COPY package.json package.json
22-
COPY cubestore cubestore
24+
COPY cubestore/package.json package.json
25+
COPY cubestore/cubestore cubestore
2326
RUN [ "$WITH_AVX2" -eq "1" ] && export RUSTFLAGS="-C target-feature=+avx2"; \
2427
cargo build --release -p cubestore
2528

0 commit comments

Comments
 (0)