module QB::Util::DockerMixin
Mixin to help working with Docker
.
Constants
- DOCKER_TAG_MAX_CHARACTERS
Character limit for
Docker
image tags.@return [Fixnum]
- DOCKER_TAG_VALID_RE
Regexp to validate strings as
Docker
tags:-
Must start with an ASCII alpha-numeric - `A-Z`, `a-z`, `0-9`.
-
The rest of the characters can be:
-
`A-Z`
-
`a-z`
-
`_`
-
`.`
-
`-`
Note that it *can not* include `+`, so [Semver][] strings with build info after the `+` are not legal.
-
-
Must be {QB::Util::DockerMixin::DOCKER_TAG_MAX_CHARACTERS} in length or less.
[Semver]: semver.org/
@return [Regexp]
-
Public Class Methods
included(base)
click to toggle source
# File lib/qb/util/docker_mixin.rb, line 123 def self.included base base.extend ClassMethods end