Sha256: 4ff114a99ca241add97c5bda2314883251d1798101872f645de8db9489384ab8

Contents?: true

Size: 1.4 KB

Versions: 22

Compression:

Stored size: 1.4 KB

Contents

# The main Smartcloud Engine driver
module Smartcloud
	class Engine < Smartcloud::Base
		def initialize
		end

		def create_images
			# unless system("docker image inspect smartcloud", [:out, :err] => File::NULL)
			# 	print "-----> Creating image smartcloud ... "
			# 	if system("docker image build -t smartcloud \
			# 		--build-arg DOCKER_GID=`getent group docker | cut -d: -f3` \
			# 		--build-arg USER_UID=`id -u` \
			# 		--build-arg USER_NAME=`id -un` \
			# 		#{Smartcloud.config.root_path}/lib/smartcloud/engine")
			# 		puts "done"
			# 	end
			# end

			#docker build -t smartcloud \
			#  --build-arg USER_UID=`id -u` \
			#  --build-arg USER_GID=`id -g` \
			#  --build-arg USER_NAME=`id -un` \
			#  .

			# docker run -it --rm -v "/home/$(whoami)/.smartcloud:/home/$(whoami)/.smartcloud" smartcloud
			#
			# system("docker create \
			# 	--name='smartcloud' \
			# 	--volume='#{Smartcloud.config.user_home_path}/.gem:#{Smartcloud.config.user_home_path}/.gem' \
			# 	--volume='#{Smartcloud.config.user_home_path}/.smartcloud/config:#{Smartcloud.config.user_home_path}/.smartcloud/config' \
			# 	--volume='#{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-runner:#{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-runner' \
			# 	--volume='/var/run/docker.sock:/var/run/docker.sock' \
			# 	--restart='always' \
			# 	--network='nginx-network' \
			# 	smartcloud/runner", out: File::NULL)
		end
	end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
smartcloud-0.1.0 lib/smartcloud/engine.rb
smartcloud-0.1.0.rc4 lib/smartcloud/engine.rb
smartcloud-0.1.0.rc3 lib/smartcloud/engine.rb
smartcloud-0.1.0.rc2 lib/smartcloud/engine.rb
smartcloud-0.1.0.rc1 lib/smartcloud/engine.rb
smartcloud-0.1.0.beta5 lib/smartcloud/engine.rb
smartcloud-0.1.0.beta4 lib/smartcloud/engine.rb
smartcloud-0.1.0.beta3 lib/smartcloud/engine.rb
smartcloud-0.1.0.beta2 lib/smartcloud/engine.rb
smartcloud-0.1.0.beta1 lib/smartcloud/engine.rb
smartcloud-0.0.210 lib/smartcloud/engine.rb
smartcloud-0.0.209 lib/smartcloud/engine.rb
smartcloud-0.0.208 lib/smartcloud/engine.rb
smartcloud-0.0.207 lib/smartcloud/engine.rb
smartcloud-0.0.206 lib/smartcloud/engine.rb
smartcloud-0.0.205 lib/smartcloud/engine.rb
smartcloud-0.0.204 lib/smartcloud/engine.rb
smartcloud-0.0.203 lib/smartcloud/engine.rb
smartcloud-0.0.202 lib/smartcloud/engine.rb
smartcloud-0.0.201 lib/smartcloud/engine.rb