apollographql / rover

The CLI for Apollo GraphOS
https://rover.apollo.dev
Other
405 stars 85 forks source link

Using Rover within Docker #524

Open synackSA opened 3 years ago

synackSA commented 3 years ago

Hi there

I just wanted to bring up a couple of issues that I've had, where I could have saved quite some time if these things were documented in this repo and on the Apollo website: https://www.apollographql.com/docs/rover/getting-started

EverlastingBugstopper commented 3 years ago

@synackSA we've updated the documentation to include information about the inability to run Rover on Alpine. As for your second point, I'm actually quite surprised that installing curl fixed the issue for you since Rover uses the pure Rust reqwest library for all of its HTTP requests. Installing curl is required if you are using the curl | sh installer, but it sounds like you're using npm.

If you could provide us with the logs before and after installing curl, in addition to the output of rover info that would be incredibly helpful!

~My first thought is that maybe installing curl also installes OpenSSL, which you will need to run Rover.~ Scratch that! We actually vendor OpenSSL so that you don't have to install it, Rover should have no runtime dependencies except glibc.

synackSA commented 3 years ago

Sorry, only seeing this now for some reason, I'll attempt to find some time soon to go over this again and provide the output.

abernix commented 3 years ago

@synackSA Hey! Any updates on this?

cyberhck commented 3 years ago

generally that might happen because of ca-certificates, you tried calling an endpoint, when you're missing ca-certificate the API call fails, when you install curl, it lists ca-certificate in it's dependencies, and certificate gets installed which results in passing endpoint call.

MrOggy85 commented 8 months ago

Maybe related issue: I got the following error while running rover dev:

error: the router was unable to start up

The reason was that I set the environment variable: APOLLO_TELEMETRY_DISABLED=1 When I removed this the error did not occur and the router started as expected 🤷