Skip to content

Feed aggregator

Apple offering free classes at all 495 of its stores - CNET

The Wisdom of Clouds - James Urquhart - Tue, 04/25/2017 - 20:17
The new "Today at Apple" courses offer lessons on photography, music, art, coding and design.
Categories: Blogs

Vizio M and P series TVs get real big-screen menus - CNET

The Wisdom of Clouds - James Urquhart - Tue, 04/25/2017 - 20:14
The 2017 versions of Vizio's midpriced M and P series TVs address one of our chief concerns with their excellent predecessors: lack of a TV-based interface.
Categories: Blogs

AT&T offers super-fast 4G speeds... if you have a Galaxy S8 - CNET

The Wisdom of Clouds - James Urquhart - Tue, 04/25/2017 - 19:29
While AT&T is calling it a "5G Evolution," it's still considered 4G. And you'll have to try pretty hard to get access to it.
Categories: Blogs

Watch Aston Martin spank $83 million worth of historic cars - Roadshow

The Wisdom of Clouds - James Urquhart - Tue, 04/25/2017 - 19:19
Why? More like, why the hell not?
Categories: Blogs

Sick of your plain white AirPods? Skin 'em, dude - CNET

The Wisdom of Clouds - James Urquhart - Tue, 04/25/2017 - 18:51
Several startups are selling stick-on skins for the AirPods that give them a little different look.
Categories: Blogs

Hey, how'd that Star Wars star get in my Star Wars photo? - CNET

The Wisdom of Clouds - James Urquhart - Tue, 04/25/2017 - 18:40
John Boyega, who plays Finn, snuck into the background of fan photos, giving them a priceless souvenir.
Categories: Blogs

AT&T pays Mark Wahlberg to be our man of the people - CNET

The Wisdom of Clouds - James Urquhart - Tue, 04/25/2017 - 18:30
Commentary: In a new ad campaign, AT&T gets Mark Wahlberg to demand new Terms and Conditions on behalf of the American people.
Categories: Blogs

See a DIY Star-Lord jetpack from 'Guardians' in action - CNET

The Wisdom of Clouds - James Urquhart - Tue, 04/25/2017 - 18:26
YouTuber the Hacksmith tests a homemade "Guardians of the Galaxy" jetpack in his latest viral video, and hurts himself while doing it. Ouch.
Categories: Blogs

Ford Mustang is now the best-selling sports car on Earth - Roadshow

The Wisdom of Clouds - James Urquhart - Tue, 04/25/2017 - 17:54
The results have yet to come in from Mars, though.
Categories: Blogs

Can you find the snake hiding in these dried leaves? - CNET

The Wisdom of Clouds - James Urquhart - Tue, 04/25/2017 - 17:51
A venomous snake shows off its perfect camouflage in a tricky image that requires some visual sleuthing.
Categories: Blogs

Take a look at Ford Mustangs from around the world - Roadshow

The Wisdom of Clouds - James Urquhart - Tue, 04/25/2017 - 17:47
Tired of seeing a Mustang against a US backdrop? This one's for you.
Categories: Blogs

Digital Workplace Governance or the Foundation to a Secure Digital Transformation

digital workplace governance

Data privacy and security matters are recurring issues nowadays that IT leaders need to address. In our increasingly connected world and with the new technology available today, such as the cloud, big data and analytics tools, machine learning and AI as well as IoT, data is now at the center of the digital world.

The post Digital Workplace Governance or the Foundation to a Secure Digital Transformation appeared first on Open Source Enterprise Social Platform | eXo Blog and News.

Categories: Companies

Create a Continuous Deployment Pipeline with Node.js and Jenkins

NorthScale Blog - Tue, 04/25/2017 - 16:05

Previously I had written about using Jenkins for continuous deployment of Java applications, inspired by a keynote demonstration that I had developed for Couchbase Connect 2016. ¬†I understand that Java isn’t the only popular development technology that exists right now. ¬†Node.js is a very popular technology and a perfect candidate to be plugged into a continuous deployment pipeline using Jenkins.

