appsody / tekton-example

Example implementation of a tekton pipeline that deploys an Appsody project. This repo will be archived soon.
Apache License 2.0
11 stars 20 forks source link

java-microprofile YAMLFILE appsody-service.yaml is not found in expected location #7

Closed dacleyra closed 5 years ago

dacleyra commented 5 years ago

The appsody-build-task runs the following container For java microprofile the YAMLFILE appsody-service.yaml is not found under /workspace/extracted it is found under /workspace/appsody-source

    - name: install-knative
      image: lachlanevenson/k8s-kubectl
      command: ['/bin/sh']
      args: ['-c', 'find /workspace/extracted -name ${YAMLFILE} -type f|xargs kubectl apply -f ; sleep 3600']
chilanti commented 5 years ago

Short term, we will change that find command to point to /workspace/appsody-source. The reason why the pipeline doesn't find it in this case is that the Java stack mounts only certain elements of the project "root" directory (pom.xml and the src directory). The extract step of the pipeline - therefore - fails to extract the appsody-service.yaml, if it isn't under src.

neeraj-laad commented 5 years ago

This has been fixed using the current work around in https://github.com/appsody/tekton-example/pull/8