Class: Redmine::Commands::Docker::Create
- Inherits:
-
Object
- Object
- Redmine::Commands::Docker::Create
- Defined in:
- lib/redmine/commands/docker/create.rb
Instance Method Summary collapse
- #command_line ⇒ Object
-
#initialize(config, arguments) ⇒ Create
constructor
A new instance of Create.
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_line ⇒ Object
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.(@config.key)},target=/root/.ssh/id_rsa --mount type=bind,source=#{File.(@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 |