@@ -397,17 +397,27 @@ Three hooks are available:
397
397
* First, the **build ** script runs when SymfonyCloud packages the application.
398
398
At this time, the application source code is checked out, global
399
399
`dependencies `_ are installed and the filesystem can be written at will but no
400
- :doc: `services </services/intro >` are available. This is the best time to run
401
- heavy-duty tasks that can be performed offline such as assets build or Symfony
402
- container compilation.
400
+ :doc: `services </services/intro >` are available.
403
401
404
402
.. caution ::
405
403
406
- The *build * step creates a container image that is tied to the sha1 of
407
- the Git tree being built. This image is reused for all deployments and all
404
+ The *build * step creates a container image that is tied to the Git tree
405
+ content being built. This image is reused for all deployments and all
408
406
environments, including production. This means that the build step **must **
409
407
be environment agnostic.
410
408
409
+ This is the best time to run heavy-duty tasks that can be performed offline
410
+ such as assets build or Symfony container compilation. A persisted :ref: `build
411
+ cache directory <build_cache_dir>` is available to you for storing reusable
412
+ artifacts. ``/tmp `` is also writable but its content is wiped after the build.
413
+
414
+ .. note ::
415
+
416
+ Build environments (the application plus the cache directory) are limited to
417
+ 4 GB during the build step - independently of the mounted disk size that is
418
+ allocated for deployment. If you exceed this limit you will receive a ``No
419
+ space left on device error ``.
420
+
411
421
.. _deploy-hook :
412
422
413
423
* Then, the **deploy ** script runs when SymfonyCloud is deploying the
0 commit comments