Title / Description
Code unless JSON.parse(`#{docker} inspect #{container_name}`).empty? sh "#{docker} rm -f #{container_name}" end puts "Creating image..." sh <<-EOF #{docker} \ create \ --restart=always \ -v /etc/opt/docker/#{SYSTEM}/#{COMPONENT}:/opt/#{SYSTEM}/#{COMPONENT}/app/etc:ro \ -v /var/opt/docker/#{SYSTEM}/#{COMPONENT}:/opt/#{SYSTEM}/#{COMPONENT}/app/var \ --name #{container_name} \ --publish 0.0.0.0:80:9292 \ "#{REPOSITORY}:#{args[:image_tag]}" EOF
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code