Sign inSign up

cicirello/pyaction-lite

By cicirello

•Updated 13 days ago

A base Docker image for Github Actions implemented in Python

Image
0

500K+

cicirello/pyaction-lite repository overview

⁠pyaction-lite

A base Docker image for Github Actions implemented in Python

Docker Image Version (latest by date) Docker Image Size (latest by date) Docker Pulls GitHub release (latest by date) build

⁠Summary

This Docker image is designed to support implementing Github Actions with Python. It uses Alpine Linux as a base to keep the image relatively small for faster loading of the Github Action. It then adds Python 3, and only Python 3. By using a prebuilt image, it prevents the Github Action from requiring an installation of python each time the action runs. It is not limited to use with Github Actions, so other use-cases where you only need python are applicable.

The pyaction-lite Docker image is based on pyaction⁠. However, pyaction additionally includes git, so the pyaction image is a bit larger than pyaction-lite.

⁠Multiplatform Image

pyaction-lite has the following platforms available:

  • linux/386
  • linux/amd64
  • linux/arm/v6
  • linux/arm/v7
  • linux/arm64
  • linux/ppc64le
  • linux/s390x

⁠Source Repository and Builds

The source repository⁠ is maintained on GitHub. The images are built on Github and pushed to Docker Hub⁠, as well as the Github Container Registry⁠ using Github Actions.

⁠Docker Tags and Versioning Scheme

Each image pushed to Docker Hub and the Github Container Registry is tagged as follows:

  • The tag latest indicates, well, the latest image.
  • Beginning with version 3.12.1: tags of the form MAJOR.MINOR.PATCH (such as 3.12.1) indicate the SemVer of the Alpine image used as the base.
  • Prior to version 3.12.1: tags of the form MAJOR.MINOR.PATCH (such as 1.0.0) indicate the SemVer of the image, where the base image was Alpine 3.12.0.

Semantic Versioning⁠ uses version numbers of the form: MAJOR.MINOR.PATCH, where differences in MAJOR correspond to incompatible changes, differences in MINOR correspond to introduction of backwards compatible new functionality, and PATCH corresponds to backwards compatible bug fixes.

⁠Installation and Usage

The pre-built image is hosted on both Docker Hub and the Github Container Registry. You can use it in the following ways.

⁠Docker Pull Command

Pull the latest image from Docker Hub with the following (replace latest with a specific version number if you prefer):

docker pull cicirello/pyaction-lite:latest

Pull from the Github Container Registry with:

docker pull ghcr.io/cicirello/pyaction-lite:latest
⁠Use as a base image in a Dockerfile

Use as a base image in a Dockerfile (replace latest with a specific version number if you prefer):

FROM cicirello/pyaction-lite:latest

# The rest of your Dockerfile would go here.

Or you can use as a base image (via the Github Container Registry) with:

FROM ghcr.io/cicirello/pyaction-lite:latest

# The rest of your Dockerfile would go here.

⁠License

⁠Source Code License

The source code, including the Dockerfile and anything else within the Github repository for pyaction-lite⁠, is licensed under the MIT License⁠.

⁠Image Licenses

As with all pre-built Docker images, the image itself (once built, or obtained from Docker Hub or the Github Container Registry) contains software that is covered by a variety of licenses. Since the base image is Alpine, this would include the licenses of the components of Alpine⁠, as well as the licenses for Python⁠.

If you build and distribute an image containing your software, using pyaction-lite as the base image, it is your responsibility to follow the licenses of all of the software contained within the image.

Tag summary

Content type

Image

Digest

sha256:526e8fa3f…

Size

18.7 MB

Last updated

13 days ago

docker pull cicirello/pyaction-lite