smartcloud 0.0.133 → 0.0.138

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: a3ca411e8d6df4e0c0bae131d586b856e01bff30817186ad178e7d18eb7447fc
4
- data.tar.gz: ec3c3ec243ca52b34561fe7df6f99539220aff04c19ab4d83be03301cacaed25
3
+ metadata.gz: 290d733d7d1544f87382e5df27a868e7a18ae120e09be189b1be9c20bc710fdb
4
+ data.tar.gz: 30dc990d866c842274cec684ab0febaa9d630400171dae5cd6f34321481ad3fc
5
5
  SHA512:
6
- metadata.gz: be8e3311fbf37bf422547717e684c427b42b39ca97f6cd3e4e2623e25addd0c5f24143dffb632661fd389a79adc41a8a16550790af0f4238db84b7cb57032988
7
- data.tar.gz: b58a3d5a4efaff1773f8c67ae471678823d80fcaeb459b122b15be52fd53cd2f3aaee0c9fba4983e737c23bfe88cf05c40a80ffadd465d070f73760be4ae146c
6
+ metadata.gz: fb83a259a9a11a8db3c9a9c6d5bb3239fb8943b6fdade9261792003ce5daa05a6ddf9024818326564cfc62f0496d135a7853ee0d60a714a320e2e4245313647a
7
+ data.tar.gz: 5542ef39f8271606c550b61e2a67b5b56c88ae184d1bda29f35a7413d40f85955e10347c7c6ef0e02bc4943cbd0ea3bd25de1e1be0f71007b26f442bc0a2e24c
@@ -21,29 +21,18 @@ RUN sed -i "s/999/99/" /etc/group && \
21
21
  # - git and git-daemon, because that gets us the git-http-backend CGI script
22
22
  # - ruby, to run smartcloud gem
23
23
  # - spawn-fcgi, to launch fcgiwrap and to create the unix socket
24
- COPY fcgiwrap /root/apk-packages/fcgiwrap
25
- RUN apk add /root/apk-packages/fcgiwrap/packages/main/x86_64/fcgiwrap-1.1.1-r4.apk --allow-untrusted && \
26
- rm -rf /root/apk-packages
24
+ # COPY fcgiwrap /root/apk-packages/fcgiwrap
25
+ # RUN apk add /root/apk-packages/fcgiwrap/packages/main/x86_64/fcgiwrap-1.1.1-r4.apk --allow-untrusted && \
26
+ # rm -rf /root/apk-packages
27
27
  RUN apk add --update coreutils && \
28
+ apk add --update util-linux && \
28
29
  apk add --update git && \
29
30
  apk add --update git-daemon && \
30
31
  apk add --update ruby && \
32
+ apk add --update fcgiwrap && \
31
33
  apk add --update spawn-fcgi && \
32
- apk add --update lsof && \
33
34
  rm -rf /var/cache/apk/*
34
35
 
35
36
  RUN gem install smartcloud --no-rdoc --no-ri
36
37
 
37
- COPY spawner.rb "/spawner.rb"
38
-
39
- # Generating entrypoint file
40
- RUN echo -e '#!/bin/sh\n\
41
- \n\
42
- ruby /spawner.rb
43
- \n\
44
- exec "$@"' >> /entrypoint; chmod +x /entrypoint;
45
-
46
- # Set entrypoint
47
- ENTRYPOINT ["/entrypoint"]
48
-
49
- CMD ["spawn-fcgi", "-v"]
38
+ CMD "git, fcgiwrap & spawn-fcgi installed"
@@ -34,7 +34,6 @@ module Smartcloud
34
34
  # Creating & Starting containers
35
35
  print "-----> Creating container nginx ... "
36
36
  if system("docker create \
37
- --log-opt mode=non-blocking --log-opt max-buffer-size=4m \
38
37
  --name='nginx' \
39
38
  #{"--publish='80:80' --publish='443:443'" if exposed == '--exposed'} \
40
39
  --volume='nginx-confd:/etc/nginx/conf.d/' \
@@ -17,7 +17,6 @@ module Smartcloud
17
17
  if system("docker image inspect smartcloud/runner", [:out, :err] => File::NULL) && system("docker image inspect smartcloud/buildpacks/rails", [:out, :err] => File::NULL)
18
18
  print "-----> Creating container runner ... "
19
19
  if system("docker create \
20
- --log-opt mode=non-blocking --log-opt max-buffer-size=4m \
21
20
  --name='runner' \
22
21
  --env VIRTUAL_PROTO=fastcgi \
23
22
  --env VIRTUAL_HOST=#{Smartcloud.config.git_domain} \
@@ -30,10 +29,12 @@ module Smartcloud
30
29
  --volume='#{Smartcloud.config.user_home_path}/.smartcloud/config:#{Smartcloud.config.user_home_path}/.smartcloud/config' \
31
30
  --volume='#{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-runner:#{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-runner' \
32
31
  --volume='/var/run/docker.sock:/var/run/docker.sock' \
32
+ --user=#{File.basename(Smartcloud.config.user_home_path)} \
33
33
  --workdir='#{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-runner/apps' \
34
34
  --restart='always' \
35
35
  --network='nginx-network' \
36
- smartcloud/runner", out: File::NULL)
36
+ smartcloud/runner \
37
+ spawn-fcgi -n -p 9000 /usr/bin/fcgiwrap -f", out: File::NULL)
37
38
  puts "done"
38
39
 
39
40
  print "-----> Starting container runner ... "
@@ -9,5 +9,5 @@ while read oldrev newrev refname; do
9
9
  else
10
10
  REPOSITORY_BASENAME=$(basename $(readlink -nf "$PWD"/..))
11
11
  fi
12
- runner prereceive $REPOSITORY_BASENAME $REMOTE_USER $oldrev $newrev $refname
12
+ script -qfc "runner prereceive $REPOSITORY_BASENAME $REMOTE_USER $oldrev $newrev $refname" /home/$(whoami)/.smartcloud/grids/grid-runner/apps/containers/$REPOSITORY_BASENAME/typescript
13
13
  done
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.133
4
+ version: 0.0.138
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timeboard
@@ -41,7 +41,6 @@ files:
41
41
  - lib/smartcloud/grids/grid-runner/fcgiwrap/packages/main/x86_64/fcgiwrap-1.1.1-r4.apk
42
42
  - lib/smartcloud/grids/grid-runner/fcgiwrap/packages/main/x86_64/fcgiwrap-doc-1.1.1-r4.apk
43
43
  - lib/smartcloud/grids/grid-runner/fcgiwrap/packages/main/x86_64/fcgiwrap-openrc-1.1.1-r4.apk
44
- - lib/smartcloud/grids/grid-runner/spawner.rb
45
44
  - lib/smartcloud/grids/grid-solr/docker-entrypoint-initdb.d/.keep
46
45
  - lib/smartcloud/grids/grid-solr/sunspot/conf/schema.xml
47
46
  - lib/smartcloud/grids/grid-solr/sunspot/conf/solrconfig.xml
@@ -1,14 +0,0 @@
1
- require "pty"
2
-
3
- begin
4
- PTY.spawn("spawn-fcgi -p 9000 /usr/bin/fcgiwrap -f") do |stdout, stdin, pid|
5
- begin
6
- # Do stuff with the output here. Just printing to show it works
7
- stdout.each { |line| print line }
8
- rescue Errno::EIO
9
- # puts "Errno:EIO error, but this probably just means that the process has finished giving output"
10
- end
11
- end
12
- rescue PTY::ChildExited
13
- puts "The child process exited!"
14
- end