Sha256: 659516fdeef9b10c85ac442d8d19772370d9614edd0391acd0fbf031efa4f295

Contents?: true

Size: 1.35 KB

Versions: 1

Compression:

Stored size: 1.35 KB

Contents

FROM hausgold/ruby:2.5
MAINTAINER Hermann Mayer <hermann.mayer@hausgold.de>

# Update system gem
RUN gem update --system

# Add backports repository
RUN echo 'deb http://archive.debian.org/debian buster-backports main' \
  >> /etc/apt/sources.list

# Install nodejs 16
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -

# Install system packages and the ruby bundless
RUN apt-get update -yqqq && \
  apt-get install -y \
    build-essential nodejs locales sudo vim \
    ca-certificates jq curl cmake \
    bash-completion inotify-tools && \
  echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen && /usr/sbin/locale-gen && \
  gem install bundler --no-document --no-prerelease

# Install kcat (formerly known as kafkacat)
RUN curl -sL https://github.com/edenhill/kcat/archive/refs/tags/1.7.0.tar.gz \
  | tar xfvz - -C /tmp && cd /tmp/kcat-* && ./bootstrap.sh && \
  mv kcat /usr/local/bin && cd / && rm -rf /tmp/kcat-*

# Add new app user
RUN mkdir /app && \
  adduser app --home /home/app --shell /bin/bash \
    --disabled-password --gecos ""
ADD config/docker/shell/ /home/app/
RUN chown app:app -R /app /home/app /usr/local/bundle && \
  mkdir -p /home/app/.ssh && \
  sudo -HEu app bash -c 'bundle config set system "true"'

# Set the root password and grant root access to app
RUN echo 'root:root' | chpasswd
RUN echo 'app ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers

WORKDIR /app

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rimless-1.5.1 doc/kafka-playground/Dockerfile