Sha256: f2d0ba73f39e00b6a64f8b29da74cb0083ac7efc781c33a49bcf5da155825937

Contents?: true

Size: 1.56 KB

Versions: 1

Compression:

Stored size: 1.56 KB

Contents

FROM docker:latest
MAINTAINER Timeboard <hello@timeboard.me>

# Setting up group and user
# - envs
ARG DOCKER_GID
ARG USER_UID
ARG USER_NAME
# - fix to change gid of 999 to 99 so that addgroup is free to create a group with 999 as gid
# - Create group & user. Then add user to group
RUN sed -i "s/999/99/" /etc/group && \
	addgroup --gid "$DOCKER_GID" "docker" && \
	adduser --disabled-password --gecos "" --uid "$USER_UID" "$USER_NAME" && \
	adduser "$USER_NAME" "docker"

# We need the following:
# - git and git-daemon, because that gets us the git-http-backend CGI script
# - ruby, to run smartcloud gem
# - fcgiwrap, because that is how nginx does CGI
# ----- IMPORTANT NOTE: This is custom build fcgiwrap package to account for NO_BUFFERING option.
# ----- Original fcgiwrap: https://github.com/gnosek/fcgiwrap
# ----- Custom fcgiwrap: https://github.com/notr1ch/fcgiwrap
# - spawn-fcgi, to launch fcgiwrap and to create the unix socket
COPY fcgiwrap /root/apk-packages/fcgiwrap
RUN apk add --update coreutils && \
	apk add --update git && \
	apk add --update git-daemon && \
	apk add --update ruby && \
	apk add --update fcgiwrap --repository /root/apk-packages/fcgiwrap/release --allow-untrusted && \
    apk add --update spawn-fcgi && \
	rm -rf /root/apk-packages && \
    rm -rf /var/cache/apk/*

RUN gem install smartcloud --no-rdoc --no-ri

# launch fcgiwrap via spawn-fcgi; launch nginx in the foreground
# so the container doesn't die on us; supposedly we should be
# using supervisord or something like that instead, but this
# will do
CMD "git, fcgiwrap & spawn-fcgi installed"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
smartcloud-0.0.108 lib/smartcloud/grids/grid-runner/Dockerfile