apache / cloudstack-cloudmonkey

Apache Cloudstack Cloudmonkey
Apache License 2.0
91 stars 60 forks source link

How to download cmk in scripts? #110

Closed synergiator closed 2 years ago

synergiator commented 2 years ago

To distribute the Cloud Monkey binary, I would prefer an URL/source which makes sense - or maybe it's time for a distribution via Linux OS package managers?

Copy-pasting release link from this project's releases page looks like this:

https://github.com/apache/cloudstack-cloudmonkey/releases/download/6.2.0/cmk.linux.x86-64

but in fact is a redirect to something like this:

https://objects.githubusercontent.com/github-production-release-asset-2e65be/13641478/f6fab181-7336-4d6b-98a8-d75056b61755?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20211222%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211222T165227Z&X-Amz-Expires=300&X-Amz-Signature=50f6cf068658d484709c589c5b45d51baf99ff17ee96802301e24433155f82e4&X-Amz-SignedHeaders=host&actor_id=1834666&key_id=0&repo_id=13641478&response-content-disposition=attachment%3B%20filename%3Dcmk.linux.x86-64&response-content-type=application%2Foctet-stream
weizhouapache commented 2 years ago

@synergiator Does the links in following URL work for you ? https://github.com/apache/cloudstack-cloudmonkey/releases/tag/6.2.0

synergiator commented 2 years ago

@weizhouapache hi - these links are redirects and not working for me. I have adjusted the issue description to emphasize the problem.

rohityadavcloud commented 2 years ago

@synergiator you can ofcourse wget the link, which will handle the redirection. There is a mirror here you can use too: https://dl.yadav.cloud/cmk

synergiator commented 2 years ago

@rohityadavcloud thx for the workaround

@weizhouapache what I do:

wget https://github.com/apache/cloudstack-cloudmonkey/releases/tag/6.2.0
ls -alh 6.2.0
-rw-rw-r-- 1 user user 155K Jan 11 09:24 6.2.0
tail 6.2.0
    </clipboard-copy>
  </div>
</template>
  </body>
</html>
synergiator commented 2 years ago

ok I see :-) this one works:

https://github.com/apache/cloudstack-cloudmonkey/releases/download/6.2.0/cmk.linux.x86-64

Sorry!