Skip to content

Instantly share code, notes, and snippets.

@dixyes
Last active August 3, 2021 10:08
Show Gist options
  • Save dixyes/2c5d03c6208c14bac594bf75f7c1392d to your computer and use it in GitHub Desktop.
Save dixyes/2c5d03c6208c14bac594bf75f7c1392d to your computer and use it in GitHub Desktop.

Naming scheme

hyperf php base images

hyperf/php:<php version>[-<distro kind>[-<distro version>]]

which:

  • php version is a version code like "8"/"7" or "8.0"/"7.4" or "8.0.1"/"7.4.20"
  • distro kind is a string described base image distro like "alpine" or "ubuntu" or "debian" or "debianslim"
  • distro version is a version code lile "3.14"/"edge"(for alpine) or "20.04"(for ubuntu) or "sid"(for debian)

Alias

hyperf/php:latest => hyperf/php:alpine
hyperf/php:8.0 => hyperf/php:8.0.9 (latest stable version)
hyperf/php:x.y.z => hyperf/php:x.y.z-alpine
hyperf/php:x.y.z-alpine => hyperf/php:x.y.z-alpine-3.14 (latest stable version)
hyperf/php:alpine => hyperf/php:alpine-3.14 (latest stable version)
hyperf/php:alpine-3.14 => hyperf/php:8.0.9-alpine-3.14 (latest stable version)

that meaning a image built as hyperf/php:8.0.9-alpine-3.14 will have tag alias like:

  • hyperf/php:8.0.9-alpine
  • hyperf/php:8.0.9
  • hyperf/php:8.0-alpine-3.14
  • hyperf/php:8.0-alpine
  • hyperf/php:alpine-3.14
  • hyperf/php:alpine
  • hyperf/php:latest

so that user can use some tag like hyperf/php:8.0-ubuntu to pinning images using php 8.0 branch and ubuntu base

hyperf php base debuggable images

base images with debug symbols and php source

hyperf/php:<php version>-<distro kind>-<distro version>-debuggable

same as parts described in base images

Alias

no alias, for version alignment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment