smartcloud 0.0.97 → 0.0.102

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: d2d583e862b36573d01791bf3af131b5673afe2b8ed618c5dc79b2fac30f0772
4
- data.tar.gz: f300d0917e90ba5b06b6bf8422d0a787c166ad9be580bb616a55a6fd7368b0ff
3
+ metadata.gz: b6d124bd7aa0fb64d77904c02c02c75031df2b710ba90e169381690d2312d1f5
4
+ data.tar.gz: 99f42450b7233578d8a0cbc8cecf942297cb93569da0d114db2de51759e51b9a
5
5
  SHA512:
6
- metadata.gz: ec188734cc5c471228e9f45e0498b776d5b378e2ff16e94088a630614fad30a7466770479a0750e4d954549c1ef25fa0508936dd780dea0915042da99e952974
7
- data.tar.gz: 0a66109ac1913a854c95fb2af9c223649f24982684a9fc4f39945de940b3a62c756958aa98c77a54d6794bf0e54e34bf2ef2b002da378ba896c907f45359dcd1
6
+ metadata.gz: fc2cef41d5eadd6e0724dd8de3043ee4493a136d65f1a7b2007b91eee9e0d99ae8e82015d38c7ff58f131f395af78148f9813a6ad0ff706c6d42ec4bd27ba3a0
7
+ data.tar.gz: d179ded1e20ce7c21a9eb880f50f9925b785353a1a98378858069067b277a0afbb0d751c3a865fbfe83af5e6195ae74606ffb2e57de61296682ea614de51907c
@@ -1,8 +1,6 @@
1
1
  require "ostruct"
2
2
  require "logger"
3
3
 
4
- $stdout.sync = true
5
-
6
4
  # The main Smartcloud driver
7
5
  module Smartcloud
8
6
  def self.config
@@ -1,7 +1,9 @@
1
- client_max_body_size 0; # Git pushes can be massive, just to make sure nginx doesn't suddenly cut the connection add this.
1
+ client_max_body_size 0; # Git pushes can be massive, just to make sure nginx doesn't suddenly cut the connection add this. Setting to 0 disables checking of client_max_body_size
2
+ fastcgi_buffering off; # disables buffering of responses from the FastCGI server on nginx
2
3
 
3
4
  include fastcgi_params; # Include the default fastcgi configs
4
5
 
6
+ fastcgi_param NO_BUFFERING 1; # disables buffering on fcgiwrap
5
7
  fastcgi_param SCRIPT_FILENAME /usr/libexec/git-core/git-http-backend; # Tells fastcgi to pass the request to the git http backend executable.
6
8
  fastcgi_param PATH_INFO $uri; # Takes the capture group from our location directive and gives git that.
7
9
  fastcgi_param REMOTE_USER $remote_user; # Forward REMOTE_USER as we want to know when we are authenticated
@@ -14,13 +14,21 @@ RUN sed -i "s/999/99/" /etc/group && \
14
14
  adduser "$USER_NAME" "docker"
15
15
 
16
16
  # We need the following:
17
- # - git, because that gets us the git-http-backend CGI script
18
17
  # - fcgiwrap, because that is how nginx does CGI
18
+ # IMPORTANT NOTE: This is custom build fcgiwrap package to account for NO_BUFFERING OPTION.
19
+ # Original URL: https://github.com/gnosek/fcgiwrap
20
+ # Custom URL: https://github.com/notr1ch/fcgiwrap
21
+ COPY fcgiwrap /root/apk-packages/fcgiwrap
22
+ RUN apk add --repository /root/apk-packages fcgiwrap && \
23
+ rm -rf /root/apk-packages
24
+
25
+ # - git and git-daemon, because that gets us the git-http-backend CGI script
26
+ # - ruby, to run smartcloud gem
19
27
  # - spawn-fcgi, to launch fcgiwrap and to create the unix socket
20
- RUN apk add --update git && \
28
+ RUN apk add --update coreutils && \
29
+ apk add --update git && \
21
30
  apk add --update git-daemon && \
22
31
  apk add --update ruby && \
23
- apk add --update fcgiwrap && \
24
32
  apk add --update spawn-fcgi && \
25
33
  rm -rf /var/cache/apk/*
26
34
 
@@ -0,0 +1,46 @@
1
+ # Contributor: Eivind Uggedal <eu@eju.no>
2
+ # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
3
+ pkgname=fcgiwrap
4
+ pkgver=1.1.0
5
+ pkgrel=3
6
+ pkgdesc="Simple server for running CGI applications over FastCGI"
7
+ # This url has been changed to add no_buffering feature for fcgiwrap where has not been currently merged by gnosek
8
+ #url="https://github.com/gnosek/fcgiwrap"
9
+ url="https://github.com/notr1ch/fcgiwrap"
10
+ arch="all"
11
+ license="MIT"
12
+ pkgusers="fcgiwrap"
13
+ pkggroups="www-data"
14
+ install="$pkgname.pre-install"
15
+ makedepends="$depends_dev autoconf libtool automake fcgi-dev"
16
+ subpackages="$pkgname-doc $pkgname-openrc"
17
+ # This source has been changed to add no_buffering feature for fcgiwrap where has not been currently merged by gnosek
18
+ #source="$pkgname-$pkgver.tar.gz::https://github.com/gnosek/$pkgname/archive/$pkgver.tar.gz
19
+ source="$pkgname-$pkgver.tar.gz::https://github.com/notr1ch/$pkgname/archive/$pkgver.tar.gz
20
+ $pkgname.initd
21
+ $pkgname.confd"
22
+
23
+ builddir="$srcdir/$pkgname-$pkgver"
24
+
25
+ build() {
26
+ cd "$builddir"
27
+ autoreconf --install
28
+ CFLAGS="$CFLAGS -Wno-implicit-fallthrough" \
29
+ ./configure --prefix=/usr \
30
+ --mandir=/share/man \
31
+ --sbindir=/bin
32
+ make
33
+ }
34
+
35
+ package() {
36
+ cd "$builddir"
37
+ install -d -m2775 -o fcgiwrap -g www-data "$pkgdir"/run/fcgiwrap
38
+ make DESTDIR="$pkgdir" install
39
+ install -Dm755 $srcdir/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
40
+ install -Dm644 $srcdir/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
41
+ }
42
+
43
+
44
+ sha512sums="b8d35762d1d3c94a67602290b0092f0c38cffbbcd3dbc16597abf8b92172909b04450c238de2e430e841a17dd47fdd48d6a001f77539966980ef1af61e447ddc fcgiwrap-1.1.0.tar.gz
45
+ 0dbf5f4387e5dc5de6e9bd6d98247e175f1a7943fe1d04ea916881b1269fd0b62abfafac91f8c0dd2f4dc9c71118195ba9dd7cf9bb5e3d93e6e711ec7d770453 fcgiwrap.initd
46
+ 893e9afa92c20c9d0dab68fffc806a1be1f2e28a7e73bbb497316386a9ee083be4bad68a90f660e489311a9812a512b50fb0edb8b9c49b12f6cd266ba53b01a6 fcgiwrap.confd"
@@ -0,0 +1,6 @@
1
+ # set number of preforked children. defaults to number of system CPUs
2
+ #nproc=$(nproc)
3
+
4
+ # set listen socket. Defaults to unix:/run/fcgiwrap/fcgiwrap.sock
5
+ #socket=unix:/run/fcgiwrap/fcgiwrap.sock
6
+
@@ -0,0 +1,43 @@
1
+ #!/sbin/openrc-run
2
+
3
+ name="fcgiwrap"
4
+ description="fcgiwrap cgi daemon"
5
+
6
+ command="/usr/bin/fcgiwrap"
7
+ command_background="yes"
8
+ user="fcgiwrap"
9
+ group="www-data"
10
+ : ${socket:=unix:/run/fcgiwrap/fcgiwrap.sock}
11
+
12
+ depend() {
13
+ need net localmount
14
+ after firewall
15
+ }
16
+
17
+ start_pre() {
18
+ command_args="-c ${nproc:-$(nproc)} -s $socket"
19
+ case "$socket" in
20
+ unix:/*)
21
+ local socket_path=${socket#unix:}
22
+ checkpath --directory --mode 2775 --owner ${user}:${group} \
23
+ ${socket_path%/*}
24
+ ;;
25
+ esac
26
+ }
27
+
28
+ start() {
29
+ ebegin "Starting ${name}"
30
+ start-stop-daemon --exec ${command} \
31
+ --background \
32
+ -u ${user} -g ${group} \
33
+ --start -- ${command_args}
34
+ eend $?
35
+ }
36
+
37
+ stop_post() {
38
+ case "$socket" in
39
+ unix:/*)
40
+ rm -f "${socket#unix:}"
41
+ ;;
42
+ esac
43
+ }
@@ -0,0 +1,7 @@
1
+ #!/bin/sh
2
+
3
+ addgroup -S www-data 2>/dev/null
4
+ adduser -S -D -H -h /var/run/fcgiwrap -s /sbin/nologin -G www-data \
5
+ fcgiwrap 2>/dev/null
6
+ exit 0
7
+
@@ -218,10 +218,12 @@ module Smartcloud
218
218
  end
219
219
 
220
220
  def self.prereceive_app(appname, username, oldrev, newrev, refname)
221
+ $stdout.sync = true
221
222
  logger = Logger.new($stdout)
222
223
 
223
224
  5.times do
224
225
  puts '.'
226
+ $stdout.flush
225
227
  sleep(1)
226
228
  end
227
229
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smartcloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.97
4
+ version: 0.0.102
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timeboard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-01 00:00:00.000000000 Z
11
+ date: 2019-09-02 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Smartcloud is a full-stack deployment framework for rails optimized for
14
14
  programmer happiness and peaceful administration. It encourages natural simplicity
@@ -33,6 +33,14 @@ files:
33
33
  - lib/smartcloud/grids/grid-runner/Dockerfile
34
34
  - lib/smartcloud/grids/grid-runner/buildpacks/buildpacker.rb
35
35
  - lib/smartcloud/grids/grid-runner/buildpacks/rails/Dockerfile
36
+ - lib/smartcloud/grids/grid-runner/fcgiwrap/APKBUILD
37
+ - lib/smartcloud/grids/grid-runner/fcgiwrap/fcgiwrap.confd
38
+ - lib/smartcloud/grids/grid-runner/fcgiwrap/fcgiwrap.initd
39
+ - lib/smartcloud/grids/grid-runner/fcgiwrap/fcgiwrap.pre-install
40
+ - lib/smartcloud/grids/grid-runner/fcgiwrap/release/x86_64/APKINDEX.tar.gz
41
+ - lib/smartcloud/grids/grid-runner/fcgiwrap/release/x86_64/fcgiwrap-1.1.0-r3.apk
42
+ - lib/smartcloud/grids/grid-runner/fcgiwrap/release/x86_64/fcgiwrap-doc-1.1.0-r3.apk
43
+ - lib/smartcloud/grids/grid-runner/fcgiwrap/release/x86_64/fcgiwrap-openrc-1.1.0-r3.apk
36
44
  - lib/smartcloud/grids/grid-solr/docker-entrypoint-initdb.d/.keep
37
45
  - lib/smartcloud/grids/grid-solr/sunspot/conf/schema.xml
38
46
  - lib/smartcloud/grids/grid-solr/sunspot/conf/solrconfig.xml