INDEX

Installation and application directories

Application packages having the correct structure can be installed from a variety of sources

  • the Spaceify repository
  • Local directory
  • Local zip archive
  • remote zip archive in a URL
  • the GitHub repository.

When an application package is installed its target directory depends of its type. The general for of the target directory is

  • /var/lib/spaceify/data/<type>/<unique_name>/volume/

Where <type> is sandboxed, spacelets, native_debian or sandeboxed_debian and <unique_name> is the unique name of an application or a spacelet.

/var/lib/spaceify/data/sandboxed
/var/lib/spaceify/data/spacelets
/var/lib/spaceify/data/native_debian
/var/lib/spaceify/data/sandboxed_debian

The application directory (Structure of a Spaceify application package) contained in a package is copied to the volume directory. The full path to the application files after installation is

  • /var/lib/spaceify/data/<type>/<unique_name>/volume/application
Example
type: spacelet
unique_name: example/spacelet

/var/lib/spaceify/data/spacelets/example/spacelet/volume/application

The volume directory is accessible from Docker containers sandboxed anvironment. See more about this in subsection Persistent data storage.

In addition to the volume directory applications also have two other directories they can access.

  • The /var/lib/spaceify/code directory contains all the the API classes Spaceify edge offers (the legacy /api directory is mapped to /var/lib/spaceify/code and can be used but is not encouraged to use anymore because it is deprecated and may be removed in the future verions of Spaceify).
  • The /tls directory has encryption key and certificate. With them applications can make secure connections and create secure servers in the Spaceify edge ecosystem. See subsection TLS support in edge for more information.
Close
copyright © Spaceify.org 2014