Add support to perform build in "odo deploy" using S2I strategy#3832
Add support to perform build in "odo deploy" using S2I strategy#3832Shraddhak22 wants to merge 99 commits into
Conversation
…o parse_dockerfile
…he projects source
Signed-off-by: Steven Groeger <groeges@uk.ibm.com>
Signed-off-by: Steven Groeger <groeges@uk.ibm.com>
Signed-off-by: Steven Groeger <groeges@uk.ibm.com>
- Downloads Dockerfile into memory rather than onto the hosts machine - Validates if a Dockerfile is present in the project source, if one isn't specified by the devfile - Validates the contents of the Dockerfile (that there is a FROM on the first non-comment/non-whitespace line) - Validates the tag passed as an arg conforms to the correct character-set - Copies all project source files into the container rather than new/updated - Additional Testing - More appropriate error/warning messages
Co-authored-by: Cameron McWilliam <cam.mcwilliam@me.com>
* Add test List URL function Signed-off-by: Steven Groeger <groeges@uk.ibm.com> * Update logging within maifest deploy Signed-off-by: Steven Groeger <groeges@uk.ibm.com> * Add preliminary support for multiple manifest in single yaml Signed-off-by: Steven Groeger <groeges@uk.ibm.com> * Update service manifest with ClusterIP value before update. Signed-off-by: Steven Groeger <groeges@uk.ibm.com> * Merge deployDelete code and update to support multiple doc in yaml Signed-off-by: Steven Groeger <groeges@uk.ibm.com> * Fix source formatting Signed-off-by: Steven Groeger <groeges@uk.ibm.com> * Add some extra checks on waitManifestDeployComplete function Signed-off-by: Steven Groeger <groeges@uk.ibm.com>
alpha.deployment-manifest Signed-off-by: Steven Groeger <groeges@uk.ibm.com>
Signed-off-by: Steven Groeger <groeges@uk.ibm.com>
Signed-off-by: Steven Groeger <groeges@uk.ibm.com>
* Remove CommonPushOptions and do some clean up * Move validation, add better user experience, remove devfile.yaml flag
Signed-off-by: Steven Groeger <groeges@uk.ibm.com>
* Make 2.1.0 schema = 2.0.0 schmea + dockerfile component
Kaniko image build strategy to use initContainer to remotely copy source to builder pod.
…istries (#163) * Kaniko build strategy to support pushing images to internal registry
Add unit tests to Kaniko build in "odo deploy"
…ternal registries (#172) * Add s2i build strategy support in odo deploy.
|
@Shraddhak22: PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @Shraddhak22. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
Closing this PR as it has diverged |
What type of PR is this?
What does does this PR do / why we need it:
This PR extends current "odo deploy" implementation by allowing build using S2I build strategy
NOTE: This PR builds on top of work contained in #3478 and #3751, and must only be merged after #3478 and #3751 has been merged
Which issue(s) this PR fixes:
Fixes #3846
PR acceptance criteria:
How to test changes / Special notes to the reviewer:
odo create nodejs --starter=nodejs-starterodo url createNote: scriptLocation and incrementalBuild are optional parameters for S2I buildGuidance
odo deploy --tag=<imageTag>NOTE: Please supply complete destination under --tag
( for ex: image-registry.openshift-image-registry.svc:5000/namespace/imagestream or docker.io/username/repository-name)
NOTE: (Relevant to external registry push only) if --dockerconfigjson is not specified, config.json is picked up from ~/.docker. Please ensure the default config.json file contains a valid auth token. External registry push is currently only configured for Dockerhub
NOTE You can pass multiple build guidance in devfile, the first one from list will be picked up to decide build strategy, e.g in below scenario dockerfile guidance will have priority over s2i (Specific to "odo deploy").