Assets

When the Assets Storage is enabled Squash will automatically add a new /assets/ mount point for all deployments within the repository. The Assets volume has 30GB of storage.

The Assets Storage can only be updated for the branch/deployment specified in the Assets settings page.

How to enable the Assets Storage

Step 1

Go to the Squash Admin page and then click on Settings -> Repositories

../_images/customizing-assets.png

Step 2

Go to “Manage Assets”

../_images/customizing-assets-2.png

Step 3

Enable the Assets Storage

  • Click on the checkbox “Enable Assets Storage”
  • Select a branch and VM size
  • Click “Save”
../_images/customizing-assets-3.png

Updating files within the Assets Storage

API Update

You can use our Assets API to automate the process of updating the Assets Storage.

Manual file update (SSH)

The next step is to use the URL highlighted above to start a new deployment. Then use the SSH Access to populate the /assets/ storage in any way you want.

Once you shut down the deployment Squash will save a snapshot of all the data within /assets/ and make it available for all new deployments moving forward.

You can easily associate the Assets Storage with your deployments by defining a docker volume from your .squash.yml file as follows:

run_options: -v /assets/pictures:/home/devel/pictures

For the example above, Squash will mount a new “pictures” folder within the “devel” home folder of all docker containers using the contents from the assets storage.