Closed enoch85 closed 9 years ago
I suggest to run the 'initial settings script' when the root user logs in for the first time. This would also cover the '@enoch85 use-case' (run vagrant up and use the Appliance right away).
The procedure for the current eval appliance is:
@jnweiger Yes, I agree. That´s exactly how I do it today except the update process it automated from start as well, including updating ownCloud through the .occ command (Usecase: If I'm one day late with updating the VM the inital-script takes care of that as well)
@karlitschek The Ubuntu VM that I provide already does all the things that this box would do, and even more. I could strip it down to include only the most nessesary things (exclude installation of Webmin and such) and use my VM as the offical Ubuntu VM for ownCloud.
The difference would be that we wouln't build the box every time, just do the updates needed when a new ownCloud version is released in the same way as I do today. Or do you think it's better to build it with scripts like suggested?
@enoch85 so how do you build your appliance? Would it be possible to add everything that is needed to this repository here? I like to be transparent and open source. @jnweiger What do you think?
@karlitschek I just build it one time, and update it when a new release comes and save the changes in the same VM. In other words it's a regular VM with a full version of Ubuntu Server 14.04, inlcuding LAMP and OpenSSH. I could publish the scripts I use on Github so that others can help improve them. Do you think that´s transperant enough? Please feel free to download it and test it yourself: https://www.en0ch.se/pre-configured-owncloud-installaton/
The scripts are located in /var/scripts/
@jnweiger FYI: I played around a little bit yesterday, and it would be possible to create the "FIRST-INSTALL" script when the box is created so that the user only have to run it by themselves, or if we pre activate it when the user becomes root.
My goal is to have it fully scripted, so that the VM build is repeatable from jenkins without any human intervention.
@enoch85 in /var/scripts I see histroy.sh owncloud_update.sh instructions.sh setup_secure_permissions_owncloud.sh The script that creates the VM and installs the owncloud packages is missing there. Something comparable to my ApplianceEngine.sh script.
@enoch85, I'll strip down the first install scripts from the enterprise eval appliance and add it to the Tree here.
I've added the Tree.SUSE with the 'old cruft' that we used for the enterprise eval appliance. Refernce only. The scripts that I saw from @enoch85 are in much better shape than this.
This is in. Closing.
As disscussed with @jnweiger we need to add a install scipt that takes care of all the initial settings when the VM box is downloaded and mounted by the user.
How would we add this?
1, Add a script during the build of the box that is inluded in the box something like this (not tested, just wrote from my head):
2, Add the script so that it's "hardcoded" inside the VM afterwards
3, Some other alternative