smartcloud 0.0.62 → 0.0.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 60ffcf8723cff346b850754c1699dabddfb77cb2c5da32ade9546d81089d66d1
|
|
4
|
+
data.tar.gz: defff013409825d5e260e206c619be0d91bc545ecc9c092d1545ace95ddbf0a6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1a7db48110a4de14f855e7968f56b3bd090902ebbbe2f944e987e61a7fc4c8eb46f0843a03b448e6a4fc6518e01ef3779c3655065699ad43d659e5f0f845b037
|
|
7
|
+
data.tar.gz: 668058410b8617e36f62b8a9c121f4912161d16be01cdb4d0e93cd78172545da2bf256805de54aed5ac0e819af1881656efdb11a6210bcb01972e428f2460a0b
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
class Buildpacker
|
|
2
|
+
def initialize
|
|
3
|
+
puts "---------------------------------------------------------------"
|
|
4
|
+
|
|
5
|
+
if File.exist? "bin/rails"
|
|
6
|
+
# Remove server.pid if it exists
|
|
7
|
+
FileUtils.rm("tmp/pids/server.pid") if File.exist? "tmp/pids/server.pid"
|
|
8
|
+
|
|
9
|
+
puts "-----> Performing bundle install ... "
|
|
10
|
+
if system("bundle install")
|
|
11
|
+
puts "-----> Compiling Assets ... "
|
|
12
|
+
if system("bundle exec rails assets:precompile")
|
|
13
|
+
system("foreman start -f Procfile")
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
puts "failed."
|
|
19
|
+
exit 1
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
Buildpacker.new
|
|
@@ -285,6 +285,10 @@ module Smartcloud
|
|
|
285
285
|
|
|
286
286
|
container_path_with_now_date = "#{container_path}/#{app_version}"
|
|
287
287
|
|
|
288
|
+
# Setup Buildpacker
|
|
289
|
+
buildpacker_path = "#{Smartcloud.config.root_path}/lib/smartcloud/grids/grid-runner/buildpacks/buildpacker.rb"
|
|
290
|
+
FileUtils.cp(buildpacker_path, container_path_with_now_date)
|
|
291
|
+
|
|
288
292
|
puts "-----> Launching Application ... "
|
|
289
293
|
|
|
290
294
|
if File.exist? "#{container_path_with_now_date}/bin/rails"
|
|
@@ -342,10 +346,6 @@ module Smartcloud
|
|
|
342
346
|
EOF")
|
|
343
347
|
end
|
|
344
348
|
|
|
345
|
-
# Setup Buildpacker
|
|
346
|
-
buildpacker_path = "#{Smartcloud.config.root_path}/lib/smartcloud/grids/grid-runner/buildpacks/rails/buildpacker.rb"
|
|
347
|
-
FileUtils.cp(buildpacker_path, container_path_with_now_date)
|
|
348
|
-
|
|
349
349
|
# Creating & Starting container
|
|
350
350
|
# IMPORTANT NOTE:
|
|
351
351
|
# The below commands of docker are executed here. However, they run from the host.
|
|
@@ -369,7 +369,6 @@ module Smartcloud
|
|
|
369
369
|
print "-----> Starting container #{appname} ... "
|
|
370
370
|
if system("docker start #{appname}", out: File::NULL)
|
|
371
371
|
puts "done"
|
|
372
|
-
system("docker logs #{appname} --follow")
|
|
373
372
|
exit 0
|
|
374
373
|
end
|
|
375
374
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: smartcloud
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.63
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Timeboard
|
|
@@ -31,8 +31,8 @@ files:
|
|
|
31
31
|
- lib/smartcloud/grids/grid-nginx/fastcgi.conf
|
|
32
32
|
- lib/smartcloud/grids/grid-nginx/nginx.tmpl
|
|
33
33
|
- lib/smartcloud/grids/grid-runner/Dockerfile
|
|
34
|
+
- lib/smartcloud/grids/grid-runner/buildpacks/buildpacker.rb
|
|
34
35
|
- lib/smartcloud/grids/grid-runner/buildpacks/rails/Dockerfile
|
|
35
|
-
- lib/smartcloud/grids/grid-runner/buildpacks/rails/buildpacker.rb
|
|
36
36
|
- lib/smartcloud/grids/grid-solr/docker-entrypoint-initdb.d/.keep
|
|
37
37
|
- lib/smartcloud/grids/grid-solr/sunspot/conf/schema.xml
|
|
38
38
|
- lib/smartcloud/grids/grid-solr/sunspot/conf/solrconfig.xml
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
class Buildpacker
|
|
2
|
-
def initialize
|
|
3
|
-
puts "---------------------------------------------------------------"
|
|
4
|
-
|
|
5
|
-
FileUtils.rm("./tmp/pids/server.pid") if File.exist? "./tmp/pids/server.pid"
|
|
6
|
-
|
|
7
|
-
puts "-----> Performing bundle install ... "
|
|
8
|
-
if system("bundle install")
|
|
9
|
-
puts "-----> Compiling Assets ... "
|
|
10
|
-
if system("bundle exec rails assets:precompile")
|
|
11
|
-
system("foreman start -f Procfile")
|
|
12
|
-
end
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
puts "failed."
|
|
16
|
-
exit 1
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
Buildpacker.new
|