smartcloud 0.0.197 → 0.0.198

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: 6982ca2164a94d1797d6c69ab7978d96bfa9fcf9321fd9b8068038486773ca5c
4
- data.tar.gz: a5815a2805fe1b7ec18f694851ff69a42a5147e0e956effc32772529ed16ffb5
3
+ metadata.gz: dc8b9476cdd5ed8a6993d84f26b2ce1e6ebe966fd35f193622dff8532fd39ef2
4
+ data.tar.gz: 4922222e91746feb348eb887346567fc45cd3290dc3c875dbc882eb3bad11de1
5
5
  SHA512:
6
- metadata.gz: 5d0e2668008388ac6f3ec1fbbf00aaf8e0bdfec84f505587200d888959dd5dd65fa61aa120f8ebed79a2ffba64d9c7d631e378737df9d635db8a108d57b6b747
7
- data.tar.gz: 3da3c36795e153ba2184495a7277f8e87e14ac0349510bc5a5a5f583ef74983a8c2d832df86b98b2a42e6ee8e403a2a812c8f7e0d800c3d8ed7e1258fd98dd15
6
+ metadata.gz: 605b518da4a5d290f628198ddaa92aa060be0ec9cceadef487fa1dd1046e3929532aec9569a27db3afe13ecfd5722e7381427bc22eae29806d78ab9d8d0ee107
7
+ data.tar.gz: 720b3575168ecec626b12faedaf9cebd1c30b3d94f7a9dbbdbc7115afcd41e51b7ad30e84b82c028f463d280340460b0309145bd74835f150c7c952e79661cac
@@ -0,0 +1,30 @@
1
+ FROM ruby:2.6.4-alpine3.10
2
+ MAINTAINER Timeboard <hello@timeboard.me>
3
+
4
+ # Setting up group and user
5
+ # - envs
6
+ ARG USER_NAME
7
+ ARG USER_UID
8
+ ARG USER_GID
9
+ ARG DOCKER_GID
10
+ # - fix to change gid of 999 to 99 so that addgroup is free to create a group with 999 as gid
11
+ # - Create group & user. Then add user to group
12
+ RUN sed -i "s/999/99/" /etc/group && \
13
+ adduser --disabled-password --gecos "" --uid $USER_UID $USER_NAME && \
14
+ addgroup --gid $USER_GID $USER_NAME && adduser $USER_NAME $USER_NAME && \
15
+ addgroup --gid $DOCKER_GID "docker" && adduser $USER_NAME docker
16
+ USER "$USER_NAME"
17
+ WORKDIR "/home/$USER_NAME/.smartcloud"
18
+
19
+ # Generating entrypoint file
20
+ RUN echo -e '#!/bin/sh\n\
21
+ gem install --no-document smartcloud\n\
22
+ exec "$@"' >> "/home/$(whoami)/entrypoint"; chmod +x "/home/$(whoami)/entrypoint"
23
+
24
+ RUN apk add --update docker && \
25
+ rm -rf /var/cache/apk/*
26
+
27
+ # Set entrypoint
28
+ ENTRYPOINT "/home/$(whoami)/entrypoint"
29
+
30
+ CMD ["smartcloud"]
@@ -12,7 +12,7 @@ RUN sed -i "s/999/99/" /etc/group && \
12
12
  addgroup --gid "$DOCKER_GID" "docker" && \
13
13
  adduser --disabled-password --gecos "" --uid "$USER_UID" "$USER_NAME" && \
14
14
  adduser "$USER_NAME" "docker"
15
-
15
+ USER "$USER_NAME"
16
16
  # We need the following:
17
17
  # - fcgiwrap, because that is how nginx does CGI
18
18
  # ----- IMPORTANT NOTE: This is custom build fcgiwrap package to account for NO_BUFFERING option.
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.197
4
+ version: 0.0.198
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timeboard
@@ -30,6 +30,7 @@ files:
30
30
  - lib/smartcloud/base.rb
31
31
  - lib/smartcloud/boot.rb
32
32
  - lib/smartcloud/docker.rb
33
+ - lib/smartcloud/engine/Dockerfile
33
34
  - lib/smartcloud/grids/buildpacker.rb
34
35
  - lib/smartcloud/grids/grid-buildpacker/.keep
35
36
  - lib/smartcloud/grids/grid-mysql/docker-entrypoint-initdb.d/.keep