Sha256: db4faf0d3bf5440f47cc1696197d9e71e4fe20ac434fd445b97515a2e7bc5ac8

Contents?: true

Size: 1013 Bytes

Versions: 21

Compression:

Stored size: 1013 Bytes

Contents

# frozen_string_literal: true

require 'avm/eac_redmine_base0/data_unit'
require 'avm/eac_redmine_base0/instances/docker_image'
require 'avm/eac_webapp_base0/instance'
require 'avm/eac_rails_base1/instance'

module Avm
  module EacRedmineBase0
    class Instance < ::Avm::EacRailsBase1::Instance
      FILES_UNITS = { files: 'files' }.freeze

      def docker_image_class
        ::Avm::EacRedmineBase0::Instances::DockerImage
      end

      def docker_run_arguments
        [
          '--volume',
          "#{read_entry(::Avm::Instances::EntryKeys::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

      def data_package
        @data_package ||= ::Avm::Data::Instance::Package.new(
          self,
          units: {
            all: ::Avm::EacRedmineBase0::DataUnit.new(self)
          }
        )
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
avm-tools-0.114.1 sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instance.rb
avm-tools-0.114.0 sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instance.rb
avm-tools-0.113.6 sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instance.rb
avm-tools-0.113.5 sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instance.rb
avm-tools-0.113.4 sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instance.rb
avm-eac_redmine_base0-0.3.1 lib/avm/eac_redmine_base0/instance.rb
avm-tools-0.113.3 sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instance.rb
avm-tools-0.113.2 sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instance.rb
avm-eac_redmine_base0-0.3.0 lib/avm/eac_redmine_base0/instance.rb
avm-tools-0.110.0 vendor/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instance.rb
avm-tools-0.109.1 vendor/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instance.rb
avm-tools-0.109.0 vendor/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instance.rb
avm-tools-0.108.0 vendor/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instance.rb
avm-eac_redmine_base0-0.2.2 lib/avm/eac_redmine_base0/instance.rb
avm-tools-0.107.0 vendor/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instance.rb
avm-tools-0.106.0 vendor/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instance.rb
avm-eac_redmine_base0-0.2.0 lib/avm/eac_redmine_base0/instance.rb
avm-tools-0.105.0 vendor/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instance.rb
avm-tools-0.104.0 vendor/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instance.rb
avm-eac_redmine_base0-0.1.0 lib/avm/eac_redmine_base0/instance.rb