Sha256: 34d666023b123f329e7ae1c06327cfe3178e5d79f4d322c0c1310cd5b1084663

Contents?: true

Size: 1.56 KB

Versions: 5

Compression:

Stored size: 1.56 KB

Contents

FROM openjdk:7-jdk

RUN apt-get update \
    && apt-get install -y libc6-dev --no-install-recommends \
    && apt-get install --force-yes -y gcc \
    && rm -rf /var/lib/apt/lists/*

ENV JRUBY_VERSION 9.3.1.0

RUN mkdir -p /opt/jruby \
    && curl -fSL https://repo1.maven.org/maven2/org/jruby/jruby-dist/${JRUBY_VERSION}/jruby-dist-${JRUBY_VERSION}-bin.tar.gz.sha256 -o /tmp/jruby.sha256 \
    && curl -fSL https://repo1.maven.org/maven2/org/jruby/jruby-dist/${JRUBY_VERSION}/jruby-dist-${JRUBY_VERSION}-bin.tar.gz -o /tmp/jruby.tar.gz \
    && echo "$(cat /tmp/jruby.sha256) */tmp/jruby.tar.gz" | sha256sum -c - \
    && tar -zx --strip-components=1 -f /tmp/jruby.tar.gz -C /opt/jruby \
    && update-alternatives --install /usr/local/bin/ruby ruby /opt/jruby/bin/jruby 1

# set the jruby binaries in the path
ENV PATH /opt/jruby/bin:$PATH

# skip installing gem documentation
RUN mkdir -p /opt/jruby/etc \
    && { \
        echo 'install: --no-document'; \
        echo 'update: --no-document'; \
    } >> /opt/jruby/etc/gemrc

# install bundler, gem requires bash to work
RUN gem install bundler rake net-telnet xmlrpc tzinfo-data

# install things globally, for great justice
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle
ENV BUNDLE_PATH="$GEM_HOME" \
    BUNDLE_BIN="$GEM_HOME/bin" \
    BUNDLE_SILENCE_ROOT_WARNING=1 \
    BUNDLE_APP_CONFIG="$GEM_HOME"
ENV PATH $BUNDLE_BIN:$PATH
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
    && chmod 777 "$GEM_HOME" "$BUNDLE_BIN"

RUN useradd -rm -d /home/jruby -u 1001 jruby
USER jruby
WORKDIR /home/jruby
CMD [ "irb" ]

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
elastic-apm-4.7.3 .ci/docker/jruby/7-jdk/Dockerfile
elastic-apm-4.7.2 .ci/docker/jruby/7-jdk/Dockerfile
elastic-apm-4.7.1 .ci/docker/jruby/7-jdk/Dockerfile
elastic-apm-4.7.0 .ci/docker/jruby/7-jdk/Dockerfile
elastic-apm-4.6.2 .ci/docker/jruby/7-jdk/Dockerfile