I'm working on apache camel's fuse project .
I'm trying to deploy my application by Fabric8. I have installed all the stuffs required .
I also created a container . i deployed my application via the command
fabric8:deploy
On the web-based console, after creating a child container (under the root container) i found out that container not running even the start button for this child is disabled so i could'nt run it.
What should i do ?.
Related
I installed service fabric locally and set up five cluster node. I followed this tutorial and downloaded source code from here. It worked fine. Now I created one .net core application (docker enabled) API with visual studio 2019. I published image on docker hub (I ran image locally to confirm it is working fine.). Then I create service fabric project through visual studio and add container to it. I published on local cluster of five nodes. First one is already running. It is build and published successfully. But on service fabric explorer, it is showing me this error.
I'm trying to dockerize my spring boot app and then connect it to a mongodb docker container sitting at 172.17.0.2:27017.
Sadly when the ./mvnw clean package tries running the app, it fails while trying to connect to the container at new MongoClient("172.17.0.2", 27017) (since it cannot connect form localhost perhaps), and so the JAR file is never created.
I believe if I could somehow put my app in a docker container, it might connect to the mongodb container (since another mongo container instance can connect to the first one. see docs) .
So the question is that is it possible force spring boot to create the Jar without running the app itself?
probably you have a test with #SpringBootTest annotation.
To generate JAR file you can try to do ./mvnw -DskipTests=true clean package
edit: I have updated this question with more detail
I'm trying to deploy an Docker compose to Service Fabric. This cluster is a custom setup using three vm's (Windows Server 2016 Datacenter with Containers) on Azure running the latest version (CodeVersion 6.0.219.9494).
I'm using VSTS with the 'Deploy docker-compose application to a Service Fabric cluster' task to deploy the docker compose file. VSTS uses a custom build server (Server 2016) on which Service Fabric SDK 2.7 is installed. I couldn't install 2.8 because the task in VSTS is not compatible, see https://github.com/Microsoft/vsts-tasks/issues/5505.
So far, so good. But when Service Fabric deploys the container I receive the following error (In Service Fabric Explorer): There was an error during download. Failed to download container image erwinstaal/dockerdemo. This image has been pushed to a public repo on Docker Hub. However, when I use the Docker images command on one of the nodes the image has been downloaded. Does anyone have a clue on what could be going on?
We are installing Open Loyalty Program on to the Google Cloud. Please Google Open Loyalty by Divante Ltd.
We have been trying to deploy this application on google cloud using Kubernetes.
The instance used to deploy this application contains Debian v4.9 as its OS. And we installed Docker, GCloud, Kubernetes and Kompose as the tools for deployment. We built two docker images for the frontend and backend and linked them to the docker-compose file. Now in frontend image, we used (node:5) image from docker hub in Dockerfile of the frontend.
We also changed the docker-compose file as seen below:
enter image description here
After changing the docker-compose file, we ran “kompose up” within the same directory.
which created the deployment and service ‘yaml’ file and then proceeded to run it.
We have pods as given below, but the frontend pod shows some error and some logs.enter image description here
It says yarn not found. When we execute the same process on a local machine, it works as expected.
We are also trying to seek help from Google Support but your help and suggestions will also be highly appreciated.
Yarn is available from node:6. Your front-end image is too old.
I have installed jboss-fuse-karaf-6.3.0 and created a project in developer studio.
I'm not able to figure out certain concepts around it.
In Apache Fuse how Karaf and Fabric containers are related ? What I understood is Karaf provides runtime environment for the project to run. Fabric is for managing deployments. Is that correct ?
I have started Karaf container by running FuseInstall/bin/start.bat . How to start the fabric container ?
Is http://localhost:8181/hawtio is fabric console ?
Is there a way to directly deploy a project to Karaf container using maven ? or we need to deploy the project to fabric ?
Thanks !
Fuse is an ESB product by Redhat. And yes, you understood it correctly that Karaf provides an OSGI runtime whereas Fabric is for managing multi-container deployments.
You don't start a fabric container. You need a Fabric agent or something similar for that. Not very familiar with it, but you can refer Fuse's documentation here and here regarding this.
Hawtio is basically a visual management console for various containers.
You can definitely deploy your OSGI bundle directly into a Karaf container. There are various commands such as :osgi:install " OR placing the bundle at FuseInstallDir/deploy. The Documentation it explains much better.
A Fabric is just a group of commonly managed Karaf containers. It lets you manage your containers using Profiles instead of just features and bundles.
Once you have started a Karaf container you can CREATE a Fabric. Follow these instructions: https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_Fuse/6.2.1/html-single/Fabric_Guide/index.html#Deploy-Fabric-Create . Any other Karaf containers you start will then be JOINED to the existing Fabric.
Once the Fabric has been created, localhost:8181/hawtio will have Fabric specific content
If you are using Fabric, then you can use the fabric8 Maven plugin to deploy your application to a Profile directly. See more details here: https://fabric8.io/gitbook/mavenPlugin.html . Basically you can just run mvn fabric8:deploy and it will update the fabric to use your new code. Be careful here as this will tell Fabric where to find your new code in its list of Maven repos. If you have not deployed your code to a central or shared repo and it is only on your local machine, and the container that is getting the deployment is on a separate machine, it will not work.
Be sure to read up on how profiles work as well, because adding your code to a profile does not add it to a container unless that container is already set up to include the profile you are updating. The fabric guide I linked first explains this well.