smartcloud 0.0.81 → 0.0.82
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: 26f088b84350fb24d4ad054c310174cb94bfcd2c7462aeab7550e585212aef2c
|
4
|
+
data.tar.gz: 442893d4d98576b73905970bb43951f34f462e9c870dbeb9c1f4537a71ca5244
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0326f41f3d2e535c44f00a3d977b8d2232a778fd5474296a005b492fca66cd06d1448826cf58d0fdeba8b1e50bde53c0e51645890133b5dee86fb867702980c6
|
7
|
+
data.tar.gz: a3deeb8a40b3d11e72184a51956310af8c5d20510888a7e8853b250afaed412b673a6536c7c359cba7275e814bdcf00fe93b46f8a0828501d6951b19e9947f7d
|
@@ -22,9 +22,9 @@ RUN apk add --update build-base && \
|
|
22
22
|
|
23
23
|
USER "$USER_NAME"
|
24
24
|
|
25
|
-
# Install bundler and
|
25
|
+
# Install bundler and god gems
|
26
26
|
RUN gem install bundler && \
|
27
|
-
gem install
|
27
|
+
gem install god
|
28
28
|
|
29
29
|
# Command to execute at container start
|
30
30
|
CMD ["ruby", "buildpacker.rb"]
|
@@ -218,13 +218,13 @@ module Smartcloud
|
|
218
218
|
end
|
219
219
|
|
220
220
|
def self.prereceive_app(appname, username, oldrev, newrev, refname)
|
221
|
-
|
222
|
-
|
221
|
+
# logger = Logger.new(STDOUT)
|
222
|
+
$stdout.sync = true
|
223
223
|
|
224
224
|
container_path = "#{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-runner/apps/containers/#{appname}"
|
225
225
|
|
226
226
|
## Verify the user and ensure the user is correct and has access to this repository
|
227
|
-
|
227
|
+
print "-----> Verifying User ... "
|
228
228
|
unless File.exist? "#{container_path}/env"
|
229
229
|
puts "Environment could not be loaded ... Failed."
|
230
230
|
exit 1
|
@@ -297,11 +297,12 @@ module Smartcloud
|
|
297
297
|
|
298
298
|
# Setup Buildpacker
|
299
299
|
buildpacker_path = "#{Smartcloud.config.root_path}/lib/smartcloud/grids/grid-runner/buildpacks/buildpacker.rb"
|
300
|
-
FileUtils.cp
|
300
|
+
FileUtils.cp buildpacker_path, container_path_with_now_date
|
301
301
|
|
302
302
|
puts "-----> Launching Application ... "
|
303
303
|
|
304
304
|
if File.exist? "#{container_path_with_now_date}/bin/rails"
|
305
|
+
|
305
306
|
# Stopping & Removing container
|
306
307
|
self.stop_app(appname)
|
307
308
|
|
@@ -347,11 +348,20 @@ module Smartcloud
|
|
347
348
|
system("grep -q '^RAILS_MASTER_KEY=' #{env_path} || echo 'RAILS_MASTER_KEY=yourmasterkey' >> #{env_path}")
|
348
349
|
puts "-----> WARNING: Please set your RAILS_MASTER_KEY env var for this rails app." if system("grep -q '^RAILS_MASTER_KEY=yourmasterkey' #{env_path}")
|
349
350
|
|
350
|
-
# Setup
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
351
|
+
# Setup gems folder to reuse gems
|
352
|
+
FileUtils.mkdir_p("#{container_path}/gems")
|
353
|
+
FileUtils.symlink "#{container_path}/gems", "#{container_path_with_now_date}/vendor/bundle", force: true
|
354
|
+
|
355
|
+
# Setup Godfile
|
356
|
+
unless File.exist? "#{container_path_with_now_date}/Godfile"
|
357
|
+
puts "-----> WARNING: Godfile not detected. Adding a default Godfile. It is recommended to add your own Godfile."
|
358
|
+
system("cat > #{container_path_with_now_date}/Godfile <<- EOF
|
359
|
+
God.watch do |w|
|
360
|
+
w.name = 'web'
|
361
|
+
w.start = 'bundle exec puma -C config/puma.rb'
|
362
|
+
w.behavior(:clean_pid_file)
|
363
|
+
w.keepalive
|
364
|
+
end
|
355
365
|
EOF")
|
356
366
|
end
|
357
367
|
|
@@ -361,7 +371,6 @@ module Smartcloud
|
|
361
371
|
--env-file='#{container_path}/env' \
|
362
372
|
--expose='5000' \
|
363
373
|
--volume='#{container_path_with_now_date}:/code' \
|
364
|
-
--volume='#{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-runner/buildpacks/rails/gems:/usr/local/bundle' \
|
365
374
|
--workdir='/code' \
|
366
375
|
--restart='always' \
|
367
376
|
--network='nginx-network' \
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.82
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Timeboard
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Smartcloud is a full-stack deployment framework for rails optimized for
|
14
14
|
programmer happiness and peaceful administration. It encourages natural simplicity
|