Class: Redmine::Commands::Docker::Create

Inherits:
Object
  • Object
show all
Defined in:
lib/redmine/commands/docker/create.rb

Instance Method Summary collapse

Constructor Details

#initialize(config, arguments) ⇒ Create

Returns a new instance of Create.



7
8
9
10
# File 'lib/redmine/commands/docker/create.rb', line 7

def initialize(config, arguments)
  @config    = config
  @arguments = arguments
end

Instance Method Details

#command_lineObject



12
13
14
# File 'lib/redmine/commands/docker/create.rb', line 12

def command_line
  "docker create --name=#{@config.name} #{privileged_mode} --mount type=bind,source=#{File.expand_path(@config.key)},target=/root/.ssh/id_rsa --mount type=bind,source=#{File.expand_path(@config.key)}.pub,target=/root/.ssh/id_rsa.pub -e PORT=#{@config.port} -p #{@config.port}:#{@config.port} --mount source=redmine-pg,target=/var/lib/postgresql/9.5/main redmineup/demo-base"
end