cloudfoundry

Download Application files from Bluemix

走远了吗. 提交于 2019-12-06 09:18:17
Is there a way to download the content of an application running on Bluemix after staging it? Javediq Bluemix uses cloud foundry (CF) to manage the platform. By default the CF CLI does not have the capability to download the Application files from Bluemix. On CF CLI version 6.10.0 or higher, we can install a download plugin to retrieve these files from Bluemix locally. To install the plugin follow the below commands: $ cf add-plugin-repo CF-Community http://plugins.cloudfoundry.org/ $ cf install-plugin cf-download -r CF-Community Once the plugin is installed you can download the files using

Are mongodb backups made automatically?

时光怂恿深爱的人放手 提交于 2019-12-06 07:09:16
问题 We use two mongodb services and there is now a backup button in the swisscom developer console. Do we have to do the backups manually with this button or are further backups made automatically? if yes, when and how often? 回答1: We make automatically backups, but only for desaster recovery. We don't provide this backups to customer. So please trigger in Developer Portal backup for you. Other option is to automate backup with mongodump or the Filter API. There is an API endpoint for triggering

why does the 'cf run-task' command not work on swisscom cloudfoundry

爷,独闯天下 提交于 2019-12-06 07:01:23
I'm trying to get 'cf run-task' to work on the swisscom cloudfoundry instance. But it fails with even the simplest command: $ cf run-task hostapp "echo SUCCESS" --name task1 Creating task for app hostapp in org xxx / space yyy as xxx@yyy.com... Unexpected Response Response Code: 404 FAILED Is run-task not yet supported in cf api version 2.96.0? (which seems to be the current installed version on the swisscom env) The Swisscom Application Cloud has not activated the cf run-task feature yet. As of now, it's best to use cf ssh and then run the command manually from within your container or

Execute shell script from spring web application deployed on cloudfoundry

▼魔方 西西 提交于 2019-12-06 06:39:23
I am trying to call Btrace script from Spring web application deployed on cloudfoundry. The execution command is /var/vcap/data/dea/apps/petclinic-0-fef4b0e052097a0cd2bedb8018c28dcd/tomcat/webapps/ROOT/WEB-INF/classes/bin/btrace.sh 532 /var/vcap/data/dea/apps/petclinic-0-fef4b0e052097a0cd2bedb8018c28dcd/tomcat/webapps/ROOT/WEB-INF/classes/bin/DatabaseQueries.java But I get this error: java.io.IOException: Cannot run program "/var/vcap/data/dea/apps/petclinic-0-fef4b0e052097a0cd2bedb8018c28dcd/tomcat/webapps/ROOT/WEB-INF/classes/bin/btrace.sh": java.io.IOException: error=13, Permission denied I

Accessing CloudFoundry user-provided services using Spring Cloud connectors

不羁的心 提交于 2019-12-06 06:28:59
问题 I'm trying to use Spring Cloud to consume a generic REST service from a Cloud Foundry app. This service is created using Spring Boot, as follows: package com.something; @RestController public class DemoServiceController { @RequestMapping("/sayHi") public String sayHi() { return "Hello!"; } } This works fine - I can access http://www.example.com/srv/demo/sayHi and get "Hello!" back. Next, I created a user-provided service instance using the CF-CLI and bound it to my app. I can now see the

Is it possible to download or search application logs in Cloud Foundry

可紊 提交于 2019-12-06 02:03:27
I am new to cloud foundry and am trying to find out of there is a way for downloading log files or search them in cloud foundry. I know that I can open the logs files using vmc files but is there any other way of accessing the logs? Thanks, Kinjal Dan Higham I think the easiest way to do this is using the VMC client library, 'cfoundry'. The following ruby script connects and downloads the three main logs: #!/usr/bin/env ruby require 'rubygems' require 'cfoundry' creds = { :username => ARGV[0], :password => ARGV[1] } app_name = ARGV[2] files_to_dl = ['logs/staging.log', 'logs/stderr.log', 'logs

Access PCF DEV from external machine on same network as host

浪子不回头ぞ 提交于 2019-12-05 19:50:54
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 using Acrylic is the right move here or not, since the host machine will have internet access even

How To Deploy A Modular (Multi-app) System To CloundFoundry

可紊 提交于 2019-12-05 18:12:16
I'd like to deploy a modular grails app to cloudfoundry. There's a user facing app that should get installed at ROOT as normal, but then there's a separate administration system that should get deployed to the same instance(s) at /admin. But it looks like you can only deploy 1 app per instance to ROOT? Yes. My understanding is that there's no concept of deploying multiple applications to the same application server instance. In most cases this is OK though. With our BI application we would normally deploy it to the same tomcat instance as another application is running on. But instead we

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

一个人想着一个人 提交于 2019-12-05 15:35:53
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 You have to bundle the keystore.jks file with application. Please find the step bellow. Put your keystore.jks file into you application resources(src/main/resources) folder. Add the keystore.jks path and it's password in

How to use kafka and storm on cloudfoundry?

雨燕双飞 提交于 2019-12-05 08:55:39
I want to know if it is possible to run kafka as a cloud-native application, and can I create a kafka cluster as a service on Pivotal Web Services. I don't want only client integration, I want to run the kafka cluster/service itself? Thanks, Anil I can point you at a few starting points, there would be some work involved to go from those starting points to something fully functional. One option is to deploy the kafka cluster on Cloud Foundry (e.g. Pivotal Web Services) using docker images. Spotify has Dockerized kafka and kafka-proxy (including Zookeeper). One thing to keep in mind is that PWS