Commit 3afb1809 authored by Emmanuel Duchastenier's avatar Emmanuel Duchastenier Committed by GitHub
Browse files

feat(debug tools): add jattach to official docker image (#379)

in version 2.0: https://github.com/apangin/jattach

to be able to debug running envs more easily, in particular in customer environments.

Closes [RUNTIME-497](https://bonitasoft.atlassian.net/browse/RUNTIME-497)
parent f166db62
......@@ -2,6 +2,8 @@ FROM ubuntu:18.04
LABEL maintainer="Bonitasoft Runtime team <rd.engine@bonitasoft.com>"
ENV JATTACH_VERSION v2.0
# install packages
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
......@@ -19,13 +21,15 @@ RUN mkdir /opt/custom-init.d/
RUN groupadd -r bonita -g 1000 \
&& useradd -u 1000 -r -g bonita -d /opt/bonita/ -s /sbin/nologin -c "Bonita User" bonita
# grab gosu
# grab gosu and jattach
RUN gpg --keyserver keyserver.ubuntu.com --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 \
&& curl -fsSL "https://github.com/tianon/gosu/releases/download/1.13/gosu-$(dpkg --print-architecture)" -o /usr/local/bin/gosu \
&& curl -fsSL "https://github.com/tianon/gosu/releases/download/1.13/gosu-$(dpkg --print-architecture).asc" -o /usr/local/bin/gosu.asc \
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
&& rm /usr/local/bin/gosu.asc \
&& chmod +x /usr/local/bin/gosu
&& chmod +x /usr/local/bin/gosu \
&& curl -fsSL https://github.com/apangin/jattach/releases/download/${JATTACH_VERSION}/jattach -o /usr/bin/jattach \
&& chmod +x /usr/bin/jattach
# use --build-arg key=value in docker build command to override arguments
ARG BONITA_VERSION
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment