Skip navigation

Goal:

Jenkins is an open source, Java-based automation server that offers an easy way to set up a continuous integration and continuous delivery (CI/CD) pipeline. Here are the steps to install and initialize it on Oracle Linux 7

 

Steps:

(1) If JDK doesn't exist on your system

yum install java-1.8.0-openjdk-devel

 

(2) Enable Jenkins repository

curl --silent --location http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo | sudo tee /etc/yum.repos.d/jenkins.repo

And add the repository to your system

sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key

 

(3) Install Jenkins

yum install -y jenkins

 

(4) Start, check and enable the service

systemctl start jenkins
systemctl status jenkins
systemctl enable jenkins

 

(5) Add the firewall rules

firewall-cmd --permanent --zone=public --add-port=8080/tcp
firewall-cmd --reload

 

(6) Open Jenkins on your browser

http://localhost:8080

Use the following command to print the password on your terminal

cat /var/lib/jenkins/secrets/initialAdminPassword 

 

(7)  Choose (Install suggested plugins)

 

(8) Wait for the installation of the plugins

 

(9) Set the admin password and choose (Save and Continue)

 

(10) Get the URL and click (Save and Finish)

 

(11) Start Using Jenkins

 

(12) Install (locale plugin) to change the UI language if required.

Goto http://localhost:8080/pluginManager/available

and search for (locale)

 

(13) If you want Jenkis to use English, goto http://localhost:8080/configure

and set language to ( en ) and ignore your browser language

 

Enjoy!

 

I hope it helps someone

 

Regards

Mahmoud

Goal

Docker is  #1 container industry conference for enterprise IT professionals, developers, architects and business leaders. Docker Community Edition (CE) is ideal for developers and small teams looking to get started with Docker and experimenting with container-based apps. It is one of the most important tools of DevOps engineer. Node.js is a JavaScript-based platform for server-side and networking applications.

Here are the steps of installing Docker CE installation on Oracle Linux 7. Then we will pull docker official image of Node.js.

 

Steps

(1) Install the prerequisites

yum install -y yum-utils device-mapper-persistent-data lvm2

 

(2)  Setup the stable repository

yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

 

(3) Install Docker CE

yum install docker-ce docker-ce-cli containerd.io

 

(4) Start docker service and make it auto starting

systemctl start docker
systemctl enable docker

 

(5) Verify that it is working

docker run hello-world

Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
1b930d010525: Pull complete 
Digest: sha256:2557e3c07ed1e38f26e389462d03ed943586f744621577a99efb77324b0fe535
Status: Downloaded newer image for hello-world:latest


Hello from Docker!
This message shows that your installation appears to be working correctly.


To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (amd64)
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.


To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash


Share images, automate workflows, and more with a free Docker ID:
 https://hub.docker.com/


For more examples and ideas, visit:
 https://docs.docker.com/get-started/

 

(6) Pull the official Node.js image on docker

docker pull node

 

(7) List the docker images

docker image list

REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
node                latest              a0d7a409d125        37 hours ago        904MB
hello-world         latest              fce289e99eb9        2 months ago        1.84kB

 

Enjoy!

 

I hope it helps someone.

 

Regards

Mahmoud

Goal:

Micronaut is a modern, JVM-based, full-stack framework for building modular, easily testable microservice and serverless applications. This blog post is giving a step-by-step guide for installation on OL7

 

Steps:

(1) Install SDKMAN

curl -s "https://get.sdkman.io" | bash

 

(2) Update SDKMAN

sdk update

 

(3) Initialize SDKMAN

source "~/.sdkman/bin/sdkman-init.sh"

 

(4) Update SDKMAN

sdk update

 

(5) Install micronaut

sdk install micronaut

 

(6) Check Micronaut CLI --> Interactive Mode

 

mn
Resolving dependencies...
| Starting interactive mode...
| Enter a command name to run. Use TAB for completion:
mn> 

 

(7) Creating a Java Project

mn> create-app hello-world
| Generating Java project...
| Application created at /home/student/hello-world
| Initializing application. Please wait...

 

(8) Creating a Groovy Project

Micronaut]$ mn create-app hello-world --lang groovy
| Generating Groovy project...
| Application created at /home/student/Micronaut/hello-world

 

Enjoy!

 

I hope it helps someone

 

Regards

Mahmoud

 

Goal

Installation of NetBeans, GlassFish and Tomcat on Oracle Linux 7

 

Steps

(1) Download JDK 8 rpm from

https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

 

(2) Install JDK's rpm using yum

yum install -y jdk-8u201-linux-x64.rpm

 

(3) Check the Java version

java -version

openjdk version "1.8.0_191"

OpenJDK Runtime Environment (build 1.8.0_191-b12)

OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)

 

(4) Download NetBeans 8.2 IDE Installer

 wget -c http://download.netbeans.org/netbeans/8.2/final/bundles/netbeans-8.2-linux.sh

 

(5) Make the installer executable and run it

chmod +x netbeans-8.2-linux.sh 
./netbeans-8.2-linux.sh

 

(6) Customize the installation

 

(7) Choose JDK and NetBeans pathes

 

(8) Install GlassFish Server

 

(9) Install Tomcat Server

 

(10) Revise the Summary

 

(11) Add netbeans.sh to the $PATH by opening the file ~/.bash_profile and updating the following line then save the file.

PATH=$PATH:$HOME/.local/bin:$HOME/bin:/usr/local/netbeans-8.2/bin

 

(12) Activate changes by source command

source ~/.bash_profile

 

Now you could run netbeans from command line. Enjoy!

 

I hope it helps someone.

 

Regards

Mahmoud