smartcloud 0.0.205 → 0.0.206

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: 508cd9616eb75cd436b64dfa7220ffc8c32e81cf4d98fac45785e9c6e90371a3
4
- data.tar.gz: fc978498a15f76d954a2f6d329b7779e309ee4efac3697b1ba636c2ad832ced6
3
+ metadata.gz: 6c62081c62d76faea905c0502e283247123f433d020ae50d47f50dfb1416c293
4
+ data.tar.gz: 91bc5b352f3f2c87c23aa7e6d65fdde68acb7994f7fad982374456556bf09689
5
5
  SHA512:
6
- metadata.gz: 6da1259fe42a1e3a503b763c8e043109ea645be7e9b7bbbd1e4e7c80f32ff78cba734c0c0d6f5ab706fbfb2cee3f92fc3192f8ce36baa938a55ab156f52be35f
7
- data.tar.gz: 3de9e101a192f548fd73fef7d7e02f957d41cedade63cb963b1d0343cb2949ed19ce2191e4b3725a692c8dbc318f4595e4ecc3fa5733696ee9f172c372666e74
6
+ metadata.gz: 6ec10636c50c3aa415047521e5e1e4712a21c4497f565d65f55cc3a9a34cb14990cf29067c0994dd3d51e67b32a01b48f4c60c96eaa2fa2f6c34536817c24282
7
+ data.tar.gz: a140bbac432112aaf0e33020612238ff2f11a24242ecf22a17bb28930934af23eea383d15b5c88e9cce1d08d1fa3de5c4cf6d5a5dded857e7f1c66b63bcfe183
@@ -1,6 +1,15 @@
1
1
  FROM ruby:2.6.4-alpine3.10
2
2
  MAINTAINER Timeboard <hello@timeboard.me>
3
3
 
4
+ # User
5
+ # --- Fix to change gid of 999 to 99 so that addgroup is free to create a group with 999 as gid
6
+ ARG USER_NAME
7
+ ARG USER_UID
8
+ ARG DOCKER_GID
9
+ RUN sed -i "s/999/99/" /etc/group && \
10
+ adduser --disabled-password --gecos "" --uid "$USER_UID" "$USER_NAME" && \
11
+ addgroup --gid "$DOCKER_GID" "docker" && adduser "$USER_NAME" "docker"
12
+
4
13
  # FCGI Essentials
5
14
  # --- IMPORTANT NOTE: This is custom built fcgiwrap package for alpine linux to account for NO_BUFFERING option.
6
15
  # --- Original fcgiwrap: https://github.com/gnosek/fcgiwrap
@@ -16,13 +25,7 @@ RUN apk add --update coreutils && \
16
25
  apk add --update spawn-fcgi && \
17
26
  rm -rf /var/cache/apk/*
18
27
 
19
- # User
20
- # --- Fix to change gid of 999 to 99 so that addgroup is free to create a group with 999 as gid
21
- ARG USER_NAME
22
- ARG USER_UID
23
- ARG DOCKER_GID
24
- RUN sed -i "s/999/99/" /etc/group && \
25
- adduser --disabled-password --gecos "" --uid "$USER_UID" "$USER_NAME"
28
+ # Privileges
26
29
  USER "$USER_NAME"
27
30
  WORKDIR "/home/$USER_NAME/.smartcloud/grids/grid-runner/apps"
28
31
 
@@ -1,6 +1,11 @@
1
1
  FROM ruby:2.6.4-alpine3.10
2
2
  LABEL maintainer="Timeboard <hello@timeboard.me>"
3
3
 
4
+ # User
5
+ ARG USER_UID
6
+ ARG USER_NAME
7
+ RUN adduser --disabled-password --gecos "" --uid "$USER_UID" "$USER_NAME"
8
+
4
9
  # Ruby on Rails Essentials
5
10
  RUN apk add --update build-base && \
6
11
  apk add --update tzdata && \
@@ -13,10 +18,7 @@ RUN apk add --update build-base && \
13
18
  apk add --update mupdf-tools && \
14
19
  rm -rf /var/cache/apk/*
15
20
 
16
- # User
17
- ARG USER_UID
18
- ARG USER_NAME
19
- RUN adduser --disabled-password --gecos "" --uid "$USER_UID" "$USER_NAME"
21
+ # Privileges
20
22
  USER "$USER_NAME"
21
23
  WORKDIR "/app"
22
24
 
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.205
4
+ version: 0.0.206
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timeboard