-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Give instructions for creating an app from a local clone #1
Comments
To do it from a local clone only, without having your own fork on GitHub with the changes, entails using a binary build. The first steps for this are:
Once the first build has completed, then run:
After every code change you make and for which you want to do a build, you need to run again:
Because this is a binary build linked to your local checkout, you cannot use the start build button in the web console as it doesn't have access to the code files and the build will fail. |
The approach I've been taking is this:
I could do an intermediate step with |
That is, deployments are a matter of:
And then the redeployment once the build finishes is automatic. |
…ion mark for create and update
I set up a new project using this one as a template, but it took me a bit of thought to realise the right way to do a deployment based on that.
Push the imported sample code up to the source repo
Use that source repo in the deployment command rather than deploying directly from the local system:
oc new-app python:3.5~https://github.com/ncoghlan/srpminfo.git
That way the deployed app is correctly associated with the relevant source repo.
The text was updated successfully, but these errors were encountered: