Search code examples
openshiftopenshift-originminishift

Openshift Origin (Minishift) - Making changes to application repository pulled on VM


I have installed and configured a custom Laravel private repository hosted on bitbucket on minishift running on my laptop. I found that all the files were imported properly without any issues and the image is running. However, now I want to make configuration changes in my repository for my application to work. How do I make it?

  1. Will I have to import the image from VM on my laptop, work on them and then push the changes back
  2. Or will I be able to access the files or folder from within my editor or IDE?

I am new to Openshift origin and using it for the first time.


Solution

  • If you have your source code on Bitbucket, you would checkout the repository to your local laptop, make the changes, commit them, and push them back to the repository on Bitbucket. You would then tell OpenShift to rebuild the application by clicking on the Start Build button on the build configuration details in the web console, or by using oc start-build on the command line, supplying it the name of the build configuration to do the build for. The rebuilding of the image from the code when done will automatically trigger a new deployment. If you set up a webhook in Bitbucket, you can have it tell OpenShift when new changes have been pushed and that will trigger a build without you needing to do it manually.

    If you are quite new, I would suggest you work through the interactive tutorials at:

    Also read the free eBook on OpenShift.