Re: How to install things on specfic APP container


Daniel Mikusa
 

You don't have root access in application containers. You could bundle the
software into a custom build pack. Again, you can't install stuff with
root so you have to manually extract the files somewhere writeable by the
vcap user and run them from that location. A log of build packs use
`/home/vcap/app/vendor`. Docker might be another option at least to more
easily install the software. You'd still need a command to run it as the
vcap user. I don't think you could run it as a service.

Dan

On Thu, May 5, 2016 at 10:00 PM, Stanley Shen <meteorping(a)gmail.com> wrote:

Hello, all

For some purpose, I would like to install things on specific APP container.
For example, I have a web application, and I want to do virus scan for
uploading attachments, originally on ubuntu VM we can do "sudo apt-get
install scan-virus" and make it a service process.

How can we do such things now?

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.