Skip to content

Commit 2b0288b

Browse files
committed
fix: docker
1 parent c7e7f0d commit 2b0288b

File tree

5 files changed

+136
-17
lines changed

5 files changed

+136
-17
lines changed

.dockerignore

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Build artifacts
2+
target/
3+
**/target/
4+
5+
# Benchmark data and large test files
6+
src/rust/fcb_core/benchmark_data/
7+
src/rust/fcb_core/benchmark_results*
8+
src/rust/fcb_core/comparison_*
9+
src/rust/fcb_core/http_benchmark_results.csv
10+
src/rust/temp/
11+
12+
# Large data files
13+
**/*.fcb
14+
**/*.bson
15+
**/*.cbor
16+
**/*.json
17+
**/*.jsonl
18+
19+
# Keep only essential json files (exclude data files but keep config)
20+
!Cargo.toml
21+
!package.json
22+
!**/Cargo.toml
23+
!src/rust/fcb_api/schema/*.yaml
24+
!src/rust/fcb_core/tests/data/header.json
25+
26+
# Documentation and examples
27+
docs/
28+
examples/
29+
README.md
30+
*.md
31+
!CLAUDE.md
32+
33+
# Git and development files
34+
.git/
35+
.github/
36+
.gitignore
37+
*.log
38+
*.svg
39+
40+
# Python and other language artifacts
41+
src/py/
42+
src/ts/node_modules/
43+
**/__pycache__/
44+
*.pyc
45+
46+
# IDE and editor files
47+
.vscode/
48+
.idea/
49+
*.swp
50+
*.swo
51+
52+
# OS files
53+
.DS_Store
54+
Thumbs.db
55+
56+
# Temporary files
57+
temp/
58+
**/temp/
59+
*.tmp

.github/workflows/deploy-api.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ jobs:
2828
contents: read
2929
packages: write
3030
id-token: write
31-
defaults:
32-
run:
33-
working-directory: src/rust
31+
# defaults:
32+
# run:
33+
# working-directory: src/rust
3434

3535
steps:
3636
- name: Checkout repository
@@ -60,8 +60,8 @@ jobs:
6060
- name: Build and push Docker image
6161
uses: docker/build-push-action@v5
6262
with:
63-
context: .
64-
file: ./Dockerfile
63+
context: ./src/rust
64+
file: ./src/rust/Dockerfile
6565
push: true
6666
tags: ${{ steps.meta.outputs.tags }}
6767
labels: ${{ steps.meta.outputs.labels }}

src/rust/.dockerignore

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# FCB data files
2+
*.fcb
3+
4+
# JSON files
5+
*.json
6+
*.jsonl
7+
8+
# Binary data formats
9+
*.cbor
10+
*.bson
11+
12+
# Build artifacts
13+
target/
14+
**/target/
15+
16+
# Benchmark data and large test files
17+
src/rust/fcb_core/benchmark_data/
18+
src/rust/fcb_core/benchmark_results*
19+
src/rust/fcb_core/comparison_*
20+
src/rust/fcb_core/http_benchmark_results.csv
21+
src/rust/temp/
22+
23+
# Large data files
24+
**/*.fcb
25+
**/*.bson
26+
**/*.cbor
27+
**/*.json
28+
**/*.jsonl
29+
30+
# Keep only essential json files (exclude data files but keep config)
31+
!Cargo.toml
32+
!package.json
33+
!**/Cargo.toml
34+
!src/rust/fcb_api/schema/*.yaml
35+
!src/rust/fcb_core/tests/data/header.json
36+
37+
# Documentation and examples
38+
docs/
39+
examples/
40+
README.md
41+
*.md
42+
!CLAUDE.md
43+
44+
# Git and development files
45+
.git/
46+
.github/
47+
.gitignore
48+
*.log
49+
*.svg
50+
51+
# Python and other language artifacts
52+
src/py/
53+
src/ts/node_modules/
54+
**/__pycache__/
55+
*.pyc
56+
57+
# IDE and editor files
58+
.vscode/
59+
.idea/
60+
*.swp
61+
*.swo
62+
63+
# OS files
64+
.DS_Store
65+
Thumbs.db
66+
67+
# Temporary files
68+
temp/
69+
**/temp/
70+
*.tmp

src/rust/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ WORKDIR /app
1212
RUN echo "=== Build context contents ===" && find . -type f -name "*.toml" -o -name "*.rs" | head -20
1313

1414
# Copy workspace files from src/rust directory
15-
COPY Cargo.toml ./
15+
COPY Cargo.toml Cargo.lock ./
1616
COPY . .
1717

1818
# COPY . .
19-
RUN ls -la src/rust
19+
RUN ls -la
2020

2121
WORKDIR /app/src/rust
2222

src/rust/dockerignore

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)