smartcloud 0.0.202 → 0.0.203
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f39e9f8572245850d400240d2562d24233f0510f53576d5aa5618583b7f0a8a6
|
4
|
+
data.tar.gz: b994f906a8d88af94c62381f9a327159c253f4b639ec17d3c63f0d1ff2692dc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43656caf7f2c93f42bd216881260f2c4e7afc701c13742d0f55eb018c60ab28f1b6cf5833e09d6a6037a2503910f6a707d72a3b91ed9811259d9ae2f9c1c6a49
|
7
|
+
data.tar.gz: d5636d2f9f6ebef5666bf68a1ac179b2806a91f69bc268dcef9df2758d1d0eeae5f4dbdb27b8bf15aaede4f149a6a837b3cb834a4e72cc7e8f235ff6eaf75ca1
|
@@ -1,14 +1,10 @@
|
|
1
1
|
FROM ruby:2.6.4-alpine3.10
|
2
2
|
MAINTAINER Timeboard <hello@timeboard.me>
|
3
3
|
|
4
|
-
#
|
5
|
-
#
|
6
|
-
#
|
7
|
-
#
|
8
|
-
# ----- Custom fcgiwrap: https://github.com/notr1ch/fcgiwrap
|
9
|
-
# - git and git-daemon, because that gets us the git-http-backend CGI script
|
10
|
-
# - ruby, to run smartcloud gem
|
11
|
-
# - spawn-fcgi, to launch fcgiwrap and to create the unix socket
|
4
|
+
# FCGI Essentials
|
5
|
+
# --- IMPORTANT NOTE: This is custom built fcgiwrap package for alpine linux to account for NO_BUFFERING option.
|
6
|
+
# --- Original fcgiwrap: https://github.com/gnosek/fcgiwrap
|
7
|
+
# --- Custom fcgiwrap: https://github.com/notr1ch/fcgiwrap
|
12
8
|
COPY fcgiwrap /root/apk-packages/fcgiwrap
|
13
9
|
RUN apk add fcgiwrap --repository /root/apk-packages/fcgiwrap/packages/main --allow-untrusted && \
|
14
10
|
rm -rf /root/apk-packages
|
@@ -20,26 +16,18 @@ RUN apk add --update coreutils && \
|
|
20
16
|
apk add --update spawn-fcgi && \
|
21
17
|
rm -rf /var/cache/apk/*
|
22
18
|
|
23
|
-
#
|
24
|
-
#
|
19
|
+
# User
|
20
|
+
# --- Fix to change gid of 999 to 99 so that addgroup is free to create a group with 999 as gid
|
25
21
|
ARG USER_NAME
|
26
22
|
ARG USER_UID
|
27
23
|
ARG DOCKER_GID
|
28
|
-
# - fix to change gid of 999 to 99 so that addgroup is free to create a group with 999 as gid
|
29
|
-
# - Create group & user. Then add user to group
|
30
24
|
RUN sed -i "s/999/99/" /etc/group && \
|
31
|
-
adduser --disabled-password --gecos "" --uid $USER_UID $USER_NAME && \
|
32
|
-
adduser $USER_NAME docker
|
33
|
-
|
25
|
+
adduser --disabled-password --gecos "" --uid "$USER_UID" "$USER_NAME" && \
|
26
|
+
addgroup --gid "$DOCKER_GID" "docker" && adduser "$USER_NAME" "docker"
|
34
27
|
USER "$USER_NAME"
|
35
28
|
WORKDIR "/home/$USER_NAME/.smartcloud/grids/grid-runner/apps"
|
36
29
|
|
37
|
-
#
|
38
|
-
RUN
|
39
|
-
gem install --no-document smartcloud\n\
|
40
|
-
exec "$@"' >> "/home/$(whoami)/entrypoint"; chmod +x "/home/$(whoami)/entrypoint"
|
41
|
-
|
42
|
-
# Set entrypoint
|
43
|
-
ENTRYPOINT "/home/$(whoami)/entrypoint"
|
30
|
+
# Gems
|
31
|
+
RUN gem install smartcloud
|
44
32
|
|
45
33
|
CMD ["spawn-fcgi", "-n", "-p", "9000", "/usr/bin/fcgiwrap", "-f"]
|
@@ -1,7 +1,7 @@
|
|
1
1
|
FROM ruby:2.6.4-alpine3.10
|
2
|
-
|
2
|
+
LABEL maintainer="Timeboard <hello@timeboard.me>"
|
3
3
|
|
4
|
-
#
|
4
|
+
# Ruby on Rails Essentials
|
5
5
|
RUN apk add --update build-base && \
|
6
6
|
apk add --update tzdata && \
|
7
7
|
apk add --update nodejs && \
|
@@ -13,27 +13,16 @@ RUN apk add --update build-base && \
|
|
13
13
|
apk add --update mupdf-tools && \
|
14
14
|
rm -rf /var/cache/apk/*
|
15
15
|
|
16
|
-
#
|
17
|
-
# - envs
|
16
|
+
# User
|
18
17
|
ARG USER_UID
|
19
18
|
ARG USER_NAME
|
20
|
-
# - Create user.
|
21
19
|
RUN adduser --disabled-password --gecos "" --uid "$USER_UID" "$USER_NAME"
|
22
|
-
|
23
20
|
USER "$USER_NAME"
|
24
21
|
WORKDIR "/app"
|
25
22
|
|
26
|
-
#
|
27
|
-
RUN gem install
|
23
|
+
# Gems
|
24
|
+
RUN gem install smartcloud && \
|
25
|
+
gem install bundler && \
|
28
26
|
gem install god
|
29
27
|
|
30
|
-
# Generating entrypoint file
|
31
|
-
RUN echo -e '#!/bin/sh\n\
|
32
|
-
gem install --no-document smartcloud\n\
|
33
|
-
exec "$@"' >> "/home/$(whoami)/entrypoint"; chmod +x "/home/$(whoami)/entrypoint"
|
34
|
-
|
35
|
-
# Set entrypoint
|
36
|
-
ENTRYPOINT "/home/$(whoami)/entrypoint"
|
37
|
-
|
38
|
-
# Command to execute at container start
|
39
28
|
CMD ["buildpacker", "start"]
|
@@ -27,7 +27,6 @@ module Smartcloud
|
|
27
27
|
--env GIT_PROJECT_ROOT=#{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-runner/apps/repositories \
|
28
28
|
--env GIT_HTTP_EXPORT_ALL="" \
|
29
29
|
--expose='9000' \
|
30
|
-
--volume='#{Smartcloud.config.user_home_path}/.gem:#{Smartcloud.config.user_home_path}/.gem' \
|
31
30
|
--volume='#{Smartcloud.config.user_home_path}/.smartcloud/config:#{Smartcloud.config.user_home_path}/.smartcloud/config' \
|
32
31
|
--volume='#{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-runner:#{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-runner' \
|
33
32
|
--volume='/var/run/docker.sock:/var/run/docker.sock' \
|
@@ -328,7 +327,6 @@ module Smartcloud
|
|
328
327
|
--name='#{appname}_new' \
|
329
328
|
--env-file='#{container_path}/env' \
|
330
329
|
--expose='5000' \
|
331
|
-
--volume='#{Smartcloud.config.user_home_path}/.gem:#{Smartcloud.config.user_home_path}/.gem' \
|
332
330
|
--volume='#{Smartcloud.config.user_home_path}/.smartcloud/config:#{Smartcloud.config.user_home_path}/.smartcloud/config' \
|
333
331
|
--volume='#{container_path_with_version}:/app' \
|
334
332
|
--volume='#{container_path}/app/vendor/bundle:/app/vendor/bundle' \
|