Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Clone repositories in initializer script and do not preclone them #47

Open
ekiwi opened this issue Sep 30, 2015 · 1 comment
Open

Clone repositories in initializer script and do not preclone them #47

ekiwi opened this issue Sep 30, 2015 · 1 comment

Comments

@ekiwi
Copy link
Member

ekiwi commented Sep 30, 2015

Currently the vm is shipped with our repositories already on the disk.

This leads to problems, when things in our repository structure change as is often the case in the beginning of a new season. E.g. this season we replaced the season2016 repo with a different one.
Now everyone using the new VM needs to delete the season2016 repo and run gits populate to get the latest code. A gits pull is not enough.

Thus I'd like to propose that we change the initializer script to clone the repositories when it is run instead of just updating them. As this normally happens in our room with a 1GBit/s connection to our server, this should not take much longer than just syncing the latest changes but is less error prone as pointed out above.

@salkinium
Copy link
Member

The current solution bugs me as well, but gits populate is being called in init.sh.

The very first VM actually first downloaded the initializer script from the server, which was then executed.
It was a super secure download over only http ;-)

Perhaps you can add a new initializer script to our software.git umbrella repo, and git pull this, before executing the new script.
This allows "updating" of an already built VM.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants