smartcloud 0.0.192 → 0.0.197
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: 6982ca2164a94d1797d6c69ab7978d96bfa9fcf9321fd9b8068038486773ca5c
|
4
|
+
data.tar.gz: a5815a2805fe1b7ec18f694851ff69a42a5147e0e956effc32772529ed16ffb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d0e2668008388ac6f3ec1fbbf00aaf8e0bdfec84f505587200d888959dd5dd65fa61aa120f8ebed79a2ffba64d9c7d631e378737df9d635db8a108d57b6b747
|
7
|
+
data.tar.gz: 3da3c36795e153ba2184495a7277f8e87e14ac0349510bc5a5a5f583ef74983a8c2d832df86b98b2a42e6ee8e403a2a812c8f7e0d800c3d8ed7e1258fd98dd15
|
@@ -1,4 +1,4 @@
|
|
1
|
-
FROM
|
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
|
44
|
+
ENTRYPOINT "/home/$(whoami)/entrypoint"
|
42
45
|
|
43
|
-
CMD "
|
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
|
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)
|