Skip to content

Add Additional Files to Apps

We have seen how apps can be added and updated. Now, we are going to add or modify files inside of the app file system without having to change modify the app artifacts. To do so, you can take advantage of our additional files feature.

Let us see how to do it for the container from our previous example. We are going to add a new _config directory to the revision with the name of the app and the path inside of its file system:

mkdir -p _config/webserver/etc
echo "hello world!" > _config/webserver/etc/test

To commit and push the update:

pvr add .
pvr commit
pvr push

Now, if you inspect the webserver app, you will find the new file:

# cat /etc/test  
hello world!