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 +4 -4
- data/lib/smartcloud/engine/Dockerfile +30 -0
- data/lib/smartcloud/grids/grid-runner/Dockerfile +1 -1
- 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: dc8b9476cdd5ed8a6993d84f26b2ce1e6ebe966fd35f193622dff8532fd39ef2
|
4
|
+
data.tar.gz: 4922222e91746feb348eb887346567fc45cd3290dc3c875dbc882eb3bad11de1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|