Skip to content

Commit

Permalink
Docker speedup (totallylegitco#136)
Browse files Browse the repository at this point in the history
* Attempt to set up better docker ignore for faster builds.

* Bump version
  • Loading branch information
holdenk authored Nov 28, 2024
1 parent 7798d82 commit 1d32eb7
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
11 changes: 10 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,13 @@ archived_logs/
latest_logs/
hlyafax.tar
combined.tar
a.tr
a.tr

# Exclude the root static
./fighthealthinsurance/static/
# Exclude node modules that are not the scan module which does delayed loading
./static/js/node_modules
!./static/js/node_modules/tesseract.js-core/tesseract-core.wasm
!./static/js/node_modules/tesseract.js-core/tesseract-core.wasm.js
!./static/js/node_modules/tesseract.js/dist/worker.min.js
!./static/js/node_modules/tesseract.js/dist/worker.min.js.map
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ mypy -p fighthealthinsurance
./manage.py collectstatic --no-input

pushd ./static/js; npm i; npm run build; popd
FHI_VERSION=v0.9.3a
FHI_VERSION=v0.9.3b
export FHI_VERSION
# Build ray cluster first so that the cluster can come up before the job that registers the workers
source build_ray.sh
Expand Down
4 changes: 2 additions & 2 deletions cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
spec:
affinity: {}
containers:
- image: holdenk/fhi-ray:v0.9.3a
- image: holdenk/fhi-ray:v0.9.3b
env:
- name: RAY_gcs_server_request_timeout_seconds
value: "20"
Expand Down Expand Up @@ -66,7 +66,7 @@ spec:
app.kubernetes.io/instance: raycluster
spec:
containers:
- image: holdenk/fhi-ray:v0.9.3a
- image: holdenk/fhi-ray:v0.9.3b
env:
- name: RAY_gcs_server_request_timeout_seconds
value: "20"
Expand Down
4 changes: 2 additions & 2 deletions deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
special: web-primary-pod
spec:
containers:
- image: holdenk/fight-health-insurance:v0.9.3a
- image: holdenk/fight-health-insurance:v0.9.3b
name: totallylegitco
env:
- name: PRIMARY
Expand Down Expand Up @@ -64,7 +64,7 @@ spec:
matchLabels:
app: fight-health-insurance
containers:
- image: holdenk/fight-health-insurance:v0.9.3a
- image: holdenk/fight-health-insurance:v0.9.3b
name: totallylegitco
envFrom:
- secretRef:
Expand Down

0 comments on commit 1d32eb7

Please sign in to comment.