cf-resource
cf-resource copied to clipboard
can't deploy stratos UI from a pipeline
hello
i try to doing a pipeline for manage my deploy of Stratos ui : (https://github.com/cloudfoundry-incubator/stratos )
i've done this pipeline :
resources:
- name: stratos-staging
type: cf
source:
api: https://xxxxxxxxxxx
organization: Tools
username: admin
password: ((cf_admin_password))
skip_cert_check: true
space: console
- name: stratos-gh-release
type: git
source:
uri: https://github.com/cloudfoundry-incubator/stratos.git
jobs:
- name : deploy-stratos
plan:
- get: stratos-gh-release
- put: stratos-staging
params:
manifest: stratos-gh-release/manifest.yml
environment_variables:
CF_API_URL: https://xxxxxxxxxx
and i have this error :
Setting api endpoint to https://api.xxxxxxxxxxxxxxxxx...
OK
api endpoint: https://xxxxxxxxxxxxxxxxx
api version: 2.107.0
Not logged in. Use 'cf login' to log in.
API endpoint: https://api.xxxxxxxxxxxxxxxxx
Authenticating...
OK
Use 'cf target' to view or set your target org and space.
api endpoint: https://api.xxxxxxxxxxxxxxxxx
api version: 2.107.0
user: admin
org: Tools
space: console
Pushing from manifest to org Tools / space console as admin...
Using manifest file /tmp/build/put/stratos-gh-release/manifest.yml
Deprecation warning: Specifying app manifest attributes at the top level is deprecated. Found: env.
Please see http://docs.cloudfoundry.org/devguide/deploy-apps/manifest.html#deprecated for alternatives and other app manifest deprecations. This feature will be removed in the future.
Using manifest file /tmp/build/put/stratos-gh-release/manifest.yml
Updating app console in org Tools / space console as admin...
OK
Using route console.xxxxxxxxxxxxxxxxx
Uploading console...
Uploading app files from: /root
Uploading 2.9K, 4 files
Done uploading
OK
Starting app console in org Tools / space console as admin...
Cell 16a44f5d-f092-49e9-afab-fa4676618b68 creating container for instance ebf28d3f-ece1-44ed-9688-952fe70308a0
Cell 16a44f5d-f092-49e9-afab-fa4676618b68 successfully created container for instance ebf28d3f-ece1-44ed-9688-952fe70308a0
Downloading build artifacts cache...
Downloading app package...
Downloaded app package (3.6M)
Downloaded build artifacts cache (20.7M)
Stratos UI Buildpack
-----> Stack cflinuxfs2
-----> Download go 1.9
-----> Download glide 0.13.0
-----> Download Nodejs 6.11.3
-----> Checking versions
---------> Node Version: v6.11.3
---------> NPM Version: 3.10.10
---------> Go Version: go version go1.9 linux/amd64
---------> Glide Version: glide version v0.13.0
Cache directory [/tmp/cache/final] exists
-----> Running stratos build compile [12:47:47]
/tmp/buildpackdownloads/652661b4b3c6701c6981e0b449bf726e/bin/compile: line 77: /tmp/app/deploy/cloud-foundry/build.sh: No such file or directory
Failed to compile droplet: Failed to compile droplet: exit status 1
Exit status 223
Cell 16a44f5d-f092-49e9-afab-fa4676618b68 stopping instance ebf28d3f-ece1-44ed-9688-952fe70308a0
Cell 16a44f5d-f092-49e9-afab-fa4676618b68 destroying container for instance ebf28d3f-ece1-44ed-9688-952fe70308a0
Cell 16a44f5d-f092-49e9-afab-fa4676618b68 successfully destroyed container for instance ebf28d3f-ece1-44ed-9688-952fe70308a0
FAILED
Error restarting application: BuildpackCompileFailed
but if i do same from cli (cf push) with same version of stratos/cf , that works :
cf push
Pushing from manifest to org Tools / space console as admin...
Using manifest file /home/ubuntu/GIT/stratos/manifest.yml
Deprecation warning: Route component attributes 'domain', 'domains', 'host', 'hosts' and 'no-hostname' are deprecated. Found: host.
Please see http://docs.cloudfoundry.org/devguide/deploy-apps/manifest.html#deprecated for the currently supported syntax and other app manifest deprecations. This feature will be removed in the future.
Using manifest file /home/ubuntu/GIT/stratos/manifest.yml
Updating app console in org Tools / space console as admin...
OK
Using route console.xxxxxxxxxxxxxxxxx
Uploading console...
Uploading app files from: /home/ubuntu/GIT/stratos
Uploading 4.6M, 3443 files
Done uploading
OK
Starting app console in org Tools / space console as admin...
Cell 16a44f5d-f092-49e9-afab-fa4676618b68 creating container for instance 9511263a-e10b-45cd-a74f-a74be302dfca
Cell 16a44f5d-f092-49e9-afab-fa4676618b68 successfully created container for instance 9511263a-e10b-45cd-a74f-a74be302dfca
Downloading build artifacts cache...
Downloading app package...
Downloaded app package (8.8M)
Downloaded build artifacts cache (20.7M)
Stratos UI Buildpack
-----> Stack cflinuxfs2
-----> Download go 1.9
-----> Download glide 0.13.0
-----> Download Nodejs 6.11.3
-----> Checking versions
---------> Node Version: v6.11.3
---------> NPM Version: 3.10.10
---------> Go Version: go version go1.9 linux/amd64
---------> Glide Version: glide version v0.13.0
Cache directory [/tmp/cache/final] exists
-----> Running stratos build compile [12:56:24]
Preparing application folder for Cloud Foundry deployment
npm WARN deprecated [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
i see we have not the same behavior :
pipeline :
Using route console.xxxxxxxxxxxxxxxxx
Uploading console...
Uploading app files from: /root
Uploading 2.9K, 4 files
Done uploading
OK
and cli version :
Using route console.xxxxxxxxxxxxxxxxx
Uploading console...
Uploading app files from: /home/ubuntu/GIT/stratos
Uploading 4.6M, 3443 files
Done uploading
OK
do you know why the upload weigth is not the same between this 2 method ? :-/
@jyriok I had similar issue - the problem is with missing path parameter in your pipeline. Your jobs should looks like:
- name : deploy-stratos
plan:
- get: stratos-gh-release
- put: stratos-staging
params:
manifest: stratos-gh-release/manifest.yml
path: stratos-gh-release/
environment_variables:
CF_API_URL: https://xxxxxxxxxx```
and it should fix your issue.
great ! my waiting has not been useless :) thanks a lot !