diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..ce072c8 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "editor.tabSize": 2 +} diff --git a/deployment/config/dev/app.yaml b/deployment/config/dev/app.yaml new file mode 100644 index 0000000..e25f2dd --- /dev/null +++ b/deployment/config/dev/app.yaml @@ -0,0 +1,65 @@ +--- +apiVersion: v1 +kind: DeploymentConfig +metadata: + labels: + app: frontend + name: frontend +spec: + replicas: 1 + selector: + app: frontend + deploymentconfig: frontend + template: + metadata: + annotations: + openshift.io/container.frontend.image.entrypoint: '["container-entrypoint","/bin/sh","-c","$STI_SCRIPTS_PATH/usage"]' + labels: + app: frontend + deploymentconfig: frontend + spec: + containers: + - image: frontend:latest + name: frontend + ports: + - containerPort: 8080 + protocol: TCP + triggers: + - type: ConfigChange + - imageChangeParams: + automatic: true + containerNames: + - frontend + from: + kind: ImageStreamTag + name: frontend:latest + type: ImageChange +--- +apiVersion: v1 +kind: Service +metadata: + labels: + app: frontend + name: frontend +spec: + ports: + - name: 8080-tcp + port: 8080 + protocol: TCP + targetPort: 8080 + selector: + app: frontend + deploymentconfig: frontend +--- +apiVersion: v1 +kind: Route +metadata: + labels: + app: frontend + name: frontend +spec: + port: + targetPort: 8080-tcp + to: + kind: Service + name: frontend diff --git a/deployment/config/dev/build.yaml b/deployment/config/dev/build.yaml new file mode 100644 index 0000000..43f1285 --- /dev/null +++ b/deployment/config/dev/build.yaml @@ -0,0 +1,42 @@ +--- +apiVersion: v1 +kind: ImageStream +metadata: + labels: + app: frontend + name: frontend +--- +apiVersion: v1 +kind: BuildConfig +metadata: + labels: + app: frontend + name: frontend +spec: + output: + to: + kind: ImageStreamTag + name: frontend:latest + source: + git: + uri: https://github.com/omallo/ruby-ex + type: Git + strategy: + sourceStrategy: + from: + kind: ImageStreamTag + name: ruby:2.3 + namespace: openshift + type: Source + triggers: + - github: + secret: vo6X68zZF5Vo7Gr3VE6i + type: GitHub + - generic: + secret: 1mmeM9GOBvY2aS7rlF0f + type: Generic + - type: ConfigChange + - imageChange: {} + type: ImageChange +status: + lastVersion: 0 diff --git a/deployment/config/test/app.yaml b/deployment/config/test/app.yaml new file mode 100644 index 0000000..0486df3 --- /dev/null +++ b/deployment/config/test/app.yaml @@ -0,0 +1,53 @@ +--- +apiVersion: v1 +kind: DeploymentConfig +metadata: + labels: + app: frontend + name: frontend +spec: + replicas: 1 + selector: + app: frontend + deploymentconfig: frontend + template: + metadata: + annotations: + openshift.io/container.frontend.image.entrypoint: '["container-entrypoint","/usr/libexec/s2i/run"]' + labels: + app: frontend + deploymentconfig: frontend + spec: + containers: + - image: rubex-dev/frontend:test + name: frontend + ports: + - containerPort: 8080 + protocol: TCP + triggers: + - type: ConfigChange + - imageChangeParams: + automatic: true + containerNames: + - frontend + from: + kind: ImageStreamTag + name: frontend:test + namespace: rubex-dev + type: ImageChange +--- +apiVersion: v1 +kind: Service +metadata: + labels: + app: frontend + name: frontend +spec: + ports: + - name: 8080-tcp + port: 8080 + protocol: TCP + targetPort: 8080 + selector: + app: frontend + deploymentconfig: frontend