asyncapi / cli

CLI to work with your AsyncAPI files. You can validate them and in the future use a generator and even bootstrap a new file. Contributions are welcomed!
https://www.asyncapi.com/tools/cli
Apache License 2.0
187 stars 163 forks source link

Help validate Linux installer publishing #303

Closed derberg closed 2 years ago

derberg commented 2 years ago

Reason/Context

This PR introduced automation for publishing of MacOS pkg file. It was also designed in the way that it should be easy to plug in generation of installer files for Windows and Linux.

This issue is for folks that work on Linux machine and can do some local testing to check if all works as expected

Description

derberg commented 2 years ago

/gfi ci-cd

aayushmau5 commented 2 years ago

Hey! I use linux. I'll try this out.

aayushmau5 commented 2 years ago

Though, I'm not sure whether we should really use .deb extension. We should use both ig, since .deb will only support debian based distros. Maybe we can publish .deb installer, and provide installation instructions for other distros.

aayushmau5 commented 2 years ago

image Got this error(truncated).

derberg commented 2 years ago

@aayushmau5 thanks a bunch for looking into this 🙏🏼

yeah .deb is just there in a comment but doesn't have to end up like this. I do not even know what they generate really. IT can be tarball if this is ok, as long as there are good instructions on how to use it on linux

in regards to the error - seem to me like some local permissions issue no?

aayushmau5 commented 2 years ago

in regards to the error - seem to me like some local permissions issue no?

Maybe. I'll look into this, and let you know whether it's an error on my end or not.

derberg commented 2 years ago

@aayushmau5 hey, any luck?

aayushmau5 commented 2 years ago

@derberg Not really. I was able to bypass the previous permission error by using a docker to build the package inside a container. But I got another error. Screenshot from 2022-07-21 10-15-20

I'm not sure if it's a due to the container I'm using. I'll try again.

Edit: Most likely docker container. I'll try with another container.

aayushmau5 commented 2 years ago

@derberg Ok, I was able to get the package. Had to install some additional packages related to apt package manager.

The pack:linux command outputs the following file: image

Ran dpkg -i asyncapi_0.21.2.515e58d-1_amd64.deb to install the deb file. And, we got asyncapi command now :D image

derberg commented 2 years ago

yes yes yes 🚀

THANKS!!!

you ok to take it forward and extend release pipeline as I described in the PR? Existing "renaming" script will for sure have to be extended with rename of the .deb file.

aayushmau5 commented 2 years ago

you ok to take it forward and extend release pipeline as I described in the PR?

Sure. :rocket: