Module: Cybele::Helpers::Docker

Included in:
AppBuilder
Defined in:
lib/cybele/helpers/docker.rb

Instance Method Summary collapse

Instance Method Details

#setup_docker_development_envObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/cybele/helpers/docker.rb', line 6

def setup_docker_development_env
  # Create docker files
  template 'docker/docker-compose.yml.erb',
           'docker-compose.yml',
           force: true
  template 'docker/Dockerfile.erb',
           'Dockerfile',
           force: true
  template 'docker/start-app.sh.erb',
           'bin/start-app.sh',
           force: true
  unless @options[:skip_sidekiq]
    template 'docker/start-sidekiq.sh.erb',
             'bin/start-sidekiq.sh',
             force: true
  end
  docker_dotenv_files
end