Search This Blog

Sunday, February 12, 2017

Docker!

Docker for Datapower

Here is the link to install a Datapower docker image. This seems to work while I had it running on my OpenSuse Linux. I tried to install the same on in Windows 10 and it did not work. Please bear in mind that I did not have Microsoft HyperV installed on my machine it being a Home edition. I had to install Docker Toolbox and that installed Oracle Virtual Box along with it.

The resolution for the problem I found in the following link.


Docker for RabbitMQ

Install the docker image for RabbitMQ. To enable the docker admin plugin issue the following command after getting the docker image started -

docker exec rabbitmq rabbitmq-plugins enable rabbitmq_management

Next assign the port 15672 to the RabbitMQ docker image. The management URL for RabbitMQ is

http://docker-image-ip:docker-port-for -15672/

UserID - guest
Password - guest

Docker tutorials - https://github.com/rabbitmq/rabbitmq-tutorials



Creating a Docker registry -

https://www.digitalocean.com/community/tutorials/how-to-set-up-a-private-docker-registry-on-ubuntu-14-04


Sharing an image on kubernets - https://blog.hasura.io/sharing-a-local-registry-for-minikube-37c7240d0615

Using this registry to pull an image on local for kubernets - https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/

Saturday, February 4, 2017

Miscellaneous Maven and Eclipse help

Running JUnit test cases from Jenkins or Maven for WebSphere MQ causes 2495 error

I was trying to run JUnit test cases using Maven and from jenkins and I was continuously getting the following error - 
A WebSphere MQ Error occured : Completion Code 2 Reason Code 2495
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.477 sec

Make sure that the library path has the 32 or 64 bit depending on your configuration in the path i.e. -

export LD_LIBRARY_PATH=/opt/mqm/java/lib/:$LD_LIBRARY_PATH

Creating users for apache-tomcat
conf/tomcat-users.xml contains the users. To create a manager user to manage tomcat add the following details -

<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<user username="tomcat" password="s3cret" roles="manager-gui,manager-script"/>

This will create the user tomcat with password s3cret.


Running a Maven project in eclipse gives error

If you encounter the following error while trying to run a Maven project in Eclipse -

"-Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environment variable and mvn script match."

Here's the solution to that -

In Eclipse you need to go like this.
Window-> Preference -> Java -> Installed JREs -> Edit
In the edit Default VM arguments you need to put
If you already set the maven home.
-Dmaven.multiModuleProjectDirectory=$M2_HOME

Thanks to Stackoverflow for this - http://stackoverflow.com/questions/29330577/maven-3-3-1-eclipse-dmaven-multimoduleprojectdirectory-system-propery-is-not-s