smartcloud 0.0.73 → 0.0.74
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a15f2021f717192da9d1f20464d6705702ae153783da40c966ccbd12ec089e6
|
4
|
+
data.tar.gz: ab1b774e8f6903e126a9505a72e020277ff78f22f63e1d0492c7a099a00eaf4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9516bb7b24865641a532fa6492a9721ce06108deea4cb97b214ce11e32560867b5ab2c478f36ad83e8262043327d71e57d255cd326d7e5b2a5d26a81100e81c
|
7
|
+
data.tar.gz: 5fad0dc5c8706804cd3580d51d9f828dc0201d6455f188ee0cf4d898904e3bea11c4333cf7b3b5ef4eaa4eccf2e5c3829348d9aa87c8333a567a2dc5cfa74c63
|
@@ -15,12 +15,15 @@ class Buildpacker
|
|
15
15
|
FileUtils.rm("tmp/pids/server.pid") if File.exist? "tmp/pids/server.pid"
|
16
16
|
|
17
17
|
puts "-----> Performing bundle install ... "
|
18
|
-
if system("bundle install")
|
19
|
-
puts "----->
|
20
|
-
if system("
|
21
|
-
puts "----->
|
22
|
-
if system("
|
23
|
-
puts "----->
|
18
|
+
if system("bundle check || bundle install")
|
19
|
+
puts "-----> Installing Javascript Dependencies ... "
|
20
|
+
if system("yarn install")
|
21
|
+
puts "-----> Pre-compiling Assets ... "
|
22
|
+
if system("bundle exec rails assets:precompile")
|
23
|
+
puts "-----> Running Web Server ... "
|
24
|
+
if system("foreman start -f Procfile")
|
25
|
+
puts "-----> Launched Application ... Success."
|
26
|
+
end
|
24
27
|
end
|
25
28
|
end
|
26
29
|
end
|
@@ -1,11 +1,17 @@
|
|
1
|
-
FROM ruby:2.6.
|
1
|
+
FROM ruby:2.6.4-alpine3.10
|
2
2
|
MAINTAINER Timeboard <hello@timeboard.me>
|
3
3
|
|
4
4
|
############### INSTALL RUBY ON RAILS ESSENTIALS ###############
|
5
5
|
|
6
6
|
RUN apk add --update build-base && \
|
7
|
-
apk add --update ruby-mysql2 && \
|
8
7
|
apk add --update tzdata && \
|
8
|
+
apk add --update nodejs && \
|
9
|
+
apk add --update yarn && \
|
10
|
+
apk add --update ruby-mysql2 && \
|
11
|
+
apk add --update imagemagick && \
|
12
|
+
apk add --update ffmpeg && \
|
13
|
+
apk add --update mupdf && \
|
14
|
+
apk add --update mupdf-tools && \
|
9
15
|
rm -rf /var/cache/apk/*
|
10
16
|
|
11
17
|
# Install bundler and foreman gems
|
@@ -355,6 +355,7 @@ module Smartcloud
|
|
355
355
|
--env-file='#{container_path}/env' \
|
356
356
|
--expose='5000' \
|
357
357
|
--volume='#{container_path_with_now_date}:/code' \
|
358
|
+
--volume='#{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-runner/buildpacks/rails/gems:/usr/local/bundle' \
|
358
359
|
--workdir='/code' \
|
359
360
|
--restart='always' \
|
360
361
|
--network='nginx-network' \
|