Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guide to integrate puppeteer-ruby into existing Rails application with Docker #28

Closed
YusukeIwaki opened this issue Nov 7, 2020 · 0 comments

Comments

@YusukeIwaki
Copy link
Owner

https://oknm.jp/posts/61aa58dcf2dda1f2729c2feff47946f6f0eada96

This article says

puppeteer-ruby使えばRailsだけで完結してLambdaいらないのではと思ってやってみたらDockerコンテナ化したときに動かなくて諦めた。イメージサイズも400MB以上増えたのでよくなかった。

puppeteer-ruby would make it possible to take a screenshot of web sites in Rails apps, without AWS Lambda (JS function with puppeteer). HOWEVER it is very hard to integrate puppeteer-ruby into Dockerized Rails application, and gage up...
Also, it is no good that Docker image size exeeds 400MB...

gus-bn pushed a commit to thegurucompany/puppeteer-ruby that referenced this issue Dec 18, 2020
* Do not escape (

* add RSpec for YusukeIwaki/pull/25

* 0.0.20 -> 0.0.21

* show warning on error in "#future"

* fix Puppeteer#product to work

* add RSpec: launcher spec

* 0.0.21 -> 0.0.22

* add Docker guide

resolves YusukeIwaki#28

* enforce parentheses for method calls

* implement Events constant

* remove unused internal-only events

* define on and once in EventCallbackable

* remove Events class.

* fix RuboCop warnings

* Revert "Remove ugly logic in CDPSession."

This reverts commit 675b01e.

* fix comment

* Revert "Revert deletion of workaround for unordered SEND/RECV "

* Consider 'handle_message' is called just after 'send_text' before returning raw_send.

* implement Page#geolocation= and BrowserContext#override_permissions

* fix LifecycleWatcher to respect the timeout parameter

* add RSpec: page_spec

* 0.0.22 -> 0.0.23

* add cookies feature

* addType: CookieData

* skip some specs for Firefox

* 0.0.23 -> 0.0.24

* Revert "addType: CookieData"

This reverts commit f17639a.

* 0.0.24 -> 0.0.25

* Create CHANGELOG.md

Co-authored-by: Inez Korczynski <inez@squareup.com>
Co-authored-by: Yusuke Iwaki <iwaki@i3-systems.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant