Mountie allows CF applications to mount one or more filesystems provided by the cf-sshfs service.
To use mountie with a CF app that you've already started:
-
Create service instances for your desired filesystems.
cf create-service sshfs unlimited my-web-content cf create-service sshfs unlimited my-internal-content
-
Bind the service instances to your application.
cf bind-service my-app my-web-content cf bind-service my-app my-internal-content
-
Create a directory called
.profile.d
in your application's root directory.cd my-app mkdir -p .profile.d
-
Download the
mount.sh
file from thelatest release
and place it in your application's.profile.d/mount.sh
. -
Push your app.
cf push my-app
By default, Mountie will mount all filesystems inside /home/vcap/filesystems
in the application container.
An application developer may customize this path by modifying the mount.sh
script inside their .profile.d
directory (between steps 4 and 5 above).