smartcloud 0.0.48 → 0.0.53
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/smartcloud/grids/grid-nginx/fastcgi.conf +2 -5
- data/lib/smartcloud/grids/grid-runner/Dockerfile +5 -0
- data/lib/smartcloud/grids/nginx.rb +1 -0
- data/lib/smartcloud/grids/runner.rb +1 -1
- data/lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/spawn-fcgi.conf +77 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a51ea5220f8369af62e7af8d07756839cdd67c6c64b7f6a0e2f84c9f6e626870
|
4
|
+
data.tar.gz: 5ab1989753710825e0bca32c236a329be406fa3215e0afef5e28742ef8ab3fdf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9b00e31e0a7eddbda9442b86f54396bb588596cc0c18926ca7908bb1b94648b19707afc7d7a14e9c04dcb5e2072d7434372b872aa766351eea1074a75a26e70
|
7
|
+
data.tar.gz: '091d98575f537ff8e1e76a9160afb3b455f3fb4b091b47c905cbf25ecf3c1c41be71a556cf1ea0eb967d3b260bf748c3f0069843abeecf57fd7006c89d1020cc'
|
@@ -2,10 +2,7 @@ client_max_body_size 0; # Git pushes can be massive, just to make sure nginx doe
|
|
2
2
|
|
3
3
|
include fastcgi_params; # Include the default fastcgi configs
|
4
4
|
|
5
|
-
fastcgi_param
|
6
|
-
fastcgi_param GIT_HTTP_EXPORT_ALL "";
|
7
|
-
# fastcgi_param GIT_PROJECT_ROOT /.smartcloud/grids/grid-runner/apps/repositories; # is the location of all of your git repositories.
|
8
|
-
fastcgi_param PATH_INFO $path_info; # Takes the capture group from our location directive and gives git that.
|
5
|
+
fastcgi_param PATH_INFO $uri; # Takes the capture group from our location directive and gives git that.
|
9
6
|
fastcgi_param REMOTE_USER $remote_user; # Forward REMOTE_USER as we want to know when we are authenticated
|
10
7
|
|
11
|
-
# IMPORTANT NOTE: Other required fastcgi_params have been defined
|
8
|
+
# IMPORTANT NOTE: Other required fastcgi_params have been defined as environment variables in the runner container and hence need not be passed here.
|
@@ -26,6 +26,11 @@ RUN apk add --update git && \
|
|
26
26
|
|
27
27
|
RUN gem install smartcloud --no-rdoc --no-ri
|
28
28
|
|
29
|
+
# Setting environment variables for git-http-backend to use pre-receive hook
|
30
|
+
# These will be used by fcgiwrap for fcgi
|
31
|
+
ENV SCRIPT_FILENAME=/usr/libexec/git-core/git-http-backend
|
32
|
+
ENV GIT_HTTP_EXPORT_ALL=""
|
33
|
+
|
29
34
|
# launch fcgiwrap via spawn-fcgi; launch nginx in the foreground
|
30
35
|
# so the container doesn't die on us; supposedly we should be
|
31
36
|
# using supervisord or something like that instead, but this
|
@@ -76,6 +76,7 @@ module Smartcloud
|
|
76
76
|
--name='nginx-letsencrypt' \
|
77
77
|
--env NGINX_PROXY_CONTAINER=nginx \
|
78
78
|
--env NGINX_DOCKER_GEN_CONTAINER=nginx-gen \
|
79
|
+
--env DEFAULT_EMAIL=#{Smartcloud.config.sysadmin_email} \
|
79
80
|
--volumes-from nginx \
|
80
81
|
--volume='/var/run/docker.sock:/var/run/docker.sock:ro' \
|
81
82
|
--restart='always' \
|
@@ -23,7 +23,7 @@ module Smartcloud
|
|
23
23
|
--env LETSENCRYPT_HOST=#{Smartcloud.config.git_domain} \
|
24
24
|
--env LETSENCRYPT_EMAIL=#{Smartcloud.config.sysadmin_email} \
|
25
25
|
--env LETSENCRYPT_TEST=#{Smartcloud.config.letsencrypt_test} \
|
26
|
-
--env GIT_PROJECT_ROOT
|
26
|
+
--env GIT_PROJECT_ROOT=#{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-runner/apps/repositories \
|
27
27
|
--expose='9000' \
|
28
28
|
--volume='#{Smartcloud.config.user_home_path}/.smartcloud/config:#{Smartcloud.config.user_home_path}/.smartcloud/config' \
|
29
29
|
--volume='#{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-runner:#{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-runner' \
|
@@ -0,0 +1,77 @@
|
|
1
|
+
# Copyright 1999-2009 Gentoo Foundation
|
2
|
+
# Distributed under the terms of the GNU General Public License v2
|
3
|
+
# $Header: /var/cvsroot/gentoo-x86/www-servers/spawn-fcgi/files/spawn-fcgi.confd,v 1.6 2009/09/28 08:38:02 bangert Exp $
|
4
|
+
|
5
|
+
# DO NOT MODIFY THIS FILE DIRECTLY! CREATE A COPY AND MODIFY THAT INSTEAD!
|
6
|
+
|
7
|
+
# The FCGI process can be made available through a filesystem socket or
|
8
|
+
# through a inet socket. One and only one of the two types must be choosen.
|
9
|
+
# Default is the inet socket.
|
10
|
+
|
11
|
+
# The filename specified by
|
12
|
+
# FCGI_SOCKET will be suffixed with a number for each child process, for
|
13
|
+
# example, fcgi.socket-1.
|
14
|
+
# Leave empty to use an IP socket (default). See below. Enabling this,
|
15
|
+
# disables the IP socket.
|
16
|
+
#
|
17
|
+
#FCGI_SOCKET=
|
18
|
+
|
19
|
+
# When using FCGI_PORT, connections will only be accepted from the following
|
20
|
+
# address. The default is 127.0.0.1. Use 0.0.0.0 to bind to all addresses.
|
21
|
+
#
|
22
|
+
#FCGI_ADDRESS=
|
23
|
+
|
24
|
+
# The port specified by FCGI_PORT is the port used
|
25
|
+
# by the first child process. If this is set to 1234 then subsequent child
|
26
|
+
# processes will use 1235, 1236, etc.
|
27
|
+
# The default is 1234 if FCGI_SOCKET is not set
|
28
|
+
#
|
29
|
+
#FCGI_PORT=
|
30
|
+
|
31
|
+
# The path to your FastCGI application. These sometimes carry the .fcgi
|
32
|
+
# extension but not always. For PHP, you should usually point this to
|
33
|
+
# /usr/bin/php-cgi.
|
34
|
+
#
|
35
|
+
#FCGI_PROGRAM=
|
36
|
+
|
37
|
+
# The number of child processes to spawn. The default is 1.
|
38
|
+
#
|
39
|
+
#FCGI_CHILDREN=
|
40
|
+
|
41
|
+
# If you want to run your application inside a chroot then specify the
|
42
|
+
# directory here. Leave this blank otherwise.
|
43
|
+
#
|
44
|
+
#FCGI_CHROOT=
|
45
|
+
|
46
|
+
# If you want to run your application from a specific directiory specify
|
47
|
+
# it here. Leave this blank otherwise.
|
48
|
+
#
|
49
|
+
#FCGI_CHDIR=
|
50
|
+
|
51
|
+
# The user and group to run your application as. If you do not specify these,
|
52
|
+
# the application will be run as root:root.
|
53
|
+
#
|
54
|
+
#FCGI_USER=
|
55
|
+
#FCGI_GROUP=
|
56
|
+
|
57
|
+
# Additional options you might want to pass to spawn-fcgi
|
58
|
+
#
|
59
|
+
#FCGI_EXTRA_OPTIONS=
|
60
|
+
|
61
|
+
# If your application requires additional environment variables, you may
|
62
|
+
# specify them here. See PHP example below.
|
63
|
+
#
|
64
|
+
#ALLOWED_ENV="PATH"
|
65
|
+
|
66
|
+
# PHP ONLY :: These two options are specific to PHP. The first is the number
|
67
|
+
# of child processes to spawn. The second is the number of requests to be
|
68
|
+
# served by a single PHP process before it is restarted.
|
69
|
+
#
|
70
|
+
#PHP_FCGI_CHILDREN=5
|
71
|
+
#PHP_FCGI_MAX_REQUESTS=500
|
72
|
+
#
|
73
|
+
# For this to work you would set
|
74
|
+
# ALLOWED_ENV="PATH PHP_FCGI_CHILDREN PHP_FCGI_MAX_REQUESTS"
|
75
|
+
|
76
|
+
# GIT ONLY :: Environment Variables
|
77
|
+
ALLOWED_ENV="GIT_PROJECT_ROOT"
|
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.
|
4
|
+
version: 0.0.53
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Timeboard
|
@@ -49,6 +49,7 @@ files:
|
|
49
49
|
- lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/apps/repositories/.keep
|
50
50
|
- lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/buildpacks/rails/gems/.keep
|
51
51
|
- lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
|
52
|
+
- lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/spawn-fcgi.conf
|
52
53
|
- lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/.keep
|
53
54
|
- lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/README.txt
|
54
55
|
- lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/data/configsets/_default/conf/lang/contractions_ca.txt
|