postmanlabs / openapi-to-postman

Plugin for converting OpenAPI 3.0 specs to the Postman Collection (v2) format
Apache License 2.0
928 stars 200 forks source link

Looking for a quick way to install openapi-to-postman without npm or nodejs #786

Closed Pe-te closed 4 months ago

Pe-te commented 8 months ago

Hi, we have the following steps in our build pipeline:

        - apt-get -y install npm
        - npm i -g openapi-to-postmanv2@4.20.0
        - ./some_script_that_uses_oa2pm2.sh

Install npm also install nodejs, so this step takes 1:20 minutes already. Install oa2pm2 with npm takes around 10 seconds. The actual script usage is only 5 seconds.

Is there maybe a faster way to get a runnable version "installed" in the pipeline?

VShingala commented 7 months ago

@Pe-te Unfortunately no, You could look into using an image with node already present to make the process faster but since this module is completely based on nodejs and npm, there's no wayaround of skipping installation for them.

VShingala commented 4 months ago

Closing the issue since question is answered.

thim81 commented 4 months ago

@Pe-te Purely informational, you could have a go with https://github.com/nexe/nexe or https://github.com/vercel/pkg?tab=readme-ov-file or follow the NodeJS initiative https://nodejs.org/api/single-executable-applications.html