Skip to content

Commit

Permalink
🧑‍💻 Expand Tilt ignore patterns
Browse files Browse the repository at this point in the history
* Updating code should only update the affected resource
  * e.g: Modifying `endorser/main.py` should not cause `tenant-web` to roll
  • Loading branch information
rblaine95 committed Feb 10, 2025
1 parent bb8ae61 commit b88b2de
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
!app/
!shared/
!endorser/
!scripts/
!trustregistry/
!waypoint/
!scripts/
!configuration/
!LICENSE

**/__pycache__/
58 changes: 57 additions & 1 deletion tilt/acapy-cloud/Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def build_cloudapi_service(service, image={}):
deps=["./"],
live_update=image.get("live_update", []),
skips_local_docker=True,
ignore=["**/__pycache__/**", "**/tests/**"],
ignore=["**/tests/**"] + image.get("ignore", []),
)
return [registry + "/" + service]

Expand Down Expand Up @@ -422,6 +422,12 @@ def setup_cloudapi(build_enabled, expose):
],
enabled=build_enabled,
),
"ignore": [
"app/**",
"scripts/**",
"trustregistry/**",
"waypoint/**",
],
},
},
"governance-agent": {
Expand All @@ -434,6 +440,13 @@ def setup_cloudapi(build_enabled, expose):
],
"image": {
"dockerfile": "./dockerfiles/agents/Dockerfile.agent",
"ignore": [
"app/**",
"endorser/**",
"shared/**",
"trustregistry/**",
"waypoint/**",
],
},
},
"governance-web": {
Expand All @@ -457,6 +470,12 @@ def setup_cloudapi(build_enabled, expose):
],
enabled=build_enabled,
),
"ignore": [
"endorser/**",
"scripts/**",
"trustregistry/**",
"waypoint/**",
],
},
},
"multitenant-agent": {
Expand All @@ -469,6 +488,13 @@ def setup_cloudapi(build_enabled, expose):
],
"image": {
"dockerfile": "./dockerfiles/agents/Dockerfile.author.agent",
"ignore": [
"app/**",
"endorser/**",
"shared/**",
"trustregistry/**",
"waypoint/**",
],
},
},
"multitenant-web": {
Expand All @@ -492,6 +518,12 @@ def setup_cloudapi(build_enabled, expose):
],
enabled=build_enabled,
),
"ignore": [
"endorser/**",
"scripts/**",
"trustregistry/**",
"waypoint/**",
],
},
},
"tenant-web": {
Expand All @@ -511,6 +543,12 @@ def setup_cloudapi(build_enabled, expose):
],
enabled=build_enabled,
),
"ignore": [
"endorser/**",
"scripts/**",
"trustregistry/**",
"waypoint/**",
],
},
},
"public-web": {
Expand All @@ -530,6 +568,12 @@ def setup_cloudapi(build_enabled, expose):
],
enabled=build_enabled,
),
"ignore": [
"endorser/**",
"scripts/**",
"trustregistry/**",
"waypoint/**",
],
},
},
"trust-registry": {
Expand All @@ -552,6 +596,12 @@ def setup_cloudapi(build_enabled, expose):
],
enabled=build_enabled,
),
"ignore": [
"app/**",
"endorser/**",
"scripts/**",
"waypoint/**",
],
},
},
"waypoint": {
Expand All @@ -568,6 +618,12 @@ def setup_cloudapi(build_enabled, expose):
],
enabled=build_enabled,
),
"ignore": [
"app/**",
"endorser/**",
"scripts/**",
"trustregistry/**",
],
},
},
"ledger-browser": {
Expand Down

0 comments on commit b88b2de

Please sign in to comment.