Sha256: 01b54cb29f80bb3ec09e120654ecd6b3385a8005a45a0ad426500c086a7c21c2

Contents?: true

Size: 990 Bytes

Versions: 36

Compression:

Stored size: 990 Bytes

Contents

# frozen_string_literal: true

require 'avm/eac_redmine_base0/data_unit'
require 'avm/eac_ubuntu_base0/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::EacUbuntuBase0::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

36 entries across 36 versions & 1 rubygems

Version Path
avm-tools-0.100.0 lib/avm/eac_redmine_base0/instance.rb
avm-tools-0.99.1 lib/avm/eac_redmine_base0/instance.rb
avm-tools-0.99.0 lib/avm/eac_redmine_base0/instance.rb
avm-tools-0.98.0 lib/avm/eac_redmine_base0/instance.rb
avm-tools-0.97.0 lib/avm/eac_redmine_base0/instance.rb
avm-tools-0.96.0 lib/avm/eac_redmine_base0/instance.rb
avm-tools-0.95.0 lib/avm/eac_redmine_base0/instance.rb
avm-tools-0.94.3 lib/avm/eac_redmine_base0/instance.rb
avm-tools-0.94.2 lib/avm/eac_redmine_base0/instance.rb
avm-tools-0.94.1 lib/avm/eac_redmine_base0/instance.rb
avm-tools-0.94.0 lib/avm/eac_redmine_base0/instance.rb
avm-tools-0.93.0 lib/avm/eac_redmine_base0/instance.rb
avm-tools-0.92.0 lib/avm/eac_redmine_base0/instance.rb
avm-tools-0.91.0 lib/avm/eac_redmine_base0/instance.rb
avm-tools-0.90.0 lib/avm/eac_redmine_base0/instance.rb
avm-tools-0.89.0 lib/avm/eac_redmine_base0/instance.rb
avm-tools-0.88.0 lib/avm/eac_redmine_base0/instance.rb
avm-tools-0.87.1 lib/avm/eac_redmine_base0/instance.rb
avm-tools-0.87.0 lib/avm/eac_redmine_base0/instance.rb
avm-tools-0.86.0 lib/avm/eac_redmine_base0/instance.rb