Custom compilation of Openshift origin-web-console
Compilation
-
Build project
# in origin-web-console repo dir make build
- Commit changes
-
Clone
origin-web-console-server
to a proper location. Typically it’s~/go/src/github.com/openshift/origin-web-console-server
go get github.com/openshift/origin-web-console-server
-
Select branch matching to branch used in
origin-web-console
project.# in origin-web-console-server repo dir git branch <branch-name>
-
Vendor origin-web-console files
GIT_REF=<origin-web-console commit reference> CONSOLE_REPO_PATH=<path to origin-web-console repo dir> make vendor-console
-
Create the image
OS_BUILD_ENV_PRESERVE=_output/local/bin hack/env make build-images
New image is available in local docker registry as
openshift/origin-web-console:latest
.
Cross-compilation of console
, catalog
and common
Described in official README.
Deployment
- Let’s have a cluster running. E.g.
oc cluster up
. -
Change image in deployment specification:
oc login -u system:admin oc patch deployment/webconsole --patch '{ "spec": { "template": { "spec": { "containers": [ { "name": "webconsole", "image": "openshift/origin-web-console:latest" } ] } } } }' -n openshift-web-console