We’re going to see how to continuously deploy a Node.js application with Jenkins based on changes made to a GitHub repository.

So let’s figure out the plan here. ¬†We’re going to be using an already existing Node.js repository that I had uploaded to GitHub a while back. ¬†When changes are made to this repository, Jenkins will build the application and deploy or run the application. ¬†Because of the nature of Node.js, the build process will consist of making sure the NPM modules are present.

The Requirements

There are a few software requirements that must be met in order to be successful with this guide.  They are as follows:

Since this is a Node.js pipeline, of course we’ll need it installed. ¬†However, since Jenkins is a Java application, we’ll also need Java installed. ¬†My sample application does use Couchbase, but that won’t be the focus of this guide. ¬†However, if you’re using the same application I am, you’ll need Couchbase Server installed.

All software listed should reside on the same host.  In a production environment you will probably want them dispersed across multiple machines.

Installing and Configuring Couchbase Server as the NoSQL Database

At this point you should have already downloaded Couchbase Server. ¬†After installing it and configuring it, you’ll need to create a Bucket called¬†restful-sample and that Bucket should have a primary index.

For instructions on configuring Couchbase and getting this Bucket created, check out a previous tutorial I wrote on the subject.  It is actually the tutorial that went with creating this Couchbase, Express Framework, Angular, and Node.js (CEAN) stack application.

With Couchbase ready to go, we can focus on configuring Jenkins and creating our workflow.

Configuring Jenkins with the Necessary Plugins

You should have already downloaded Jenkins by now. ¬†If you haven’t go ahead and obtain the WAR file from the Jenkins website.

To start Jenkins, execute the following command from your Command Prompt or Terminal:

java -jar jenkins.war -httpPort=8080

This will make Jenkins accessible from a web browser at http://localhost:8080. ¬†Upon first launch, you’ll be placed in a configuration wizard.

Jenkins Configuration Part 1

The first screen in this configuration wizard will ask you for the password that Jenkins generates.  Find it in the location presented on the screen.

The second screen will ask you which plugins you’d like to install.

Jenkins Configuration Part 2

For now, we’re going to install the suggested plugins. ¬†We’ll be installing extra plugins later.

The third screen will ask us to create our first administrative user. ¬†Technically, the generated password you’re using is an administrative user, but you may want to create a new one.

Jenkins Configuration Part 3

After you create a user, Jenkins is ready to go.  However, we are going to need another plugin and it can vary depending on how we wish to build and deploy the Node.js application.

From the main Jenkins screen, choose to Manage Jenkins to see a list of administration options.

Manage Jenkins

What we care about is managing the available plugins.  After choosing Manage Plugins we want to search for and install a plugin by the name of Post-Build Script.

Install Jenkins Post-Build Script Plugin

This plugin allows us to execute shell commands or scripts after the build stage has completed. ¬†In this example we’ll be building and deploying to the same host, we can run everything locally via shell commands. ¬†In a production environment you might want to use the SSH plugin to migrate the code to a remote server and run it there.

With the plugins available, let’s create our continuous deployment workflow for Node.js in Jenkins.

Creating a Jenkins Continuous Deployment Workflow for Node.js

Just to reiterate, our goal here is to create a workflow that will pull a project from GitHub, build it by installing all the dependencies, and deploy it by running it on a server, in this case our local machine.

Start by creating a new item, otherwise known as a new job or workflow.

Jenkins Node.js Freestyle Project

We’re going to be creating a¬†Freestyle Project, but you can give it any name you want. ¬†There are three things that need to be done on the next screen.

The source of our workspace will come from GitHub.  In your own project it can come from elsewhere, but for this one we need to define our source control information.

Jenkins Node.js Source Control

The GitHub project is one that I had previously created and written about, like mentioned before.  The project can be found at:

