cloudfoundry

Context routing for two different apps

夙愿已清 提交于 2019-12-22 00:27:05
问题 I deploy two different apps to CF and I want to be able to use the context path routing for those two apps e.g. lets say I've two apps that deployed and I was able to consume it with the following URL. 1. app1.domain.com 2. app2.domain.com Now I want somehow to use the context path routing of CF to be able to use this apps like following 1. something.domain.com/app1 2. something.domain.com/app2 My question are: I missing the "something", what should I put in the apps manifest to be able to

Does Cloudfoundry support apps that require larger memory?

☆樱花仙子☆ 提交于 2019-12-21 05:46:14
问题 I have been developing a website using grails and demo'ing it using Cloudfoundry. Grails and Cloudfoundry are awesome! The are easy to use with support from grails plugins and tools in STS. My app uses MySQL, MongoDB, SpringSecurity, and more. I have only used it with one user logged in and I periodically get java.lang.OutOfMemoryError: PermGen space I have increased the memory to 1G using the grails plugin. I tried to set JAVA_OPTS to increase the memory and this did not work. I am going to

CouchDB in CloudFoundry?

寵の児 提交于 2019-12-20 06:40:08
问题 I review the Cloud Foundry project and try to install it on a server I will use Couchdb as a database service. My principal question is : How use CouchDB in Cloud Foundry? I install a CF instance with : vcap_dev_setup -c devbox_all.yml -D mydomain.com The devbox.yml contains : $ install : - all. In this install the couchdb_node and the couchdb_gateway is present by default. But it seems to be bug in general. When I delete a app and I have this error for example : $ vmc delete notes2

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:

HikariCP Postgresql Driver Claims to not accept JDBC URL

吃可爱长大的小学妹 提交于 2019-12-18 14:08:12
问题 I've pushed my application to cloudfoundry. However every time I connect to my postgresql/elephant sql I received this error Driver org.postgresql.Driver claims to not accept JDBC URL jdbc:postgres://cwkqmdql:SsVqwdLxQObgaJAYu68O-8gTY1VmS9LX@pellefant.db.elephantsql.com:5432/cwkqmdql/ Is there anything I've missed? 回答1: There are a few issues with that URL and a latest PSQL driver may complain. jdbc:postgres: should be replaced with jdbc:postgresql: Do not use jdbc:postgresql://<username>:

Where to place Z/OS license file when push Cloud Foundry PHP app to Bluemix?

五迷三道 提交于 2019-12-18 09:38:51
问题 I would like to connect from Bluemix to Z/OS system, using SecureGatway, but I don't have a Z/OS license file (most probably: db2consv_zs.lic file). I receive SQLSTATE=42968. The SG tunel looks okay. If I get the license.. where do I have to copy/install it when I push my local project to CIO Bluemix? Shall I copy it to the php buildpack? And will it be registered in the cloud environment? Is there any other way to connect from a Blue Foundry PHP app to a blue zone Z/OS system? 回答1: 1,

Keycloak standalone cluster on Cloud Foundry

a 夏天 提交于 2019-12-18 05:26:10
问题 How to configure Keycloak standalone cluster on Cloud Foundry? I tried to use docker image jboss/keycloak:4.5.0.Final with internal routing: env: JGROUPS_DISCOVERY_PROTOCOL: dns.DNS_PING JGROUPS_DISCOVERY_PROPERTIES: dns_query=keycloak-cluster-poc.apps.internal all udp and tcp ports between app instances opened: cf add-network-policy keycloak-cluster-poc --destination-app keycloak-cluster-poc --protocol tcp/udp --port 1-65535 It's not working. Should I expose additional ports? <socket-binding

Spring boot War file deployed in cloud foundry throwing class not found exception

廉价感情. 提交于 2019-12-14 04:24:07
问题 I have created maven multi-module project, one child is spring boot-2.1.8.RELEASE & another Angular 8. Created a war file from both spring boot and angular. Created 'manifest.yml' file in parent project, pushed war file to pivotal cloud foundry. Getting ClassNotFoundException org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer . Below are the logs: 2019-11-13T15:32:54.968-05:00 [APP/PROC/WEB/1] [OUT] at java.lang.Thread.run(Thread.java:745) 2019-11-13T15:32:54.968-05

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

Is there any known limit for the size of an app uploaded and for the GBs assigned to a runtime?

青春壹個敷衍的年華 提交于 2019-12-13 19:30:35
问题 I was asked to deploy a Java EE application of 700MB (single EAR file) which requires 8 GB of RAM to execute. I searched the docs but I didn't found any documented limit for those two parameters: size and RAM. Any URL or idea? Thanks! 回答1: The size of the application is limited to 1GB as mentioned here. The Memory allocation is limited to 8GB per app, you can see this when you try to allocate more than 8GB in the Bluemix UI as it either resets to 8GB or if, using the toggle, doesn't allow you