smartcloud 0.0.42 → 0.0.47

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: 17a71ebe7320e8f91fd5eab896e1bce1ec7d9e91d0ae4c9634405348753fdbca
4
- data.tar.gz: 5a43560d74881d0543765f55dbc3b707bebdcb33bcf38dc3825345a062771e9c
3
+ metadata.gz: f429da1f686f6163272299d7f7ed73630d61a8cdec0b55eea74a15c61a5b634e
4
+ data.tar.gz: d93355d2a7692b9e0ee7c3b5fd6e5d8cb00fc88f1debb1ae8c97a6d74f4c327d
5
5
  SHA512:
6
- metadata.gz: 2d3a6165a04ed0c0ffd11f484605fdf4931612d79f3368f98c72a5f6b0283254e941129f865f17cf946f17bed989e9a247403f33877a9c44f1b04437126c7fea
7
- data.tar.gz: 228d812ca142504e2663fb0ad487d94a8a42f695321fc417dfb5a0eb158c9d074f0e766522d96e757183faa88a7b04ad5aeda34ca595b9165b27a9202e05ef9a
6
+ metadata.gz: f4f88c0453021d2cfe5208f9f368eca481fddcb325a8c06837d9ebe699e9e3351d261b590d21840bbe0827eb580be76864eaa11f5eae05deeddb16edc53c547c
7
+ data.tar.gz: 6ee91f75362a2c378460a7a993286dca4181d66f642834bfcb907785f8b8ca477fcbfa304428d84138c37b0d94fae3943a1f0310b2b9efdad7e9e78bb067e9e8
@@ -4,6 +4,8 @@ include fastcgi_params; # Include the default fastcgi configs
4
4
 
5
5
  fastcgi_param SCRIPT_FILENAME /usr/libexec/git-core/git-http-backend; # Tells fastcgi to pass the request to the git http backend executable.
6
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 $uri; # Takes the capture group from our location directive and gives git that.
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.
9
9
  fastcgi_param REMOTE_USER $remote_user; # Forward REMOTE_USER as we want to know when we are authenticated
10
+
11
+ # IMPORTANT NOTE: Other required fastcgi_params have been defined already as environment variables in the runner container and hence need not be passed here.
@@ -2,12 +2,16 @@ FROM docker:latest
2
2
  MAINTAINER Timeboard <hello@timeboard.me>
3
3
 
4
4
  # Setting up group and user
5
+ # - envs
5
6
  ARG DOCKER_GID
6
7
  ARG USER_UID
7
8
  ARG USER_NAME
8
- # RUN addgroup --gid "$DOCKER_GID" "docker"
9
- RUN adduser --disabled-password --gecos "" --uid "$USER_UID" "$USER_NAME"
10
- # RUN adduser "$USER_NAME" "docker"
9
+ # - fix to change gid of 999 to 99 so that addgroup is free to create a group with 999 as gid
10
+ # - Create group & user. Then add user to group
11
+ RUN sed -i "s/999/99/" /etc/group && \
12
+ addgroup --gid "$DOCKER_GID" "docker" && \
13
+ adduser --disabled-password --gecos "" --uid "$USER_UID" "$USER_NAME" && \
14
+ adduser "$USER_NAME" "docker"
11
15
 
12
16
  # We need the following:
13
17
  # - git, because that gets us the git-http-backend CGI script
@@ -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 USER_HOME_PATH=#{Smartcloud.config.user_home_path} \
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' \
@@ -110,7 +110,7 @@ module Smartcloud
110
110
  --build-arg DOCKER_GID=`getent group docker | cut -d: -f3` \
111
111
  --build-arg USER_UID=`id -u` \
112
112
  --build-arg USER_NAME=`id -un` \
113
- #{Smartcloud.config.root_path}/lib/smartcloud/grids/grid-runner")
113
+ #{Smartcloud.config.root_path}/lib/smartcloud/grids/grid-runner", out: File::NULL)
114
114
  puts "done"
115
115
  end
116
116
  end
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.42
4
+ version: 0.0.47
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timeboard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-30 00:00:00.000000000 Z
11
+ date: 2019-08-31 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