diff --git a/Dockerfile b/Dockerfile index f55ddad033..5e830aeb3b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ WORKDIR /work/ COPY --from=builder /work/target/hacbs-test.jar /deployments -EXPOSE 8080 +EXPOSE 8081 ENV AB_JOLOKIA_OFF="" ENV JAVA_APP_JAR="/deployments/hacbs-test.jar" diff --git a/devfile.yaml b/devfile.yaml index 4172790aa7..dd1359d92f 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -22,3 +22,46 @@ components: uri: Dockerfile buildContext: . rootRequired: false + - name: outerloop-deploy + kubernetes: + inlined: |- + kind: Deployment + apiVersion: apps/v1 + metadata: + name: hacbs-jvm-build-test-project + spec: + replicas: 1 + selector: + matchLabels: + app: hacbs-jvm-build-test-project + template: + metadata: + labels: + app: hacbs-jvm-build-test-project + spec: + containers: + - name: hacbs-jvm-build-test-project + image: hacbs-jvm-build-test-project:latest + ports: + - name: http + containerPort: 8081 + protocol: TCP + resources: + limits: + memory: "1024Mi" + cpu: "500m" +commands: + - id: build-image + apply: + component: image-build + - id: deployk8s + apply: + component: outerloop-deploy + - id: deploy + composite: + commands: + - build-image + - deployk8s + group: + kind: deploy + isDefault: true