smartcloud 0.0.193 → 0.0.194

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: 0b1508f6de81ed608939780e8ae23c6db3f67af6f5e28762fe975ba688486fc3
4
- data.tar.gz: 9b98709f1af7d4c4c90094cef42c42a3ebd709d70514950bf9380662ca468bdd
3
+ metadata.gz: 3158dd5d6a4b622aa0d3cbcd761e54437b6cfd3f1521f6098b0a40da6b8b8e6a
4
+ data.tar.gz: 8d7f4a4279455fe117e3d7e89b87beb2ce53d39174950319930692bf802a9b4e
5
5
  SHA512:
6
- metadata.gz: d31be463e5617bede45e97afb61aa15bc27ba86040d166c437a43c48ec4a10f5598d6b65760516f37bfff8e792fa82e79e30d44a658576265bfbe3cf6516df71
7
- data.tar.gz: 5541e2ad73a655d81b278b94d94404e3bd369ca5e1dbe07937de5d5fe599837bfcc43b1a6d01d35dd125a4ff21d3ee1e1a4ae4d15657a64b7555cbe0f6f9dedc
6
+ metadata.gz: f35424e99b062a841f69d6d1c504016fab164364c598be2daf8da374acba7654775b27c4bd4b71d56660c5063351e2d1cf22f813b336b965e4457aeb961b424c
7
+ data.tar.gz: b2e4cd1a9840534adcc46d7becb969c35b048414d5f3750d4dd7442388e4e41233ceaa51352c8cbd85779a9c5747c072d23a597a698744fa0547ed32f95a6142
@@ -32,12 +32,15 @@ RUN apk add --update coreutils && \
32
32
  apk add --update spawn-fcgi && \
33
33
  rm -rf /var/cache/apk/*
34
34
 
35
+ USER "$USER_NAME"
36
+ WORKDIR "/home/$USER_NAME/.smartcloud/grids/grid-runner/apps"
37
+
35
38
  # Generating entrypoint file
36
39
  RUN echo -e '#!/bin/sh\n\
37
40
  gem install --no-document --local smartcloud\n\
38
- exec "$@"' >> /entrypoint; chmod +x /entrypoint
41
+ exec "$@"' >> "/home/$USER_NAME/entrypoint"; chmod +x "/home/$USER_NAME/entrypoint"
39
42
 
40
43
  # Set entrypoint
41
- ENTRYPOINT ["/entrypoint"]
44
+ ENTRYPOINT ["/home/$USER_NAME/entrypoint"]
42
45
 
43
- CMD "git, fcgiwrap & spawn-fcgi installed"
46
+ CMD ["spawn-fcgi", "-n", "-p", "9000", "/usr/bin/fcgiwrap", "-f"]
@@ -20,6 +20,9 @@ RUN apk add --update build-base && \
20
20
  apk add --update mupdf-tools && \
21
21
  rm -rf /var/cache/apk/*
22
22
 
23
+ USER "$USER_NAME"
24
+ WORKDIR "/app"
25
+
23
26
  # Install gems
24
27
  RUN gem install bundler && \
25
28
  gem install god
@@ -27,12 +30,10 @@ RUN gem install bundler && \
27
30
  # Generating entrypoint file
28
31
  RUN echo -e '#!/bin/sh\n\
29
32
  gem install --no-document --local smartcloud\n\
30
- exec "$@"' >> /entrypoint; chmod +x /entrypoint
31
-
32
- USER "$USER_NAME"
33
+ exec "$@"' >> "/home/$USER_NAME/entrypoint"; chmod +x "/home/$USER_NAME/entrypoint"
33
34
 
34
35
  # Set entrypoint
35
- ENTRYPOINT ["/entrypoint"]
36
+ ENTRYPOINT ["/home/$USER_NAME/entrypoint"]
36
37
 
37
38
  # Command to execute at container start
38
39
  CMD ["buildpacker", "start"]
@@ -27,16 +27,13 @@ module Smartcloud
27
27
  --env GIT_PROJECT_ROOT=#{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-runner/apps/repositories \
28
28
  --env GIT_HTTP_EXPORT_ALL="" \
29
29
  --expose='9000' \
30
+ --volume='#{Smartcloud.config.user_home_path}/.gem:#{Smartcloud.config.user_home_path}/.gem' \
30
31
  --volume='#{Smartcloud.config.user_home_path}/.smartcloud/config:#{Smartcloud.config.user_home_path}/.smartcloud/config' \
31
32
  --volume='#{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-runner:#{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-runner' \
32
- --volume='#{Smartcloud.config.user_home_path}/.gem/ruby:/usr/lib/ruby/gems' \
33
33
  --volume='/var/run/docker.sock:/var/run/docker.sock' \
34
- --user=#{File.basename(Smartcloud.config.user_home_path)} \
35
- --workdir='#{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-runner/apps' \
36
34
  --restart='always' \
37
35
  --network='nginx-network' \
38
- smartcloud/runner \
39
- spawn-fcgi -n -p 9000 /usr/bin/fcgiwrap -f", out: File::NULL)
36
+ smartcloud/runner", out: File::NULL)
40
37
  puts "done"
41
38
 
42
39
  print "-----> Starting container runner ... "
@@ -331,13 +328,12 @@ module Smartcloud
331
328
  --name='#{appname}_new' \
332
329
  --env-file='#{container_path}/env' \
333
330
  --expose='5000' \
331
+ --volume='#{Smartcloud.config.user_home_path}/.gem:#{Smartcloud.config.user_home_path}/.gem' \
334
332
  --volume='#{Smartcloud.config.user_home_path}/.smartcloud/config:#{Smartcloud.config.user_home_path}/.smartcloud/config' \
335
333
  --volume='#{container_path_with_version}:/app' \
336
334
  --volume='#{container_path}/app/vendor/bundle:/app/vendor/bundle' \
337
335
  --volume='#{container_path}/app/public:/app/public' \
338
336
  --volume='#{container_path}/app/node_modules:/app/node_modules' \
339
- --volume='#{Smartcloud.config.user_home_path}/.gem/ruby:/usr/lib/ruby/gems' \
340
- --workdir='/app' \
341
337
  --restart='always' \
342
338
  --network='nginx-network' \
343
339
  smartcloud/buildpacks/rails", out: File::NULL)
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.193
4
+ version: 0.0.194
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timeboard