It’s been a busy year of lots of work, switching jobs, running Duchess SF (SF Women’s Java User Group) but I’m glad to find a little time again to post about Cloud Foundry and that my fandom of CF is stronger than ever.
I’m headed to this year’s CF Summit, which promises to be the biggest yet. It’s the first CF Summit I believe that has both the foundation and the event run by the Linux Foundation. Much as I miss my role last year track and keynote managing and speaker wrangling, it’s exciting to go this year as a speaker, sponsor, and attendee. :)
I’m excited to see my old colleagues from Pivotal, but I’m also excited to go representing New Relic. I run the Community and Evangelism team and am proud to add the Cloud Foundry Foundation to the roster of organizations that my group supports at New Relic (we also support the Python Software Foundation, Drupal Foundation, Women Who Code, and a growing list of user groups around the world).
New Relic has also put in a lot of work recently to improve integrations with Cloud Foundry! In particular, thanks to Ben Hale, late last year we got the building blocks to creating a service broker for New Relic! Since then, our team has built on Ben’s work so that you can instrument a tile for New Relic within your own Cloud Foundry environment! I’ll be doing a quick presentation on that on Tuesday (tomorrow) at 2:10 pm as part of Patrick Chanezon’s session on Azure (not all of the session is about Azure … ) :)
More good things to come!
This is a first test run of our online and in-person Cloud Foundry Ask Me Anything.
Scott Frederick and Jamie O’Meara from Pivotal will be on-hand to do their best to answer!
Sign up! http://bit.ly/CFAMA0001
Summary of Cloud Foundry Summit in San Francisco 2014 plus more!
The Cloud Foundry summit kicks off Monday, June 9, 2014 6:00 PM and is filled with keynotes, breakout sessions, lightning talks, hack nights, Birds of a Feather, panels, and more! Runs through Wed June 11, 2014 evening at the Hilton Union Square in San Francisco, CA (333 O’Farrell St, San Francisco, CA)
It includes Java Applications in the Cloud with Ben Hale, on Tuesday, June 10, 2014
6:00-7:00 pm networking & food
7:00-8:30 pm talk
RSVP for the free meetup!
Register for CF Summit with this 50% off code! http://cfsummit.com/
Click on the “Register” button and use this code: CFS2014-Meetup
NOTE: THIS MEETUP IS IN SAN FRANCISCO at 5:45pm PDT
“Cloud Foundry – Open Cloud Deployments FTW” with David Stevenson
6:00-6:30pm Pizza and Networking
6:30-8:00pm Talk and Q&A
8:00-8:30pm Wind down
We’ll start by discussing the grand vision of cloud foundry, and how it attempts to change the way the world deploys software. Next will be a demo of how end users can use it to push apps and bind services. Then we’ll cover how operators can run their own CF instances, including some details about BOSH. Finally there will be a technical rundown about how the distributed system works under the hood, including some details about new components like HM9000, diego, loggregator, and the GoAgent.
David Stevenson has been Director of Engineering on Cloud Foundry for about 16 months. Before that, his career at Pivotal has now lasted more than 6 years, so he knows the agile software and planning process in and out. He loves all projects that include large distributed systems with a blend of dev/ops in them, and obviously long walks on the beach.
It’s been a bit busy at Pivotal … but now you’ll start seeing the fruits of the hard work in the last 4 months! Here’s one!
If you’re in San Francisco, come see this talk at the Pivotal office!
Register here: http://bit.ly/POSH0022
Deploying a multi-tier application to Cloud Foundry with Cornelia Davis
March 6, 2014
5:30-6:30pm Pizza and Networking
6:30-8:00pm Talk and Q&A
8:00-8:30pm Wind down
Cloud Foundry is an open source Platform as a Service (PaaS) that changes the set of things that a devops individual interacts with when developing, deploying and managing cloud-based applications. No longer is that developer concerned with virtual machines, networks and storage, instead they are focused on and working with applications and the services they leverage.
After a brief introduction to the platform, in this meetup we will take a multi-tier application that was originally built for deployment onto physical or virtual machines, necessitating the deployment of numerous prerequisite softwares, and we’ll deploy it to Cloud Foundry, which provides all of those prerequisites out of the box. Only minor changes were made to the application with major benefits. We’ll provision services (i.e. database and messaging instances), deploy applications, bind them to those services and start up the app. The session will be light on slides and heavy on live demo.
The Cloud Foundry PaaS is entirely open sourced, available on Github and can be deployed on any number of IaaS including vSphere, OpenStack and AWS, plus there is an option where you can even run it on your laptop. Pivotal also offers it in the cloud at run.pivotal.io. If you come with a run.pivotal.io account and with the cli installed you’ll even be able to follow along and have a working app by the end of the evening.
About the speaker:
A self-proclaimed propeller head, Cornelia Davis works as a Platform Engineer in the Cloud Foundry group of Pivotal. Fundamentally responsible for making developers successful with the Cloud Foundry PaaS, you can generally find her knee deep in the (OSS) code base, writing apps and deploying them onto the PaaS, teaching at a whiteboard, presenting at conferences and passionately driving new features into the product.
When not doing those things you can find her on the yoga mat or in the kitchen.
We had some new machines that we had to get ready for SpringOne 2GX 2013.
Here are some basics to pushing a hello world app to the new Cloud Foundry v2 using Spring Tool Suite. These are the steps I followed to install on a new MacBook Pro (OSX 10.7.5).
2. In my case, I downloaded and installed “spring-tool-suite-3.3.0.RELEASE-e4.3-macosx-cocoa-installer.dmg”
3. Next to the Dashboard tab, there should be an “Extensions” tab. Click on that and search for “cloud foundry” and select the extension for Pivotal.
If you don’t see the extension for Cloud Foundry, click on the “Find Updates” button near the Dashboard and Extensions tab. You should see a pop-up for Cloud Foundry. Select it, agree to the T&C’s, and then restart STS when prompted.
4. Once back in STS, place your cursor above the Servers box, which is usually located in the bottom left corner. Right click and choose New>Server.
You should see Pivotal>Cloud Foundry as an option. Choose that and click “Next”.
5. Enter your Cloud Foundry account information. If you have not created a Cloud Foundry account, go to https://console.run.pivotal.io/register and enter an email address and “preshavedyak” as your promo code. Check your email and follow the steps to create a password.
6. Back in STS, enter your email address and password. Click on the button “Validate”. Make sure that it has confirmed that your account is valid.
7. Now we will create a barebones app. Click on the Dashboard tab, and then, under “Create,” click on Spring Project link.
8. Select Spring MVC Project and enter a Project Name. Click on the Next Button. Click the “Yes” button to proceed with the download.
9. Specify a top-level package such as “com.co.app” and then click the “Finish” button.
10. If you happen to have an error with your pom.xml file (as I did this time), go to your terminal (by clicking on the search icon on the top right corner of your screen and typing “Terminal”), and delete the Maven repository. To do this, go into the Users directory and type “cd [user name]/.m2” at the prompt. There should be a directory “repository” which you can delete. (“ls” to list your files in a directory and “cd ..” to go up a level in a directory until you see :Users. Type “rm -r repository” to remove the repository). Create a new Spring MVC Project and try again.
11. Once you have successfully created the Spring MVC Project, you can open the home.jsp file (from the Package Explorer box usually in the top left corner, src>main>webapp>WEB-INF>views) and you will see a basic Hello World. Instead of hello world, you can create other content. For instance, I pasted the following:
<head> <title>Cart Cats on Cloud Foundry v2 using STS</title> </head> <body> <h1>Cart Cats on Cloud Foundry v2 using STS</h1> <img src="http://weknowgifs.com/wp-content/uploads/2013/04/mario-cat.gif"> </body> </html>
(You can go to http://cartkitties.cfapps.io/ and view the page source, and copy and paste it if you have trouble with the formatting here).
12. To push your app to Cloud Foundry, drag and drop the ENTIRE folder in the Package Explorer box onto your Server called “Pivotal Cloud Foundry,”
13. For Name, make sure to give it a unique name (not “Hello” for instance because this will be the prefix to your url).
Allocate at least 512 M of memory and click Finish.
14. Monitor the console to make sure that the app has pushed. This may take about a minute. Once you see “initialization complete in __ ms” your app should be live.
If you click on the grey arrow to the left of your server, “Pivotal Cloud Foundry,” you should see your app listed. If you click on your app, you will see more information on the status of your app. You will also see your new url and can click on it to see your app live.
You should see something like http://cartkitties.cfapps.io/
If you are pushing your app from one of our laptops at SpringOne 2GX or other event, make sure to right click on “Pivotal Cloud Foundry” server and select Delete. This will not delete your account, but will log you out of that machine. :)