ibm-cloud

Git Repo was created missing many project files

谁都会走 提交于 2020-01-25 02:55:48
问题 Have a strange issue. I cloned a bluemix app I had been working on, removed the .git info, modified the manifest, package and project files and then used 'cf push' to create a new app. It appeared to work, the new project was created in bluemix and my files were there when I looked in the Files and Logs tab, so I then clicked 'Add Git' so I could use the 'Edit Code' button. When the pane appeared all of the code files were missing from the git repo (including app.js, the views folder, etc ).

Preserve client source IP for Kubernetes ingress?

最后都变了- 提交于 2020-01-24 17:53:05
问题 I am using this Ingress it is similar to Nginx: https://cloud.ibm.com/docs/containers?topic=containers-ingress_annotation#general When I do: request -> LoadBalancer Service -> client source public IP returned request -> Ingress -> LoadBalancer Service -> some private IP returned I would like to preserve the client source public IP. In my Service I am setting ExternalTrafficPolicy: Local , and it works when hitting the LoadBalancer directly, but I do not know what setting I require when going

iOS Application crashes when trying to register the device to IBM Mobile First Push service on Bluemix

拟墨画扇 提交于 2020-01-22 03:44:26
问题 I have an iOS 9 application running on an iPad mini 4 (iOS 9.0.2). It crashes when trying to register the device to my IMFPush service instance on Bluemix. Here is the code that performs the registration in my App delegate: func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { // Push notifications let notificationTypes: UIUserNotificationType = [UIUserNotificationType.Badge, UIUserNotificationType.Alert,

how to quieten output from spark-submit?

痴心易碎 提交于 2020-01-17 02:21:10
问题 I'm trying to automate spark-submit jobs for spark on bluemix, but I'm receiving a lot of output (e.g. file upload status). This verbose output is fine for manually running spark-submit, but it is just noise when trying to execute if from another script. Is there a way to quieten the output from the bluemix custom spark-submit script ? Update: The output I'm trying to quieten is that generated from the spark-submit script, for example: Uploading ./truststore.jar % Total % Received % Xferd

IBM bluemix : make POST request from Android and how to handle it in NodeJS

时间秒杀一切 提交于 2020-01-16 05:19:08
问题 I am fairly new to the bluemix mobilefirst paltform and stuck at the point where I need to make post request with some parameters from the android client side. I have searched the documentation but not able to find the required . 回答1: Obviously there is more than one way to send POST requests, I'll outline one of them. In order to see end-to-end scenario you can use the HelloTodo Android sample, which uses node.js based Bluemix hosted backend - https://github.com/ibm-bluemix-mobile-services

How to upload the certificate for Client TLS option's after the destination was created

[亡魂溺海] 提交于 2020-01-16 05:03:46
问题 I would like to change a Bluemix Secure Gateway destination's Client TLS option enabled after the destination was created. I edited the destination and upload the certificate. But the certificate seems not to be uploaded. The upload fields didn't change anything. If I check the Client TLS option, the upload field disappeare and I can't upload the certificate. Is the only way to enable Client TLS option and upload the certificate creating a new one? [upload the certificate, but nothing changed

Bluemix object storage - what's the difference between “bound” and “unbound” context?

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-15 12:12:27
问题 I'm trying to figure out how to use the Bluemix Object Storage V2 service. I'm looking at the documentation at https://www.ng.bluemix.net/docs/#services/ObjectStorageV2/index.html#gettingstarted This documentation makes a fundamental distinction between an "unbound context" and a "bound context", without really explaining what this means. What does this mean? And why am I forced into choosing between one means of interaction vs the other? As a followon question: For the "Unbound Context", the

Refused: not authorized error occurs with IBM IoT Foundation on Bluemix

橙三吉。 提交于 2020-01-15 08:23:11
问题 When I attempt to connect to the IBM IoT Foundation with a registered device, I receive the following error message: Error connecting to IBM IoT: {"errorCode":6,"errorMessage":"AMQJS0006E Bad Connack return code:5 Connection Refused: not authorized."} How do I resolve this problem? 回答1: It is possible that you have expired as a member of your org if you created the service (and thereby the org) via the Bluemix dashboard. When you log into Bluemix, you get a 24 hour pass as a guest. You can

How to connect to a SQL Database-s2 from a .php application in BlueMix

青春壹個敷衍的年華 提交于 2020-01-15 04:41:23
问题 So I have created a www site on my private server. It's basically a PHP + javascript page. Now I need to move it to BlueMix. The only problem is that while I used a MySQL db on my private server now I need to use SQL Database-s2 and all (both my php page and the db) on BlueMix. Mike 回答1: You have to parse db information from VCAP_SERVICES\service credentials. If your database service is "SQL Database" you can connect to SQLDB using this example code: //parse VCAP_SERVICES Environment variable

How to connect to a SQL Database-s2 from a .php application in BlueMix

喜欢而已 提交于 2020-01-15 04:41:09
问题 So I have created a www site on my private server. It's basically a PHP + javascript page. Now I need to move it to BlueMix. The only problem is that while I used a MySQL db on my private server now I need to use SQL Database-s2 and all (both my php page and the db) on BlueMix. Mike 回答1: You have to parse db information from VCAP_SERVICES\service credentials. If your database service is "SQL Database" you can connect to SQLDB using this example code: //parse VCAP_SERVICES Environment variable