Module: QB::Util::DockerMixin
- Included in:
- Package::Version
- Defined in:
- lib/qb/util/docker_mixin.rb
Overview
Mixin to help working with Docker.
Defined Under Namespace
Modules: ClassMethods
Constant Summary collapse
- DOCKER_TAG_MAX_CHARACTERS =
Character limit for Docker image tags.
128
- 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 DOCKER_TAG_MAX_CHARACTERS in length or less.
/\A[A-Za-z0-9_][A-Za-z0-9_\.\-]{0,#{ DOCKER_TAG_MAX_CHARACTERS - 1}}\z/. freeze
Class Method Summary collapse
-
.included(base) ⇒ Object
module ClassMethods.
Class Method Details
.included(base) ⇒ Object
module ClassMethods
123 124 125 |
# File 'lib/qb/util/docker_mixin.rb', line 123 def self.included base base.extend ClassMethods end |