smartcloud 0.0.192 → 0.0.197

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: b08aae14de5119205ac1d149149c5c9eb1061c4c65425b4fb665a3770cc31826
4
- data.tar.gz: a98c1326ef877b438f248bb9a1ae3f1440e87209dc6941fc3028225b0290a572
3
+ metadata.gz: 6982ca2164a94d1797d6c69ab7978d96bfa9fcf9321fd9b8068038486773ca5c
4
+ data.tar.gz: a5815a2805fe1b7ec18f694851ff69a42a5147e0e956effc32772529ed16ffb5
5
5
  SHA512:
6
- metadata.gz: 1f87948942a572b47c2d49ebd6db66a1ef00a5e1ba8fe1db8a78b8ce50811b6475cdefadf364eb02c707ed0133ef618f578531c4946700b50d9eb361905689b5
7
- data.tar.gz: 6da0ad66a53a66f3d015cafb15d46c1621f3a647d27412199db5311fd680cad4752e472f34aa07582c78101892fb7d227ecc4db554d09d7d0c9bea4086bf1838
6
+ metadata.gz: 5d0e2668008388ac6f3ec1fbbf00aaf8e0bdfec84f505587200d888959dd5dd65fa61aa120f8ebed79a2ffba64d9c7d631e378737df9d635db8a108d57b6b747
7
+ data.tar.gz: 3da3c36795e153ba2184495a7277f8e87e14ac0349510bc5a5a5f583ef74983a8c2d832df86b98b2a42e6ee8e403a2a812c8f7e0d800c3d8ed7e1258fd98dd15
@@ -1,4 +1,4 @@
1
- FROM docker:latest
1
+ FROM ruby:2.6.4-alpine3.10
2
2
  MAINTAINER Timeboard <hello@timeboard.me>
3
3
 
4
4
  # Setting up group and user
@@ -26,18 +26,21 @@ RUN apk add fcgiwrap --repository /root/apk-packages/fcgiwrap/packages/main --al
26
26
  rm -rf /root/apk-packages
27
27
  RUN apk add --update coreutils && \
28
28
  apk add --update util-linux && \
29
+ apk add --update docker && \
29
30
  apk add --update git && \
30
31
  apk add --update git-daemon && \
31
- apk add --update ruby && \
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/$(whoami)/entrypoint"; chmod +x "/home/$(whoami)/entrypoint"
39
42
 
40
43
  # Set entrypoint
41
- ENTRYPOINT ["/entrypoint"]
44
+ ENTRYPOINT "/home/$(whoami)/entrypoint"
42
45
 
43
- CMD "git, fcgiwrap & spawn-fcgi installed"
46
+ CMD ["spawn-fcgi", "-n", "-p", "9000", "/usr/bin/fcgiwrap", "-f"]
@@ -21,6 +21,7 @@ RUN apk add --update build-base && \
21
21
  rm -rf /var/cache/apk/*
22
22
 
23
23
  USER "$USER_NAME"
24
+ WORKDIR "/app"
24
25
 
25
26
  # Install gems
26
27
  RUN gem install bundler && \
@@ -29,10 +30,10 @@ RUN gem install bundler && \
29
30
  # Generating entrypoint file
30
31
  RUN echo -e '#!/bin/sh\n\
31
32
  gem install --no-document --local smartcloud\n\
32
- exec "$@"' >> /entrypoint; chmod +x /entrypoint
33
+ exec "$@"' >> "/home/$(whoami)/entrypoint"; chmod +x "/home/$(whoami)/entrypoint"
33
34
 
34
35
  # Set entrypoint
35
- ENTRYPOINT ["/entrypoint"]
36
+ ENTRYPOINT "/home/$(whoami)/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.192
4
+ version: 0.0.197
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timeboard