forked from kmesh-net/orion
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.dockerignore
More file actions
159 lines (137 loc) · 3.14 KB
/
.dockerignore
File metadata and controls
159 lines (137 loc) · 3.14 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
# .dockerignore for Orion (Rust project)
# Purpose: reduce Docker build context, avoid copying local dev artifacts,
# and keep images smaller/faster to build.
# -------------------------
# Version control
# -------------------------
.git
.gitattributes
# (keep .gitignore tracked — no need to ignore it)
# -------------------------
# Rust build artifacts
# -------------------------
target/
**/target/
# Cargo registry and cache
.cargo/
.cargo-ok
# -------------------------
# Editor / IDE files
# -------------------------
.vscode/
.idea/
*.swp
*.swo
*~
.*.swp
.~*
# -------------------------
# OS artifacts
# -------------------------
.DS_Store
Thumbs.db
desktop.ini
ehthumbs.db
# -------------------------
# Logs and envs
# -------------------------
*.log
logs/
.env
.env.local
.env.*.local
# -------------------------
# Temp and cache
# -------------------------
tmp/
temp/
*.tmp
.cache/
# -------------------------
# Compiled binaries & libs
# -------------------------
*.exe
*.dll
*.so
*.dylib
# -------------------------
# Archives & large files
# -------------------------
*.tar.gz
*.zip
*.rar
# *.csv # Uncomment if you have large CSV data files you want to exclude from the build context.
*.bak
*.backup
# -------------------------
# Node / frontend artifacts (if any)
# -------------------------
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# -------------------------
# Python virtual envs
# -------------------------
venv/
env/
.venv/
# -------------------------
# Toolchain / formatters (not needed inside image)
# -------------------------
rust-toolchain
rust-toolchain.toml
clippy.toml
rustfmt.toml
# -------------------------
# Examples, demos, tests (prod images typically don't need these)
# -------------------------
examples/
demos/
benches/
**/benches/
# Exclude tests but keep some bootstrap files used in CI/runtime
tests/
**/tests/
!orion-data-plane-api/tests/bootstrap*.yml
# Docs and performance artifacts
docs/_build/
docs/build/
docs/pics/
docs/videos/
docs/performance/
# Coverage / profiling
coverage/
*.profraw
*.prof
# PlantUML
*.plantuml
# Config examples to exclude
orion-configuration/examples/
orion-xds/examples/
# Keep essential repo/build files (whitelist)
!README.md
!LICENSE
!Cargo.toml
!Cargo.lock
# -------------------------
# NOTE about Dockerfile / docker/ directory
# -------------------------
# DO NOT uncomment these lines unless you are absolutely sure your
# normal build never needs the repository-level Dockerfile or contents
# of the docker/ directory. Ignoring them will break common `docker build .`
# workflows. If your build always runs from inside docker/, you may
# choose to uncomment.
# docker/
# Dockerfile*
# If you DO need specific scripts from docker/, explicitly ignore other files
# instead of the whole directory (or ensure you build using -f docker/Dockerfile).
# -------------------------
# Shell scripts
# -------------------------
# Be cautious: ignore generic *.sh only if you are certain no build scripts are required.
# Commented out by default to avoid excluding build helpers.
# *.sh
# If you want to exclude local helper scripts, list them explicitly, e.g.
# scripts/local-only.sh
!docker/*.sh