spring-cloud-deployer-cloudfoundry | Spring Cloud Deployer implementation for Cloud | Microservice library
kandi X-RAY | spring-cloud-deployer-cloudfoundry Summary
kandi X-RAY | spring-cloud-deployer-cloudfoundry Summary
This project provides a common means to deploy applications to Cloud Foundry based on the Spring Cloud Deployer SPI.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Builds the tree of expressions
- Store expressions in the string
- Add a value to the set
- Checks the next value
- Deploys an application
- Creates a map of command line arguments
- Adds the environment variables to the application environment
- Push an application into the deployment
- Schedules the schedule
- Retrieves the number of jobs that are available
- Schedules a task for execution
- Retrieves the job id associated with the specified PCF job
- Deletes the application file
- Delete file or directory
- Determine if the resource should be deleted
- Request bind service
- The task launcher will be used by the client
- Initialize the app name prefix
- Retrieves the log message
- Lists all spaces
- List organization id
- Creates an AppStatus object from the application details
- Launches a reactor
- Transforms getTask response to TaskStatus
- Get attributes
- Retrieves the log for a task
spring-cloud-deployer-cloudfoundry Key Features
spring-cloud-deployer-cloudfoundry Examples and Code Snippets
Community Discussions
Trending Discussions on spring-cloud-deployer-cloudfoundry
QUESTION
I have created an app with spring batch(with partition) application taking example of this https://github.com/mminella/S3JDBC. My app is reading some files from object store and doing some processing and writing back to object the store. My app with local partition works fine in my machine.
I changed the maven, to run in cloud foundry , did change for deployer partition handler and step execution listener and deploying on pcf.
But while trying to push and run the app on pcf , I am getting an issue : Failing URI /v2/info. I tried to log the error found that there is one call to my app e.g https://mypcf.com:443/v2/info and after that it gives the error. I cant provide full logs because of some restrictions. So I want to know :
- To deploy a spring batch in pcf(is there any extra configuration needed except the maven dependency and code changes for deployerpartitionhandler and stepexecutionlistener and @cloudtask): org.springframework.cloud spring-cloud-deployer-cloudfoundry 1.1.0.M1
- Is it mandatory to have a separate data base service like my-sql for the partition job. Cant I use H2(the default one, if I don't configure anything)?
- Do I need to do any configuration in pcf to support running multiple partitions ?
- As I am running remote partitioning , can I run that app on local STS or Intellij(not on PCF-DEV)so that it will run my app in pcf(remote) and launch the workers.(Sorry for the stupid question , I am new to PCF).
ANSWER
Answered 2018-Jun-04 at 14:40Thanks for checking out my example. To answer your questions:
- You should be able to use the latest deployer release (instead of that rather old version).
- Yes. Partitioned steps need to all be able to share the same job repository data store so an in memory database like H2 will not work for that use case.
- Besides defining your datasource, that's all that is required to live in PCF. That being said, there are other things that need to be configured, but you can use other mechanisms to do so (Spring Cloud Config Server, application.properties/yml, etc).
- Yes, you should be able to run the master locally and have it deploy the workers onto PCF if you're using the CF deployer.
QUESTION
I have created a stream which is working in local and able to execute task by keeping spring-cloud-deployer-local dependency in the class path of sink application. Now the same application I want to test in PCF by changing the deployer with spring-cloud-deployer-cloudfoundry but app is not able to start in PCF. Please find the PCF log for same .
PCF log
...ANSWER
Answered 2017-Aug-24 at 10:21Apparently, you are missing this reactor-core dependency:
io.projectreactor
reactor-core
${reactor.version}
Choose the compatible version for the reactor core. For instance, if you are using CF deployer 1.2.x then choose any of the 3.0.x versions of reactor-core.
QUESTION
I Try to start a Spring Cloud Task by Message (Http Post). http-->Processor("Transform the Message into an Tasklaunchrequest")-->CloudFoundaryTasklauncher. I use 3 seperate services HTTP-Cnntroller(Source) ,RequestTransformer(Processor),Tasklauncher(Sink).Sending the POST Message to the HTTP-Cnntroller and the Requesttransformation works fine. But it's seems the Tasklaunching not work...I need help (solution without Spring Cloud Dataflow)
Environment: pcfdev version version 6.26.0+9c9a261.2017-04-06.
Tasklauncher
...ANSWER
Answered 2017-Jun-01 at 20:17Few things I noticed.
1)
org.springframework.cloud
spring-cloud-deployer-cloudfoundry
1.0.0.RELEASE
1.0.0.RELEASE is severely old. We are currently at 1.2.0.RELEASE - please use the latest. There have been a lot of stability and performance improvements around stream/task apps and how they are orchestrated via this library. Also, please use the latest release of CF-server as well.
2) The error:
2017-05-30T09:34:37.981+02:00 [APP/PROC/WEB/0] [OUT] Caused by: org.springframework.messaging.MessageHandlingException: nested exception is java.lang.IllegalStateException: Timeout on blocking read
This is usually observed when the predefined timeout setting is not enough to launch the task in SCDF running on CF. We have an env-var SPRING_CLOUD_DEPLOYER_CLOUDFOUNDRY_TASK_API_TIMEOUT
that can be overridden to a larger value. In 1.2.0, we default this to 360s.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install spring-cloud-deployer-cloudfoundry
You can use spring-cloud-deployer-cloudfoundry like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the spring-cloud-deployer-cloudfoundry component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page