https://github.com/couchbaselabs/restful-angularjs-nodejs

Now in a production environment you’ll probably want to set up GitHub hooks to trigger the job process, but since this is all on localhost, GitHub won’t allow it. ¬†Instead we’ll be triggering the job manually.

Jenkins Node.js Build Step

After configuring the source control section we’ll need to configure the build step. ¬†For Node.js, building only consists of installing dependencies, but you could easily have unit testing and other testing in this step as well. ¬†In my previous Java example, the build step had a little more to it. ¬†In this Node.js example we have the following:

npm install

Finally we get to define what happens after the project is built.

Jenkins Node.js Post Build Step

In this example we will be deploying the application locally on our machine.  Probably not the case in your production scenario.

So you’ll notice in our post-build step we have the following commands:

npm stop
npm start

Before starting the application we are stopping any already running instance of it.  Once stopped we can start the new version.  However, where do these stop and start tasks come from?

"scripts": {
    "start": "forever start app.js",
    "stop": "forever stopall"
}

The above was taken from the GitHub project’s¬†package.json file. ¬†Each task starts and stops a¬†forever script for Node.js.

Go ahead and try to run the job choosing¬†Build Now from the list of options. ¬†It should obtain the project, install the dependencies, and make the project available at http://localhost:3000. ¬†Just make sure Couchbase Server is running for this project, otherwise you’ll get errors.

Conclusion

You just saw how to use Jenkins to continuously deploy your Node.js applications based on changes that have been made in GitHub. ¬†A similar version of this guide was created for Java applications called,¬†Create a Continuous Deployment Pipeline with Jenkins and Java, which is worth reviewing if you’re a Java developer.

If you’re interested in using Jenkins to deploy your Node.js application as Docker containers, check out a previous tutorial that I wrote on the subject.

Want more information on using Node.js with Couchbase NoSQL?  Check out the Couchbase Developer Portal for documentation and examples.

The post Create a Continuous Deployment Pipeline with Node.js and Jenkins appeared first on The Couchbase Blog.

Categories: Companies

Former Lyft driver sues Uber for 'Hell' tracking program - CNET

The Wisdom of Clouds - James Urquhart - Tue, 04/25/2017 - 14:20
The former Lyft driver filed a class action lawsuit seeking $5 million in damages over Uber's secret tracking.
Categories: Blogs

Icky wax worms could help create biodegradable plastic bags - CNET

The Wisdom of Clouds - James Urquhart - Tue, 04/25/2017 - 14:15
A simple worm commonly used as fisherman's bait could be the key to getting rid of the plastic bags clogging landfills.
Categories: Blogs

Get a refurbished Roku 4 for $55.45 - CNET

The Wisdom of Clouds - James Urquhart - Tue, 04/25/2017 - 14:02
Roku's former flagship streamer is now priced only a bit higher than lower-end models. Plus: Finally, an outdoor speaker with some muscle!
Categories: Blogs

iPhone 8 may miss one key feature already in the Galaxy S8 - CNET

The Wisdom of Clouds - James Urquhart - Tue, 04/25/2017 - 13:35
Apple's next flagship phone may be incapable of tapping into higher speeds offered by wireless carriers. You can blame its relationships with Intel and Qualcomm.
Categories: Blogs

Xiaomi's new global boss looks to fill Hugo Barra's shoes - CNET

The Wisdom of Clouds - James Urquhart - Tue, 04/25/2017 - 13:33
The new head of the company's international business doesn't have former exec Hugo Barra's boundless enthusiasm, but instead steers the Xiaomi ship with a calm and steady hand.
Categories: Blogs

Xiaomi phones will be available in the US by 2019 - CNET

The Wisdom of Clouds - James Urquhart - Tue, 04/25/2017 - 13:31
Xiaomi's new global head Wang Xiang lays down a new timeline for the Chinese manufacturer's US plans.
Categories: Blogs