From 718a4bdb475950616bef1cb497af476368ad1d4c Mon Sep 17 00:00:00 2001 From: Ondra Urban <23726914+mnmkng@users.noreply.github.com> Date: Tue, 2 Mar 2021 15:43:26 +0100 Subject: [PATCH 1/2] Update base docker image guide --- docs/actors/development/base_docker_images.md | 25 +++++++------------ 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/docs/actors/development/base_docker_images.md b/docs/actors/development/base_docker_images.md index 9c33302a87..6c5ed1a59f 100644 --- a/docs/actors/development/base_docker_images.md +++ b/docs/actors/development/base_docker_images.md @@ -8,22 +8,15 @@ paths: # [](#base-docker-images) Base Docker images -Apify provides the following Docker images that can be used as a base for user actors: - -* **Node.js 12 on Alpine Linux** ([apify/actor-node-basic](https://hub.docker.com/r/apify/actor-node-basic/)) - slim and efficient image, contains only the most elementary tools. -
-Note that Puppeteer is not available in this image. -* **Node.js 12 + Chrome on Debian** ([apify/actor-node-chrome](https://hub.docker.com/r/apify/actor-node-chrome/)) - larger image with the Chromium and Google Chrome browsers and the - [puppeteer](https://www.npmjs.com/package/puppeteer) NPM package bundled. - With this image, you can use the [`Apify.launchPuppeteer()`](https://sdk.apify.com/docs/api/apify#apifylaunchpuppeteeroptions) function. -
- Note that Chrome requires quite a lot of resources, therefore the actor should run with at least 1024 MB of memory. -* **Node.js 12 + Chrome + Xvfb on Debian** ([apify/actor-node-chrome-xvfb](https://hub.docker.com/r/apify/actor-node-chrome-xvfb/)) - extends `apify/actor-node-chrome` with X virtual framebuffer ([Xvfb](https://www.x.org/archive/X11R7.6/doc/man/man1/Xvfb.1.xhtml)) in order to support non-headless browsing. -
- Note that with this image the [`Apify.launchPuppeteer()`](https://sdk.apify.com/docs/api/apify#apifylaunchpuppeteeroptions) function opens non-headless Chrome by default. -* **[DEPRECATED] Node.js 10 + Puppeteer on Debian** ([apify/actor-node-puppeteer](https://hub.docker.com/r/apify/actor-node-puppeteer/)). -
- This image is deprecated and will be removed in the future. Use the `apify/actor-node-chrome` image instead. +Apify provides the following Docker images that can be used as a base for user actors. You can read more about them in the [Apify SDK Docker image guide](https://sdk.apify.com/docs/guides/docker-images). + +- **Node.js 14 on Alpine Linux** ([`apify/actor-node`](https://hub.docker.com/r/apify/actor-node/)) - slim and efficient image, contains only the most elementary tools. Note that headless browsers (Puppeteer, Playwright) are not available in this image. + +- **Node.js 14 + Puppeteer + Chrome on Debian** ([`apify/actor-node-puppeteer-chrome`](https://hub.docker.com/r/apify/actor-node-puppeteer-chrome/)) - larger image with the Chromium and Google Chrome browsers and the [`puppeteer`](https://github.com/puppeteer/puppeteer) library bundled. With this image, you can use the [`Apify.launchPuppeteer()`](https://sdk.apify.com/docs/api/apify#launchpuppeteer) function and [`PuppeteerCrawler`](https://sdk.apify.com/docs/api/puppeteer-crawler). Note that Chrome requires quite a lot of resources, therefore the actor should run with at least 2048 MB of memory. + +- **Node.js 14 + Playwright + Chrome on Debian** ([`apify/actor-node-playwright-chrome`](https://hub.docker.com/r/apify/actor-node-playwright-chrome/)) - similar to the `apify/actor-node-puppeteer-chrome` image, but it comes preinstalled the [`playwright`](https://github.com/microsoft/playwright) automation library instead of Puppeteer. With this image, you can use the [`Apify.launchPlaywright()`](https://sdk.apify.com/docs/api/apify#launchplaywright) function and [`PlaywrightCrawler`](https://sdk.apify.com/docs/api/playwright-crawler). This image also comes with a `firefox` and `webkit` version. + +For a full list of available images, see the [Apify SDK Docker image guide](https://sdk.apify.com/docs/guides/docker-images). Note that some images available in the Apify UI can be marked as deprecated. This means that they should no longer be used for new projects and old projects are encouraged to migrate to one of the non-deprecated images. All images come in two versions: the **latest** tag corresponds to the stable version and **beta** to images where we test new features. Use the beta version at your own risk. From bf773dc808a3416c2f6a5d32750b6aab5812753b Mon Sep 17 00:00:00 2001 From: Misha Date: Wed, 3 Mar 2021 09:16:27 +0100 Subject: [PATCH 2/2] Small edits --- docs/actors/development/base_docker_images.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/actors/development/base_docker_images.md b/docs/actors/development/base_docker_images.md index 6c5ed1a59f..ac46f4e99b 100644 --- a/docs/actors/development/base_docker_images.md +++ b/docs/actors/development/base_docker_images.md @@ -16,8 +16,8 @@ Apify provides the following Docker images that can be used as a base for user a - **Node.js 14 + Playwright + Chrome on Debian** ([`apify/actor-node-playwright-chrome`](https://hub.docker.com/r/apify/actor-node-playwright-chrome/)) - similar to the `apify/actor-node-puppeteer-chrome` image, but it comes preinstalled the [`playwright`](https://github.com/microsoft/playwright) automation library instead of Puppeteer. With this image, you can use the [`Apify.launchPlaywright()`](https://sdk.apify.com/docs/api/apify#launchplaywright) function and [`PlaywrightCrawler`](https://sdk.apify.com/docs/api/playwright-crawler). This image also comes with a `firefox` and `webkit` version. -For a full list of available images, see the [Apify SDK Docker image guide](https://sdk.apify.com/docs/guides/docker-images). Note that some images available in the Apify UI can be marked as deprecated. This means that they should no longer be used for new projects and old projects are encouraged to migrate to one of the non-deprecated images. +For a full list of available images, [see the Apify SDK Docker image guide](https://sdk.apify.com/docs/guides/docker-images). Note that some images available in the Apify UI can be marked as deprecated. This means that they should no longer be used for new projects and old projects are encouraged to migrate to one of the non-deprecated images. All images come in two versions: the **latest** tag corresponds to the stable version and **beta** to images where we test new features. Use the beta version at your own risk. -Note that all Apify Docker images are pre-cached on Apify servers in order to speed-up the actor builds and runs. The source code used to generate the images is available in the [apify-actor-docker](https://github.com/apifytech/apify-actor-docker) GitHub repository. +Note that all Apify Docker images are pre-cached on Apify servers in order to speed up the actor builds and runs. The source code used to generate the images is available in the [apify-actor-docker](https://github.com/apifytech/apify-actor-docker) GitHub repository.