Skip to content

Commit

Permalink
Add docs for few old build steps
Browse files Browse the repository at this point in the history
  • Loading branch information
tailhook committed Dec 31, 2015
1 parent f875e05 commit 86d79a8
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/build_steps.rst
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,30 @@ Files and Directories

.. step:: EmptyDir

Cleans up a directory. It's similar to the `Remove` but keeps directory
created.

.. step:: CacheDirs

Adds build cache directories. Example::

- !CacheDirs
/tmp/pip-cache/http: pip-cache-http
/tmp/npm-cache: npm-cache

This maps ``/tmp/pip-cache/http`` into the cache directory of the vagga, by
default it's ``~/.vagga/.cache/pip-cache-http``. This allows to reuse same
download cache by multiple rebuilds of the container. And if shared cache
is used also reuses the cache between multiple projects.

Be picky on the cache names, if file conficts there may lead to unexpected
build results.

.. note:: Vagga uses a lot of cache dirs for built-in commands. For example
the ones described above are used whenever you use ``Py*`` and ``Npm*``
commands respectively. You don't need to do anything special to use
cache.


Meta Data
=========
Expand Down

0 comments on commit 86d79a8

Please sign in to comment.