pivotal-cloud-foundry

Accessing the java executable from a cloudfoundry task command (cf run-task)

空扰寡人 提交于 2019-12-20 02:44:08
问题 I need the java executable to run a java -jar from a cloudfoundry task command. Here is how I try to run the task: cf run-task bignibou-batch "java -jar bignibou-batch/build/libs/bignibou-batch.jar" Here is the error message I get: 2016-12-24T12:53:30.002+01:00 [APP/TASK/358e02df/0] [ERR] bash: java: command not found My manifest uses the java buildpack as follows (see bignibou-batch app at the bottom): --- buildpack: https://github.com/cloudfoundry/java-buildpack.git memory: 1024M env:

Cloud foundry - How to retrieve version of artifact of every app running across Orgs?

喜欢而已 提交于 2019-12-14 04:11:22
问题 In PCF platform, We have multiple Orgs and multiple Spaces within each Org. Each space has multiple apps deployed with manifest file mentioning the artifact version. For example: If you push an app( some-api ) is deployed with below manifest file that has artifact version( 0.0.1 ). --- applications: - name: some-api instances: 1 memory: 1G buildpack: java_buildpack_offline path: target/artifact.jar routes: - route: some.router.com services: - abc - def env: ARTIFACT_VERSION: 0.0.1 Goal is to

Pivotal Cloud Foundry login issue

感情迁移 提交于 2019-12-13 12:29:15
问题 I have a PWS account and after installing Cloud Foundry command line interface (CLI), I tried login from windows command prompt, CYGWIN terminal and Gitbash. In all the above cases, I cannot login by cf login But I am able to login if i issue the command: cf auth email password But the problem with this command is that I am exposing my password on the command line. Question : I would like to know how users of Cloud Foundry Command Line Interface, login to the PWS. Update 04/29: Sharing what i

Pivotal Cloud Foundry - Security Certificates

僤鯓⒐⒋嵵緔 提交于 2019-12-13 07:12:20
问题 My spring boot application is calling a number of external soap services. When I run the app in my local machine , I am required to install all the security certificates in my JVM using keytool command. However when I deploy my app to pivotal cloud foundry platform , the app is not complaining about the security certificates. The services that I consume are primarily hosted in weblogic clusters running on different data centers.Is there a possible explanation as to why the app deployed in pcf

CloudFoundry - How to understand the operating system(OS) environment of an app?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 05:30:34
问题 We push a java app on cloud foundry using cf push with below manifest file applications: - name: xyz-api instances: 1 memory: 1G buildpack: java_buildpack_offline path: target/xyz-api-0.1-SNAPSHOT.jar I understand that, PAAS (ex: cloud foundry) is a layer on top of IAAS(ex:vcenter hosting linux and windows VM's). In manifest file, buildpack just talks about userspace runtime libraries required to run an app. Coming from non-cloud background, and reading this manifest file, I would like to

How spring cloud defines validation interval under the Pivotal Cloud Foundry?

柔情痞子 提交于 2019-12-13 03:04:52
问题 I'm working on application that get the DS from PCF (Pivotal Cloud FoundrY) User provided services. It's working properly but I want to understand how the validation interval is defined. As Spring and PCF are managing my connection pool. I'd like to understand how that works. public DataSource getProfileDS() { PoolConfig poolConfig = new PoolConfig(5, 10, 30000); DataSourceConfig dsConfig = new DataSourceConfig(poolConfig, null); return connectionFactory().dataSource("profileDS", dsConfig); }

Spring Cloud data Flow on CloudFoundry

六月ゝ 毕业季﹏ 提交于 2019-12-12 04:55:29
问题 I have pushed the 1.2.2 version of spring cloud data flow server into PCF (Pivotal Cloud Foundry). I registered an app using maven but creating a task from the App using Flo UI fails with following exception trace, they are a bit unintelligible but looks like there is a ConnectException when trying to connect to default config server at http://localhost:8888. I do not need a config server for now. How do I get rid of this and get on with life? - By the way I am trying to create an on-demand

How to create a CUPS service for mongoDB?

独自空忆成欢 提交于 2019-12-12 04:31:38
问题 I am currently using a local database. Using a terminal to access mongodb. These are all the credentials I have. In my application properties when I provide the following data I am able to retrieve and store data. spring.data.mongodb.database=myNewDB spring.data.mongodb.host=localhost spring.data.mongodb.port=27017 I am trying to use cloud foundry CUPS to connect mongodb with URI. But following the URI guide line I am missing username and password. Where can I find those values? All my data

Unable to deploy/run tasks on Pivotal CF from Spring Cloud Dataflow container error CF-UnprocessableEntity(10008)

空扰寡人 提交于 2019-12-12 04:14:24
问题 Trying to deploy a Java Spring Boot App/Task using Spring Cloud Data Flow. But it fails with foloowing exception CF-UnprocessableEntity(10008): The request is semantically invalid: Task must have a droplet. Specify droplet or assign current droplet to app. Tried the solutions below by SPRING_CLOUD_DEPLOYER_CLOUDFOUNDRY_API-TIMEOUT to 720 and SPRING_CLOUD_DEPLOYER_CLOUDFOUNDRY_TASK_TASK_TIMEOUT to 360 did not work. TaskLauncher cloudfoundry Problems with Tasklaunching https://github.com/spring

How to add mongodb service in application running inside cf?

喜夏-厌秋 提交于 2019-12-12 03:34:08
问题 I have deployed my application in cf running on vagrant machine.But my application requires mongodb .I don't know how to add.Can anyone please hep me with this. rle0249@rle0249-Latitude-3450:~/CloudFoundry$ cf service-brokers Getting service brokers as admin... name url No service brokers found Thanks 回答1: Before you can provision a MongoDB service, or any other service, you need to have an appropriate service broker registered with CF. Service brokers can run anywhere, but are often BOSH