Jenkins with Mesos for Non container Tasks - jenkins-plugins

My usecase would be running jenkins jobs on windows slaves where I have mesos agents running.
The jenkins-mesos plugin that is available spins up jenkins slave as containers. Is there any jenkins plugin out there which will connect jenkins master to mesos master & run the jobs on agents without any containers ?

By default, the Jenkins slaves are run in the default Mesos container. To run the Jenkins slave inside a Docker container, there are two options.
The MesosContainerizer currently does not provide any actual resource isolation (similar to running the Mesos agent on POSIX).
default Mesos container is working on Windows so there shoul not be any problem to run Jenkins on Windows with Mesos. You need to install Java on agents.

Related

How can we deploy vespa.ai application on multiple docker container running on separate instances using kubernetes?

I need to deploy Vespa.ai docker containers on multiple instances (3) using kubernetes. What configuration changes do I have to do in my application package or in docker so that I can run the admin node, container node, content node on separate instances?
See this guide for how to deploy a multi node Vespa cluster on GKE (Google Kubernetes Engine) https://github.com/vespa-engine/sample-apps/tree/master/basic-search-on-gke.

How to query a Pervasive v13 database from a Docker Container?

How can you query a Pervasive v13 database from an application that's running inside a docker container?
It would seem you'd have to install the pervasive sql client inside the docker container to accomplish this, but I cannot locate any documentation regarding this task.
Please advise.
Yes, you would need to install the Pervasive v13 client within the Docker container. You'd need to use the client for the OS of the container. If the container is Linux based, use the Linux client. If it's Windows, use the Windows client.

How to configure apache solr with existing spring mvc 4 hibernate 4 application?

How to configure and run apache solr with spring mvc in tomcat7 server? Will apache solr run only by specifying dependency in maven or do I have to install apache solr in local machine?
You need to have Solr service running in your system or in any server instance, only then you will be able to connect and do some operation on Solr.
Specifying dependency in maven will be useful only to get connected to Solr and do read/write operation on Solr service.
For instance if we compare this with any database system, then your database server is running some where and you use any jdbc driver in your application to perform CRUD operation on that RDBMS.
You can follow the below steps to install and run Solr
Make sure you have installed Java
Download Solr from http://lucene.apache.org/solr/
Extract Solr distribution archive to a directory
Start Solr server by issuing following command:
-- if you are in linux distribution then
$ bin/solr start
-- if you are in windows then
bin\solr.cmd start
Once Solr server is running, use a Web browser to see the Admin Console at http://localhost:8983/solr/
For more detailed instructions follow these links
https://cwiki.apache.org/confluence/display/solr/Installing+Solr
https://cwiki.apache.org/confluence/display/solr/Running+Solr

Run perl script on amazon ec2

I need to run a Perl Script on my EC2 instance. This script will download files from an FTP client and then upload the data to the RDS database on the EC2 instance. The script needs to run everyday at a specific time. For now, i have the script on the local machine and it does work. But is there a way to upload the script itself on ec2 so the script will run there and my PC need not be running.
Yes you can do this. Just run the script as a cron job and give all the environment dependencies to run the script on ec2 instance. Running the job on an ec2 instance will not be different from running your job on the local box if the environment is setup properly.
If you are using windows, then you can use Bitvise Tunnelier to upload your script to ec2 instance. After this, you can set your script in cron job to run everyday.

How can i stop Solr without stopping the WebSphere Commerce Test Server (IBM RAD)

I need to test some error handling use cases in the event that the Solr server shuts down or is unreachable. On one of our testing servers i can run the stopServer script passing in the indentifier for the Solr server. I have tried using the same .bat version of that script locally, but it seems there is no separate profile for Solr.
Is there a way to stop Solr only (ie. the WC instance is still running as is Apache) in RAD, either through the Admin Console, CLI script, or some other UI interface?
In the WebSphere Commerce Developer, I don't believe you can do it since it's not the server deployment where it's in it's own profile. Nevertheless, I haven't tried it but I think what you can do is block the communication ports (on server its 3737).

Resources