What I want and achieved so far:
I want to create a custom box for strollers, including a configuration and application for reuse in different client or served environments.
In particular, I managed to create a stray boxing based on Ubuntu (exact / 64) that installed node.js and packed it on my dev machine using
vagrant package my-box --output filename.box
I can copy the file filename.box to the remote server and vagrant upin the field. node.js installs in the firewall as expected.
The problem is that I cannot pack the files in a synchronized folder vagrant. After starting the window on the remote server, the synchronized folder is empty
Therefore, the application that I developed on the local machine is not included.
I tried to find a solution or any information about this behavior, but in addition to this unanswered message, I did not find anything on the network.
My questions:
- How to save files in a synchronized folder and place them in the file filename.box for reuse in a server environment.
- Is it possible? Is the behavior I see an error or is Vagrant also not designed to pack files?
- I have not configured folder synchronization yet. Is it possible to pack files from a different synchronized folder than regular ones
/vagrant? - If this is not possible at all, what are the best practices for deploying or reusing stray environments, including applications?