Sha256: b06b859ebbc9094a0ff7cbbce08f571afc1c16a1f2e04e6e2a917d4c1a9abac4

Contents?: true

Size: 1.68 KB

Versions: 4

Compression:

Stored size: 1.68 KB

Contents

# Linux support for the bin/setup script.
#
# vim: ft=Dockerfile
# 
# © 2021 Konstantin Gredeskoul, All rights reserved, MIT License.
# 
# docker build . -t ruby-puma-daemon:latest
# docker run    -it ruby-puma-daemon:latest
#
# Once in the container: 
#    
#    # Run specs in Linux:
#    $ bundle exec rspec
#    $ bundle exec puma -C config/puma.rb spec/fixtures/lobster.ru
#    
FROM ruby:3.1

RUN apt-get update -y && \
    apt-get install -yqq \
    build-essential \
    git

ENV TERM=xterm-256color \
    LC_ALL=en_US.UTF-8 \
    LANG=en_US.UTF-8 \
    LANGUAGE=en_US.UTF-8 \
    USER=root \
    HOME=/root \
    DEBIAN_FRONTEND=noninteractive \
    DEBCONF_NONINTERACTIVE_SEEN=true \
    TZ=Pacific/Los_Angeles
  
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN apt-get update -y && \
    apt-get install -yqq locales

RUN locale-gen en_US.UTF-8

RUN apt-get update -y && \
    apt-get install -yqq \
    silversearcher-ag \
    curl \
    vim \
    htop \
    direnv \
    sudo

ENV SHELL_INIT="${HOME}/.bashrc"

RUN set -e && \
    cd ${HOME} && \
    git clone https://github.com/kigster/bash-it .bash_it && \
    cd .bash_it && \
    ./install.sh -s && \
    sed -i'' -E 's/bobby/powerline-multiline/g' ${SHELL_INIT} && \
    echo 'eval "$(direnv hook bash)"' >>${SHELL_INIT} && \
    gem install sym --no-document >/dev/null

RUN echo 'powerline.prompt.set-right-to ruby go user_info ssh clock' >>${SHELL_INIT} && \
    echo 'export POWERLINE_PROMPT_CHAR="#"' >>${SHELL_INIT}

ENV PUMAD_HOME=/app/puma-daemon
RUN mkdir -p ${PUMAD_HOME}
WORKDIR ${PUMAD_HOME}
COPY . ${PUMAD_HOME}
RUN test -f .envrc && direnv allow . || true
RUN bundle install

ENTRYPOINT /bin/bash -l

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
puma-daemon-0.5.0 Dockerfile.download
puma-daemon-0.3.2 Dockerfile.download
puma-daemon-0.3.0 Dockerfile.download
puma-daemon-0.2.3 Dockerfile.download