I am trying to automate the push of a node-red app to Bluemix.
I put my flows into a flow.json file under the defaults directory.
After I push to Bluemix and restage the app, I see the flows in the cloudant nodered database but I do not see them in the node-red editor.
Is there anything else that I need to do?
Related
I want to deploy a liberty application along with server config to Bluemix, I found these options listed in the documentation
https://console.bluemix.net/docs/runtimes/liberty/optionsForPushing.html#options_for_pushing
My question is should we be pushing the app + server always to keep the server config, or it like push app + server for the first time and subsequent pushes can only contain app files ? will the server config be retained?
You need to push the app + server every time.
There are a number of ways to deploy Liberty on the IBM Cloud - the recommended place to get started is on the App Service console:
https://console.bluemix.net/developer/appservice/starter-kits
The documentation has options for Kubernetes / CF Deployment to the Cloud and recommend using the IBM Cloud Dev CLI tooling which containerizes your app to run locally and gives you the option to push the image up when you're ready.
In addition, starter kits set up an example of how you can incorporate DevOps into your app. When you make changes from your Git Repo, it will trigger a hook which will run the app through your testing pipelines, and deploy it to the cloud.
The idea of using containers is so you can package your application with a consistent, reproducible environment, so you can orchestrate and scale your application when necessary.
I'm using Cloud Foundry API to modify apps on IBM Bluemix.
I got oauth key and succeeded in calling simple REST requests, like v2/apps.
However, as I want to update XSP application I need to send a nsf file to bluemix.
I tried to use /v2/apps/:guid request, but according to documentation I can only send application parameters, but I cannot send whole application file.
Is there an endpoint to do that?
There is also an API to Upload the bits for an App, but if my understanding is correct what you are asking is basically to emulate a cf push via REST API. Please note that cf push is complex and is not something that is recommended recreating via API on Cloud Foundry. I don't know what your requirements are, but I'd suggest you to use cf push to do that. Anyway if you want more information on what are the steps it performs (from an high level perspective) you can take a look here. I suggest you also to see this Github Cloud Foundry issue where the user is trying to programmatically recreate the cf push.
In IBM Bluemix you can create and be the member of multiple Organisations. How can I remove redundant organisations?
Deleting an existing organization is not possible at this time. This is limited to Bluemix Public. If you are a Bluemix Dedicated (or) Local user, you can delete existing organizations.
Please see : https://www.ng.bluemix.net/docs/admin/index.html#orgsandspaces
I think org delete must be manually done by bluemix support team. So open a ticket to get it done.
At this doc page
https://console.ng.bluemix.net/docs/admin/adminpublic.html#orgmng
It says:
Deleting an existing organization
Contact Bluemix registration and ID support to delete your
organization.
Note: Deleting operations cannot be reversed. You lose all your
applications and services that are associated with the organization.
You are able to delete organizations using the BX plug-in, also on Bluemix Public. Download and install the CF and BX plug-in using the link below
https://new-console.ng.bluemix.net/docs/cli/index.html#cli
Then use these commands below in the command line:
bx login
bx iam org-delete ORG_NAME [-f --all]
IBM Bluemix evolved over time from a Cloud Foundry public cloud offering over having Local and Dedicated editions to what is IBM Cloud today. There is Cloud Foundry and Cloud Foundry Enterprise Edition (CFEE). CFEE gives users access to the full administrator access and hence more options.
Thus, the answer depends on the context:
for CFEE there is a CLI command ibmcloud cfee org-delete
for the regular (old) public Cloud Foundry it is possible to delete spaces and users, but not orgs. This can be done through the CLI commands.
There is still a Bluemix Admin plugin for Bluemix Local and Bluemix Dedicated (Cloud Foundry for those environments) that allows to delete organizations. However, it does not work on IBM Cloud with Cloud Foundry.
My application using meanjs framework is hosted in Github repository. How do I integrate Bluemix and Git to deploy my application to Bluemix?
Your best option for using Git to deploy to Bluemix from a Github repository is to use this link:
https://bluemix.net/deploy?repository=LINK-TO-YOUR-GITHUB-REPO
This will grab your repository, launch a Bluemix application with it and create a Bluemix DevOps project that allows you to push changes to your application with Git instead of the Cloud Foundry CLI tool.
You can also manually perform this process by starting here (https://hub.jazz.net/create). On this setup page, be sure to select 'Make this a Bluemix Project' so you can deploy your code to Bluemix.
FYI - Just deploying a repository to Bluemix does not mean that it will run on the platform. See here for more info on getting your code to work on Bluemix.
Deploy the project into Bluemix as below:
download meanjs from Github at: https://github.com/meanjs/mean
install dependency packages by npm -install
check and see if the project can run at local by command grunt as meansjs project describes
create a mongolab service in Bluemix with named mean-mongo
check .cfignore file contains below items;
List of files and directories to ignore when deploying to Bluemix (.DS_Store, .nodemonignore, .sass-cache/, npm-debug.log, node_modules/, public/lib, app/tests/coverage/, .bower-*/, .idea/)
push the application by cf push <appname> -p .
Integrate the app to Git
make sure that step 1 completes successfully, and the application is upload to Bluemix successfully
add the app deployed to Bluemix in step 1 to jazz hub by (click the app -> click "ADD GIT" at upper right of the app - > then it will create url to the jazz hub project
login onto jazz hub by clicking "GIT URL" or "EDIT" button at the app page
it will open jazz hub page
further reference
http://www.ibm.com/developerworks/cloud/library/cl-intro1-app/
I have an IBM DevOps Bluemix project in one of my Bluemix accounts and I need to move it to one of my other Bluemix Accounts. How do I do that in the new Bluemix DevOps?
you could take a look at the cloud foundry cli plugins. here is one - https://github.com/mevansam/cf-copy-plugin. This allows you to copy from one space/org/target to another