Angular JS 2

Are you ready to feel the change? Try it... Really Amazing.....

ESP 8266

Yes, It really cool but hard to program...

We are the people...:)

Bon Voyage Kamalini. Thanks for every thing you do.

Raspberry Pi Cluster

I love to build it...Nut no more Raspberries...Shall we try...

Lumix 640 XL

Still I falling love with you.... :)

Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Sunday, January 21, 2018

Run Jenkins in Docker (Without re-configure issue)


These days I'm doing some interesting plugin development for my one of open source project. Unfortunately every time my local machine fails to configure the Jenkins. So I moved to Docker and I try. But it also give some issue when I was creating an image with existing configured docker container. Problem is every docker container relaunch, I have to reconfigure Jenkins again and again.

Finally I found the reason. Data in a Docker volume (such as /var/jenkins_home) is not preserved as part of the docker commit operation. This is intentional -- the idea is that you are persisting you data via some other mechanism, such as a host volume (-v /host/directory:/var/jenkins_home) or through the use of a data container (using --volumes-from).

Previously I try with following command.

docker run --name jkins -d -p 8080:8080 jenkins/jenkins

Then I add a volume and mapped with my local folder using following command.

docker run --name jkins -d -v /home/hasitha/apps/jenkins-mount:/var/jenkins_home -p 8080:8080 jenkins/jenkins

Now it work fine. I think this will help you when you try to run Jenkins with Docker. Have a happy coding with Docker and Jenkins.

Thursday, May 4, 2017

Easy way to share file in network (For Node JS Lovers)

In my workplace, most of the times I've to share my files with my co-workers. There are several ways to do it,
  • use external HDD 
  • share through network
How if we forget to bring our external HDD...
Second choice is share through network. But we need to do lot of configurations. If you are not tech guy, it make really mess. 



Easiest way for Nodejs users...

First you have to install Node JS, if you haven't installed yet. 

Then install http-server module globally.
npm install -g http-server
In ubuntu or linux PC you have to run previous command with super user(sudo).



If you done, next you have to go to your share folder which you want to share through network. As an example I need to share my picture folder through network.



Then run following command to start the file server.
http-server



You have already done it.

Finally....

You can go the URL which display in console. As previous screenshot 'http://***.**.42.39:8081/' is the URL which allows to access files from different PC in network.

Next you have to type given URL in another PC's web browser. Now you can click what you want to download from the host PC.