pivotal-cloud-foundry

How can I get the python xmlsec library running on Pivotal Cloud Foundry

非 Y 不嫁゛ 提交于 2019-12-11 06:45:54
问题 I'm in the process of trying to get the python module python3-saml working on a cloud foundry app that is using the standard python buildpack and cflinuxfs2 stack. This module relies on the python xmlsec module as a dependency, but I'm unfortunately running into issues with getting it working. I've put together a requirements file and have vendored all of the python dependencies, but I keep getting the following error when I go to run the "cf push" command. Running setup.py install for xmlsec

Cloud foundry app status or health notification?

断了今生、忘了曾经 提交于 2019-12-10 22:17:22
问题 Is there a way to get some notification when a Cloud Foundry application fails or is unreachable? I mean to register to some deployed app and if the status of the application is changed to failed or something, I want to receive a notification. 回答1: On Pivotal Cloud Foundry, when a app crashes, an event is emitted thru the firehose. PCF Metrics tile, available from Pivotal, can be deployed to your PCF foudnation. PCF Metrics will track all events for apps running on the foundation and are

Pivotal Cloud Foundry - Connecting to external oracle database

徘徊边缘 提交于 2019-12-10 19:27:11
问题 I am creating a Spring boot application that connects to an oracle database which is not managed by (or residing outside) the PCF. In my local development environment i configured the database connection details in application.properties file. Could someone share how to achieve this in PCF without hard-coding the details in application.properties. 回答1: Cloud Foundry provides you with something called as User Provided Service, that allows you to connect any other service like Oracle database

How to set Steeltoe Dynamic Logging works with 3rd party loggers as Serilog?

我怕爱的太早我们不能终老 提交于 2019-12-10 19:00:49
问题 I have ASP.NET Core 2.1 app in Pivotal Cloud Foundry where we want to be able to configure logging levels on fly. As logger provider we are using Serilog. Is it possible that Steeltoe Dynamic Logging works properly with 3rd party loggers and how? Here is what I tried: In Program.cs: public static IWebHostBuilder CreateWebHostBuilder(string[] args) => WebHost.CreateDefaultBuilder(args) .UseCloudFoundryHosting() .ConfigureLogging((builderContext, loggingBuilder) => { loggingBuilder

Spring Cloud Config Server + RabbitMQ

懵懂的女人 提交于 2019-12-10 14:24:32
问题 I created spring cloud config server and client and they work as expected. I have added @RefreshScope to my client and I am able to see the new properties getting fetched after hitting /refresh endpoint. But I was told that when I deploy it in cloud foundry environment , I must integrate it with RabbitMQ in order for all the instances to receive the refresh message. Is it possible to point me to a link which explains this problem and solution in detail? 回答1: Spring Cloud Bus This is what you

Cloud Foundry Bind services/cups datasource number of connections

末鹿安然 提交于 2019-12-08 12:15:47
问题 I am using hikari with spring boot, local testing I can see 50 active connections. After I deployed to cloud foundry , I am only able to see 10 active connections. spring.datasource.hikari.maximum-pool-size=50 Seems like cloud foundry bind service is trying to overwrite my application's configuration. How can configure this number in cloud foundry? maybe someone get help from this link, it says if you are running serious application in production , you need to configure

Debug nodejs app in CF

試著忘記壹切 提交于 2019-12-08 10:47:27
问题 I follow this guide how to debug node.js application in CF and its currently not working , https://medium.com/@KevinHoffman/debugging-node-js-applications-in-cloud-foundry-b8fee5178a09#.ekkzo3f63 I've installed the node inspector and I see message in the logs like: 2017-03-23T15:29:21.58+0200 [APP/PROC/WEB/0]ERR Debugger listening on [::]:5858 I did the ssh command Now what should I do ? in the guide it says the following after the ssh export PATH=$PATH:/app/.heroku/node/bin what should be

Cloud foundry tenants - what?

北城以北 提交于 2019-12-07 23:59:43
问题 I reads some docs on cloud foundry and I didnt find the term tenants , my question is if Org is a tenants in cloud foundry term? if not what is the equivalent? 回答1: It could be done that way. You could setup your CF install such that one Org is one tenant. Orgs are scoped such that resources in the org are isolated and not visible unless you're a part of that org. It's not strictly required to have one org to one tenant. Orgs & spaces are just ways to group and limit access to applications

Access PCF DEV from external machine on same network as host

北城以北 提交于 2019-12-07 12:41:35
问题 My intention is to use PCF DEV as an integration test environment for our CI server, as well as a place to demo proof-of-concept projects. I have Pivotal Cloud Foundry DEV setup on a private network in a windows environment. I'm able to access everything fine from the host box, but I and others on my team need to be able to access it from other machines on the network using the cf cli as well as just accessing deployed services. I'm not savvy in the ways of DNS proxy, so I'm not sure whether

Add SSL keystore file to java trusted store for HTTP Client request on PCF (Cloud Foundry)

孤者浪人 提交于 2019-12-07 10:13:08
问题 In my spring boot application I making a https(secure) request. For that I need pass flowing argument as JVM argument. javax.net.ssl.trustStore javax.net.ssl.trustStorePassword Eg : -Djavax.net.ssl.trustStore=~/home/dinusha/keystore.jks -Djavax.net.ssl.trustStorePassword=pass In PCF (Cloud Foundry) I can not copy keystore.jks file to PCF. So how can I pass this values on PCF 回答1: You have to bundle the keystore.jks file with application. Please find the step bellow. Put your keystore.jks file