Skip to content

Commit

Permalink
Add basic origin ci-operator definition
Browse files Browse the repository at this point in the history
  • Loading branch information
smarterclayton committed May 27, 2018
1 parent f9ab880 commit 2350680
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,14 @@ prow-jobs: prow-cluster-jobs prow-rpm-mirrors
$(MAKE) applyTemplate WHAT=projects/acs-engine/build.yaml
.PHONY: prow-jobs

projects: gcsweb kube-state-metrics oauth-proxy origin-stable origin-release prometheus test-bases image-pruner-setup autoscaler descheduler node-problem-detector publishing-bot cluster-capacity content-mirror image-registry service-idler
projects: gcsweb kube-state-metrics oauth-proxy origin origin-stable origin-release prometheus test-bases image-pruner-setup autoscaler descheduler node-problem-detector publishing-bot cluster-capacity content-mirror image-registry service-idler
.PHONY: projects

origin:
oc create configmap ci-operator-origin --from-file=projects/origin/config.json -o yaml --dry-run | oc apply -f -
$(MAKE) apply WHAT=projects/origin/src-cache-origin.yaml
.PHONY: origin

image-registry:
oc create configmap ci-operator-image-registry --from-file=projects/image-registry/config.json -o yaml --dry-run | oc apply -f -
.PHONY: image-registry
Expand Down
56 changes: 56 additions & 0 deletions projects/origin/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"tag_specification": {
"namespace": "openshift",
"name": "origin-v3.10",
"tag": "",
"tag_overrides": {}
},
"base_rpm_images": [
{
"namespace": "openshift",
"name": "origin-v3.10",
"tag": "base",
"as": "base"
}
],
"test_base_image": {
"namespace": "ci",
"name": "src-cache-origin",
"tag": "master"
},

"binary_build_commands": "make build",
"rpm_build_commands": "make build-rpms",

"images": [
{
"from": "base",
"to": "cli",
"context_dir": "images/cli/"
},
{
"from": "base",
"to": "hypershift",
"context_dir": "images/hypershift/"
},
{
"from": "base",
"to": "hyperkube",
"context_dir": "images/hyperkube/"
},
{
"from": "cli",
"to": "control-plane",
"context_dir": "images/origin/"
}
],

"tests": [
{
"as": "unit",
"from": "src",
"commands": "ARTIFACT_DIR=/tmp/artifacts JUNIT_REPORT=1 hack/test-go.sh",
"artifact_dir": "/tmp/artifacts"
}
]
}
30 changes: 30 additions & 0 deletions projects/origin/src-cache-origin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
apiVersion: v1
kind: List
items:
- kind: ImageStream
apiVersion: v1
metadata:
name: src-cache-origin
- kind: BuildConfig
apiVersion: v1
metadata:
name: src-cache-origin-master
spec:
successfulBuildsHistoryLimit: 1
failedBuildsHistoryLimit: 2
output:
to:
kind: ImageStreamTag
name: src-cache-origin:master
source:
dockerfile: |
FROM openshift/origin-release:golang-1.9
WORKDIR /go/src/github.com/openshift/origin
RUN umask 0002 && chmod -R uga+rwx . && \
git clone -b master --single-branch https://github.com/openshift/origin.git .
strategy:
dockerStrategy:
from:
kind: ImageStreamTag
name: release-with-clonerefs:golang-1.9
imageOptimizationPolicy: SkipLayers

0 comments on commit 2350680

Please sign in to comment.