apify / apify-actor-docker

Base Docker images for Apify actors.
https://hub.docker.com/u/apify
Apache License 2.0
70 stars 22 forks source link

Add support for building images with the Python Client #57

Closed fnesveda closed 3 years ago

fnesveda commented 3 years ago

This PR adds GitHub workflows for building actor images containing the new Apify API Client for Python. They're either called manually, or through a repository dispatch event through the GitHub API.

The logic of the GitHub workflow is copied and adapted from the workflows for the Node images, just simplified a bit because we're not yet preinstalling any libraries like playwright or puppeteer into the Python images.

The Docker images itself are pretty basic, they're basically just the official Python Alpine images with a virtual environment set up, the Python Client preinstalled and a simple testing Python script added as the default command.

I've also renamed the repository dispatch event for calling the builds of the node images, now that there are more types of images than just Node ones, so this PR requires a corresponding PR in the Apify SDK to be merged just after this one, I'll post that PR shortly.