Hi again :)
The goal for today is to deploy from scratch a continous integration (CI) system using Jenkins, and also configure it to run a job that clones a repository from Github through ssh, and then run the tests using Maven.
We will also do it using a linux machine. I will use a remote machine with Ubuntu 16.04 (LTS).
Installing everything from a clean distribution
First, we update apt to have available the latest package versions.
Now that I am playing with my Raspberry Pi, I need to use different SD cards for many projects, and I was bored of formatting again and again my card, so I were searching for a more efficient way to switch between my projects and also having backups in an easy way.
The solution has been simpler that I was expecting, just make snapshots of the current state in my SD card.
Maybe you have heard about Docker, used to package your applications and services into a standardized unit which can be shipped and executed easily in every environment without external dependencies. In this post I want to show you how to install Docker on Ubuntu 16.04 LTS in an easy way, and also how to run it without root privileges. Sounds right? Let’s start.
Developing complex enterprise applications can be tedious when you must mount every external service needed in your new machine, Elastic Search, MongoDB, Rabbitmq, etc.
Nowadays it’s essential to manage forks in Github if you want to be a better programmer. Github is widely used worldwide and we should know at least how to use it. A key concept in github is the word ‘fork’. When you create a fork based in an (open-source) interesting project from other people or organization, you are doing a copy of that, linked by github to his parent. Since this moment, the two projects will evolve independently.
It’s easier than what you think to start with a No-SQL database like MongoDB.
The first step is to install MongoDB. I am going to install it in Ubuntu 14.04 with these commands:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list sudo apt-get update sudo apt-get install -y mongodb-org If you want to install it with other OS or a specific version you should visit the official page