Automate install process#17
Conversation
|
Looks like a good start to me |
There was a problem hiding this comment.
Looks great all in all! However, this password will not be random. How about cat /dev/urandom | tr -dc _A-Z-a-z-0-9 | head -c10 or something more secure?
There was a problem hiding this comment.
Oh, I dig that. I'll make the change within a few hours.
On Thu, Apr 14, 2011 at 5:13 PM, bjorne <
reply@reply.github.com>wrote:
+echo '-----------------------------------------------------------'
+echo ""
+
+echo "Hopefully this will be the last time you type your password"
+sudo ls > /dev/null
+
+echo "Installing dependencies"
+if [[ $PLATFORM == 'Linux' ]]; then
- sudo apt-get -y install coreutils autoconf curl git-core ruby bison
build-essential zlib1g-dev libssl-dev libreadline5-dev
+else- echo "Sorry, we can't install dependencies for your system yet."
+fi
+# Generate random mysql password
+if [[ $PLATFORM == 'Linux' ]]; then
- MYSQL_PASS="$(date | md5sum | cut -f1 -d' ')"
Looks great all in all! However, this password will not be random. How
aboutcat /dev/urandom | tr -dc _A-Z-a-z-0-9 | head -c10or something more
secure?Reply to this email directly or view it on GitHub:
https://github.com/cloudfoundry/vcap/pull/17/files#r19090
|
Thanks for the pull request. We are going to start processing these on Tue and Thur, but this week, we are going to do a pass over these on the 15th. If we have any questions or comments, we'll let you know then. Thanks p.s. We are particularly happy to see this one :) |
|
I am working on a chef cookbook and should have it working tomorrow. Excited to get it actually working and see the internals. More soon. Good work trotter, by the way |
|
Very nice, is that on github already? I'm more than happy to help with On Apr 14, 2011, at 10:38 PM, auser
|
|
Not yet. I'll push it to github tomorrow morning when I get back to my computer. It's almost working, just a few minor updates and it should be golden. I'll message when it's up |
|
Once there is a Chef cookbook, it could be wrapped up in a Vagrant configuration too, making it really easy to get an isolated development setup running. |
|
I added a basic chef cookbook that is not fully working quite yet, but it's up and available on github. |
|
This pull request has some other stuff in it that we don't want to take as is.. (e.g. df0b2fa). Can you create a feature branch on your repo that starts from the current head of cloundfoundry/vcap and cherry pick over the commits you want from this work and then submit the pull request against that branch. See: http://help.github.com/pull-requests/. Thanks! |
|
Whoops, must have started from the wrong branch. Will fix and resubmit soon.
|
|
Resubmitted as issue #21 |
|
I added a quickstart as we talked about. It's almost completely there. There is an issue when running Anyway, the quickstart is here: It requires vagrant and VirtualBox and almost completely sets up a cloudfoundry machine. |
|
Does the bundler:install need to have rvm use called first? Or does rvm trigger because of the cwd? |
|
No, rvm is called as a recipe. It's installed before all bundler... the |
|
Ok. I could see the |
|
No, it should be pretty straightforward paulj. Perhaps I'm missing what you mean... there's It was |
I've added
setup/installto make it easier to get vcap installed on a VM. It's not perfect at all, but it's much better than going through the manual process.