cloudfoundry

how to download pip dependencies locally? [duplicate]

纵饮孤独 提交于 2019-11-29 14:33:18
问题 This question already has answers here : How to install packages using pip according to the requirements.txt file from a local directory? (12 answers) Closed 2 years ago . I am running my python application that has requirements.txt file which contains various dependencies. I am deploying this application in a Pivotal Cloud Foundry environment. However, the environment I am deploying in it airgapped. Therefore I can't seem to get the dependencies. The Git repo for python CF buildpack suggests

Cannot run Cloudfoundry Task - Unexpected Response 404

烂漫一生 提交于 2019-11-29 13:45:28
After my app is successfully pushed via cf I usually need do manually ssh-log into the container and execute a couple of PHP scripts to clear and warmup my cache, potentially execute some DB schema updates etc. Today I found out about Cloudfoundry Tasks which seems to offer a pretty way to do exactly this kind of things and I wanted to test it whether I can integrate it into my build&deploy script. So used cf login, got successfully connected to the right org and space, app has been pushed and is running and I tried this command: cf run-task MYAPP "bin/console doctrine:schema:update --dump-sql

Bluemix spark-submit — How to secure credentials needed by my Scala jar

旧时模样 提交于 2019-11-29 12:04:36
I have a Spark application that I am submitting to the Bluemix Spark Cluster. It reads from a DASHDB database and writes the results to Cloudant. The code accesses the DASHDB using both Spark and JDBC. The userid & password for the DASHDB database are passed as arguments to the program. I can pass these parameters via spark-submit but I don't think that would be secure. In the code I need to know the credentials of the DASHDB database because I am using JDBC to connect to various tables. I am trying to find the "Best Practices" way to pass credentials using spark-submit in a secure manner.

Keycloak standalone cluster on Cloud Foundry

时光毁灭记忆、已成空白 提交于 2019-11-29 09:01:05
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 name="jgroups-mping" interface="private" port="0" multicast-address="${jboss.default.multicast.address

What is the point of Node.js [closed]

末鹿安然 提交于 2019-11-28 20:01:59
问题 Ok this is probably a little blunt and to the point, but what is the point/need for Node.js I've noticed it mainly through CloudFoundry but just not too sure what its supposed to be doing. However I am guessing its probably something pretty big as why else would VMWare be supporting it. Thanks in advance. 回答1: It's an... Efficient and 100% event driven IO framework, flexible enough to use the best underlying OS features it can find, presenting an API in a high-level programming language (the

使用devstack在ubuntu server(64)上安装openstack囫囵吞枣式

久未见 提交于 2019-11-28 19:06:16
说要部署一套cloudfoundry v2的代码 欲装cf2先装出一个可用的openstack 哎,惭愧,对linux还是不熟悉,对openstack仅停留在是一个iaas平台的,具体组件架构不知 使用bosh-cli操作bosh server部署cf2 的各个组件到各个iaas平台上,vm的vsphere啥的都不现实,只能尝试openstack,不懂原理希望有一个单机版的openstack,于是搜到devstack,还不知道能不能将cf2装上去。等这步openstack装成功了再试。 我的环境准备: 1、oracle virtualbox 新装一个ubuntu-12.04-server-amd64,干净的服务器版,选择安装软件时我只选了openssh和package manager; 2、安装git 3、因为devstack会从网络上下载大量代码,公司的电脑必须通过代理上网,于是我配置了/etc/profile在最后加入了,我也不知道git_proxy有没有用,有很多文章说一定要使网络能直连网络的。还有个apt的代理也请设置,如果有代理。 export https_proxy=http://10.0.4.211:3128 export http_proxy=http://10.0.4.211:3128 export git_proxy=http://10.0.4.211:3128

Spring Security with HTTPS on CloudFoundry

早过忘川 提交于 2019-11-28 09:00:28
问题 I tried to access my application on CloudFoundry with the following configuration in the spring security xml <intercept-url pattern="/signup*" access="permitAll" requires-channel="https" /> but it gives me error This webpage has a redirect loop However when I changed it to requires-channel="http" I can see my page normally. In both cases I used https on my application. Is this the expected behavior ? 回答1: I have the same issue when I tried to secure my pages with HTTPS using Spring Security.

Bluemix spark-submit — How to secure credentials needed by my Scala jar

放肆的年华 提交于 2019-11-28 05:28:20
问题 I have a Spark application that I am submitting to the Bluemix Spark Cluster. It reads from a DASHDB database and writes the results to Cloudant. The code accesses the DASHDB using both Spark and JDBC. The userid & password for the DASHDB database are passed as arguments to the program. I can pass these parameters via spark-submit but I don't think that would be secure. In the code I need to know the credentials of the DASHDB database because I am using JDBC to connect to various tables. I am

How to get OAuth token from CloudFoundry

我的未来我决定 提交于 2019-11-28 03:49:11
问题 I want to get data from cloud foundry using curl, but I'm not able to authenticate (oauth against CF). Please, could someone point me to and example how to get oauth token? I want to use login name and password. Thanks 回答1: This isn't exactly what you asked for, but if a recent cf cli is installed you can login as normal and then use the cf curl command to run raw requests. For example $ cf login (or cf auth for non-interactive login) $ cf curl /v2/spaces/c4e73f65-4dbc-47dc-9d21-e8c566c40587

404 Not Found nginx angular routing

房东的猫 提交于 2019-11-27 14:55:13
问题 I Have an Angular application. I run the command ng build --prod --aot to generate the dist folder. In the dist folder I created a file named Staticfile then I uploaded the dist folder to pivotal.io with the following commands: cf push name-app --no-start cf start name-app The app runs well. I have a nav bar, so when I change the path with navbar everything works fine. But when I do it manually (I enter the url myself) I have this error 404 Not Found nginx . This my app.component.ts: const