google-cloud-ruby: pubsub: hanging in alpine

I’m trying to use pubsub. I have a very basic subscriber - full code here. I have a very basic alpine dockerfile - full code here.

When I run this dockerfile, require 'google/cloud/pubsub' hangs forever.

What gives?

edit: For the record, it works fine outside the docker image on my mac.

edit2: Only happens when I require google/cloud/pubsub. Other requires work fine.

edit3: Happens with and without compiling gems from source (BUNDLE_FORCE_RUBY_PLATFORM=1).

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 18 (18 by maintainers)

Most upvoted comments

AH. -it. It was working fine, but for some reason the STDIN must have been getting unattached. Man. Thank you, you rock.

edit: Whoops, it’s actually the TTY. Which I know even less about haha. But, seems just that the logs got switched up and the program itself was working.