Class: Bricky::Bricks::Debian

Inherits:
Base
  • Object
show all
Defined in:
lib/bricky/bricks/debian.rb

Instance Attribute Summary

Attributes inherited from Base

#config

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Bricky::Bricks::Base

Instance Method Details

#argumentsObject



6
7
8
9
10
11
# File 'lib/bricky/bricks/debian.rb', line 6

def arguments
  scripts_path = "#{bricks_path}/debian"

  %W(-v #{builded_path}:/builded
     -v #{scripts_path}:/bricks/debian)
end

#bootstrap(bootstrap_path) ⇒ Object



23
24
25
26
27
28
# File 'lib/bricky/bricks/debian.rb', line 23

def bootstrap(bootstrap_path)
  ["RUN apt-get update",
   "RUN apt-get install -y --force-yes libfile-fcntllock-perl"].tap do |deps|
    deps << package_build_dependencies(bootstrap_path) if config.fetch('dependencies', false)
  end
end

#entrypointObject



13
14
15
# File 'lib/bricky/bricks/debian.rb', line 13

def entrypoint
  "/bricks/debian/builder"
end

#environmentsObject



17
18
19
20
21
# File 'lib/bricky/bricks/debian.rb', line 17

def environments
  ["-e BRICKS_DEBIAN_OUTPUT_PACKAGE_PATH=#{File.expand_path(builded_path)}",
   "-e BRICKS_DEBIAN_CHANGELOG=#{config.fetch('changelog', false)}",
   "-e BRICKS_DEBIAN_REPOSITORY=#{config.fetch('repository', false)}"]
end