Ratnadeep Debnath
0d86f3e087
Updated docs for openshift buildconfig feature
...
- Added buildconfig doc in user guide.
- Add inline code documentation to explain why buildconfig
object needs to be created after imagestream, because of
https://github.com/openshift/origin/issues/4518
2016-12-28 19:24:45 +05:30
Ratnadeep Debnath
7c959b65d4
Fixed typos in openshift buildconfig
...
- spelling mistake
- pass compose file dir instead of compose file to initBuildConfig call
- Use as default value for cli --build-branch option
- Pass current build branch to buildconfig related functions instead of opt.BuildBranch
- Fix printing buildconfig source branch in logs.
2016-12-28 19:23:37 +05:30
Ratnadeep Debnath
4d3347d300
Remove dangling cli dir after rebase.
2016-12-28 17:02:33 +05:30
Ratnadeep Debnath
44f94cc072
Fixes/updates based on review.
2016-12-28 17:02:33 +05:30
Ratnadeep Debnath
d4561c6f51
Updated glide dependencies
...
Added:
- github.com/openshift/origin/pkg/build/api/install
- github.com/openshift/origin/pkg/build/api/v1
2016-12-28 17:02:33 +05:30
Ratnadeep Debnath
a753f35d42
Added docs for openshift unit tests.
2016-12-28 17:02:33 +05:30
Ratnadeep Debnath
4ead7156f4
Renamed pkg test to testutils.
2016-12-28 17:02:33 +05:30
Ratnadeep Debnath
b62fb02571
Fix openshift buildconfig info logs
...
based on review.
2016-12-28 17:02:33 +05:30
Ratnadeep Debnath
ec09ca428b
Generate openshift imagestream when build is absent.
2016-12-28 17:02:33 +05:30
Ratnadeep Debnath
c8d8cbbba9
Added unittests for openshift buildconfig integration.
2016-12-28 17:02:32 +05:30
Ratnadeep Debnath
f0165d209f
In buildconfig, get git's current remote URL instead of current branch's remote.
2016-12-28 17:00:34 +05:30
Ratnadeep Debnath
bbbd4037b4
Update command to fetch current git remote for buildconfig.
2016-12-28 17:00:33 +05:30
Ratnadeep Debnath
a1797a8d07
In buildconfig, detect current branch and it's remote url as defaults.
2016-12-28 17:00:33 +05:30
Ratnadeep Debnath
875c7d95dc
Include buildconfigs in kompose deployment.
2016-12-28 17:00:33 +05:30
Ratnadeep Debnath
3b13dae515
Fix govet warning for openshift buildconfig.
...
Go vet warning was 'composite liternal uses unkeyed fields'.
2016-12-28 17:00:33 +05:30
Ratnadeep Debnath
d8ec3db673
Bugfix in specifying custom build repo for buildconfig.
2016-12-28 17:00:33 +05:30
Ratnadeep Debnath
ba9995c17b
Update cmd to get git remote url for backwards compatibility
...
with older git-2.6.x
2016-12-28 17:00:33 +05:30
Ratnadeep Debnath
eb719f85c2
Fix tests for buildconfig support.
2016-12-28 17:00:33 +05:30
Ratnadeep Debnath
e83b454536
Bugfix: Accept abs path for compose file for buildconfig.
...
Change directory to compose file dir when resolving git remote.
2016-12-28 17:00:33 +05:30
Ratnadeep Debnath
bea50b1608
Fix tests for buildconfig.
2016-12-28 17:00:33 +05:30
Ratnadeep Debnath
1a7b19c070
Resolve/print buildconfig source repo info globally for compose project.
2016-12-28 17:00:33 +05:30
Ratnadeep Debnath
f5566d4097
Improve error handling and logging for openshift buildconfig creation.
...
- Error out on failure to create buildconfig, with meaningful error messages, e.g., git missing, error in fetching git remote, error in creating build context, etc.
- Add info log for build repo/branch being used.
2016-12-28 17:00:33 +05:30
Ratnadeep Debnath
6f3e670af1
Refactor openshift buildconfig CLI options.
...
- Remove --buildconfig, -bc option. Create buildconfig if service has build info
- Rename --branch to --build-branch
- Rename --repo to --build-repo
2016-12-28 17:00:33 +05:30
Ratnadeep Debnath
fa724fe12d
Allow specifying repo,branch info for buildconfig over CLI.
2016-12-28 17:00:33 +05:30
Ratnadeep Debnath
a9241e6fe5
Added example for openshift buildconfig.
2016-12-28 17:00:33 +05:30
Ratnadeep Debnath
9e2849addf
In Openshift, don't create imagestream tags for a service with build diretive.
2016-12-28 17:00:33 +05:30
Ratnadeep Debnath
6156d144f2
Fix generating project source repo URL in openshift buildconfig.
2016-12-28 17:00:33 +05:30
Ratnadeep Debnath
efc5203d82
Fix creating build context dir relative to project root dir.
2016-12-28 17:00:33 +05:30
Ratnadeep Debnath
f46274be38
In buildconfig, remove trailing newline from project's remote git repu URL.
2016-12-28 17:00:33 +05:30
Ratnadeep Debnath
6d8a6a3fc8
In buildconfig, only set strategy type as Docker
...
and do not set other details like imagestream to build from, etc.
2016-12-28 17:00:33 +05:30
Ratnadeep Debnath
a2a731f30c
Generate context path relative to project root dir in buildconfig.
2016-12-28 17:00:33 +05:30
Ratnadeep Debnath
1215a6366e
Updated Godeps and vendors.
...
Added:
- github.com/openshift/origin/pkg/build/api/install
- github.com/openshift/origin/pkg/build/api/v1
2016-12-28 17:00:32 +05:30
Ratnadeep Debnath
92b6678d1b
Initial implementation of BuildConfig support for Openshift provider.
2016-12-28 17:00:32 +05:30