Amazon EC2 AMI for mule CE - amazon-ec2

Is any one aware of public AMI for Mule 3.x.x CE. I am looking for options to deploy CE Mule on Amazon EC2. Any pointers will be helpful.

Don't know about any public AMI.
But you could easily create your own.
Amazon Linux AMIs have openjdk pre-installed.
It's not officially supported, but it's still able to run Mule CE.
Just do:
wget http://dist.codehaus.org/mule/distributions/mule-standalone-3.2.1.tar.gz
tar xzvf mule-standalone-3.2.1.tar.gz
cd mule-standalone-3.2.1
bin/mule start
Hope this helps.

Related

Deploy Laravel docker project on a Linux server

I'm working on Laravel projects with Docker containers (Php-FPM, Nginx, xdebug, ...) under Windows OS + Netbeans. Docker simplifies life for all projects at start.
But as many, I need to frequently deploy my work on internal TEST servers (centOS 8) and further on PROD servers (centOS 8).
Repo are on SASS GitLab.
What can you advise me as a method for deploying my laravel projects with docker containers on TEST / PROD servers knowing that they are under centOS and that my Docker containers works on a Linux OS that escapes me.
Are there any compatibility issues between docker containers and another OS Linux Server?
Should I create SSH tunnels to execute Rsync scripts from Windows (DEV) to Linux (TEST & PROD) to deploy my projects?
What are the up to date methods?
MAJ : My wishes would be to reuse docker containers on TEST a PROD centOS servers in order to benefit without have to reconfigure any web servers and so on ...
Thanks for your help,
Best regards

How to run Windows Containers on Local Kubernetes?

I'm having a .Net Framework and .NetCore Containers and I would like to run them in Kubernetes. I have Docker Desktop for Windows installed and Kubernetes with it. How can I run these Windows Containers in Kubernetes?
This Documentation specifies how to create a Windows Node on Kubernetes, but it is very confusing. As I am on windows machine and I see linux based commands in there (And no mention of what OS you need to run all those). I am on Windows 10 Pro Machine. Is there a way to run these containers on Kubernetes?
When I try to create a Pod with Windows Containers, it fails with the following error message "Failed to pull image 'imagename'; rpc error: code = Unknown desc = image operating system 'windows' cannot be used on this platform"
Welcome on StackOverflow Srinath
To my knowledge you can't run Windows Containers on local version of Kubernetes at this moment. When you enable Kubernetes option in your Docker Desktop for Windows installation, the Kubernetes cluster is simply run inside Linux VM (with its own Docker Runtime for Linux containers only) on Hyper-V hypervisor.
The other solution for you is to use for instance a managed version of Kubernetes with Windows nodes from any of popular cloud providers. I think relatively easy to start is Azure (if you don't have an Azure subscription, create a free trial account, valid for 12 months).
I would suggest you to use an old way to run Kubernetes on Azure, a service called Azure Container Service aka ACS, for one reason, it has been verified by me to be working well with Windows Containers, especially for testing purposes (I could not achieve the same with its successor, called AKS):
Run following commands in Azure Cloud Shell, and your cluster will be ready to use in few minutes.
az group create --name azEvalRG --location eastus
az acs create -g azEvalRG -n k8s-based-win -d k8s-based-win --windows --agent-count 1 -u azureuser --admin-password 'YourSecretPwd1234$' -t kubernetes --location eastus

how to install confluent in AWS EC2

I wanted to use confluent in AWS EC2 environment. How can I install it. I have tried the confluent cli in my local and want to replicate this feature of connecting sql to kafka. Is there any documentation on this?
You can find how to install Confluent Platform from DEB or YUM sources in Confluent docs. Otherwise, extract the same package you would have done locally.
There's AWS quickstart templates or Ansible setups on Confluent Github for setting up a full cluster. Or you could use EKS to run it in Kubernetes, if that's something you're comfortable with. I'm sure there's some third party Terraform repos out there as well...
For non-container, production use cases, you'd use systemctl to start services on independently running servers, not all Confluent services on just one system like with confluent start
Sounds like you just want to run KSQL, but it's not clear if/where you have a running Kafka cluster
you just need to download confluent zip from here
https://www.confluent.io/download/
unzip in your desired folder
for start confluent services
go to confluent bin /path to extract folder/confluent/bin
for start all confluent service
confluent start
for check service status
confluent status
for stop service
confluent stop

euca2ools for Windows/Cygwin?

Is there any way to use euca2ools natively on Windows or through Cygwin or is there any other tool compatible with eucalyptus which I could run under Windows ?
You can use the AWS CLI with Eucalyptus, e.g. for EC2:
aws --endpoint-url http://myeuca:8773/services/Eucalyptus ec2 describe-instances
the example assumes you have already configured credentials.

Amazon EC2- user-data through the AWS console doesn't work

From the Amazon EC2 console (or even if I do it through API tools on a box using a file), I paste:
#!/bin/bash -ex
# tell the world what we've done!
echo 'thisisthetoken' > /home/ec2-user/testuserdata
Into the user-data text box. When the instance boots (the Amazon Linux AMI), the file is not in the directory. Am I missing something so basic?
I'm sure that's newest AMI from Amazon. You can also test Ubuntu AMI from www.alestic.com.
/var/log/messages or /etc/log/syslog logs user-data executions.
There was a bug in the original AMI; the current Amazon Linux AMI's work with the same user-data script.
your AMI should support user-data (most alestic.com images do)

Resources