mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
b1470223d3
The ccache named volume had no explicit name, so Docker Compose namespaced it under the per-checkout project name (derived from UNIQUE_ID), giving each checkout its own cache even though docker/README.md already documented them as shared. Give the volume a fixed name so all checkouts attach the same one. Measured cache size after a full build (IfcParse+IfcGeom+IfcConvert+ wrapper, one Python version) is ~300MB, only ~5% of the previous 5G cap. Shrink CCACHE_MAXSIZE to 2G, which comfortably covers the shared baseline plus per-branch deltas from several diverging checkouts. Generated with the assistance of an AI coding tool.
16 lines
351 B
YAML
16 lines
351 B
YAML
name: ifcopenshell-${UNIQUE_ID}
|
|
services:
|
|
ifcopenshell:
|
|
container_name: ifcopenshell-${UNIQUE_ID}
|
|
image: ifcopenshell-build-env:updated
|
|
platform: linux/amd64
|
|
volumes:
|
|
- type: bind
|
|
source: ../
|
|
target: /__w/IfcOpenShell/IfcOpenShell
|
|
- ccache:/ccache
|
|
|
|
volumes:
|
|
ccache:
|
|
name: ifcopenshell-ccache-shared
|