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/
Related
Up until a few weeks ago, when installing the Google Cloud Build GitHub app in a GitHub organization, it was possible to specify that all GitHub projects within that organization would create a build trigger.
Yesterday I noticed that this no longer happens, and new projects added to the GitHub organizations don't trigger a build and I can see a message on the specific commit saying that "this repository is not mapped to a Google Cloud platform project".
Is this an intentional change in spec - so one needs to manually link every new repo via the Console/API - or something I'm missing?
yes. for a new project, you have to manually set up on the cloud build page by "Connect repository". then you can use gcp cli comamnd set the trigger,
gcloud beta builds triggers create github
I want to enable the Google Cloud Build Github App in several Github projects.
So on the Google Cloud Build Github App, I click on grant this app access to your GitHub account
Then on the following screen, I install Google Cloud Build on All repositories.
Then I'm redirecting to a couple of Google Authorization screens.
Then I endup on the Google following screen, where I select an existing Google project-id then accept the consent screen.
The issue is: a git push on any of my Github repo triggers a build in this google project-id (and not on his related Google project-id)
Of course I want
a push in Github project#1 to trigger a build in Google Cloud Build project#1
a push in Github project#2 to trigger a build in Google Cloud Build project#2
There is now an "Add another project" button that allows you to connect repositories directly to different projects when setting up the Google Cloud Build connection.
See this screenshot:
I believe that's because the app works on the Account level and not on the project level.
I'm trying to use the bluemix demo from GitHub, node.js cloudant sample (https://github.com/ibmecod/nodejs-cloudant).
When I click the "Deploy to IBM cloud" button in the README to create the toolchain in bluemix, I get the following error in IBM Cloud
Template Error
Repository not found.
Github repo not found: https://github.com/ibmecod/nodejs-cloudant
Not sure what is going on, that URL is fine if I paste it into my browser.
t
The issue was with a temporary problem in one of the regions.
A solution can be to switch to another region where the open toolchain is available.
The Create Toolchain works again for the Demo.
Here was the issue which is now resolved:
https://console.bluemix.net/status/notification/e9a442353742c249572c49226c5208f5
You can view the status of the IBM Cloud here:
https://console.bluemix.net/status
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've existing Web application developed and would like to import the entire repo into Bluemix. This web application required Web Server, Node.js and Bootstrap. Which is the most appropriate buildpack under CloundFoundry should I use?
I've uploaded my application to Github
https://github.com/mikeytsk/signage_example_0408
Thanks
Michael
use following steps to add your git repository for Deploying app on Bluemix.
1) Create an app on bluemix by clicking on "Cloud Foundry app "and then
Then on Web -
and Then choose SDK for Node.js-
2) Give you App a name. You can see your App staging and started on Bluemix.
3) Click on the App and you will be redirected to App overview page. There you will find ADD GIT option at top right corner.
4) A pop will appear asking you to create git Repository. Click on "Create" option to create one.
5) Now you can see a git repository created for you. The link is given at top right corner. But the Git repository created will be in hub.jazz.net not GITHUB.
6) To Sync your app with Github account, click on the Git url, a new tab will open with Git Repository shown to you. Click on the button at right top corner.
7) A pop will come up. Select Change repository and link you Git hub account with Bluemix.
8) Clicking on Authorise with Github will take you to github page, where you can authorise Bluemix to access your Repository. Once, its done. It will be easy for you to use your existing Repository with Bluemix.
In case, you can also go through the Bluemix Documentation for further clarity. Following is the link -
https://console.ng.bluemix.net/docs/starters/deploy_devops.html
Hope this helps you, Let me know if you face any issue.