Class: Kuby::Docker::Alpine
Constant Summary collapse
- SHELL_EXE =
T.let('/bin/sh'.freeze, String)
- DEFAULT_PACKAGES =
T.let([ [:ca_certificates, nil], [:nodejs, '12.14.1'], [:yarn, '1.21.1'], [:c_toolchain, nil], [:tzdata, nil] ].freeze, T::Array[[Symbol, T.nilable(String)]])
Constants inherited from Distro
Distro::ManagedPackageImpl, Distro::PackageImpl
Instance Attribute Summary collapse
-
#phase ⇒ Object
readonly
Returns the value of attribute phase.
Instance Method Summary collapse
Methods inherited from Distro
Constructor Details
This class inherits a constructor from Kuby::Docker::Distro
Instance Attribute Details
#phase ⇒ Object (readonly)
Returns the value of attribute phase.
17 18 19 |
# File 'lib/kuby/docker/alpine.rb', line 17 def phase @phase end |
Instance Method Details
#default_packages ⇒ Object
27 28 29 |
# File 'lib/kuby/docker/alpine.rb', line 27 def default_packages DEFAULT_PACKAGES end |
#install(packages, into:) ⇒ Object
20 21 22 23 24 |
# File 'lib/kuby/docker/alpine.rb', line 20 def install(packages, into:) dockerfile = into install_managed(packages, dockerfile) install_unmanaged(packages, dockerfile) end |
#shell_exe ⇒ Object
32 33 34 |
# File 'lib/kuby/docker/alpine.rb', line 32 def shell_exe SHELL_EXE end |