Class: Avm::Stereotypes::EacRedmineBase0::Instance

Inherits:
Avm::Stereotypes::EacWebappBase0::Instance show all
Includes:
Rails::Instance
Defined in:
lib/avm/stereotypes/eac_redmine_base0/instance.rb

Constant Summary collapse

FILES_UNITS =
{ files: 'files' }.freeze

Constants inherited from Instances::Base

Instances::Base::ID_PATTERN

Instance Attribute Summary

Attributes inherited from Instances::Base

#application, #suffix

Attributes included from Instances::Base::Dockerizable

#docker_image_options

Instance Method Summary collapse

Methods included from Rails::Instance

#bundle, #rake

Methods inherited from Avm::Stereotypes::EacWebappBase0::Instance

#data_dump, #data_dump_runner_class, #data_package, #database_unit, #run_subcommand, #stereotype_name

Methods included from Postgresql::InstanceWith

#pg

Methods inherited from Instances::Base

by_id, #host_env_uncached, #id, #initialize, #to_s

Methods included from Instances::Entries

#full_entry_path, #inherited_entry_value, #other_entry_value, #path_prefix, #read_entry, #read_entry_optional

Methods included from Instances::Base::Dockerizable

#docker_container_exist?, #docker_container_name

Constructor Details

This class inherits a constructor from Avm::Instances::Base

Instance Method Details

#docker_image_classObject



15
16
17
# File 'lib/avm/stereotypes/eac_redmine_base0/instance.rb', line 15

def docker_image_class
  ::Avm::Stereotypes::EacUbuntuBase0::DockerImage
end

#docker_run_argumentsObject



19
20
21
22
23
24
25
26
# File 'lib/avm/stereotypes/eac_redmine_base0/instance.rb', line 19

def docker_run_arguments
  [
    '--volume', "#{read_entry(:fs_path)}:/home/myuser/eac_redmine_base0",
    '--publish', "#{read_entry(:ssh_port)}:22",
    '--publish', "#{read_entry(:http_port)}:80",
    '--publish', "#{read_entry(:https_port)}:443"
  ]
end