Skip to content

Commit b5146d0

Browse files
ssulavsymious
authored andcommitted
HDDS-13251. Add byteman-submit and bmsubmit (apache#47)
1 parent c36597a commit b5146d0

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

Dockerfile

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ RUN set -eux ; \
5050
python3 python3-pip \
5151
snappy \
5252
sudo \
53+
unzip \
5354
zlib \
5455
&& dnf clean all \
5556
&& ln -sf /usr/bin/python3 /usr/bin/python
@@ -82,8 +83,18 @@ RUN set -eux ; \
8283
mv dumb-init /usr/local/bin/dumb-init
8384

8485
#byteman test for development
85-
RUN curl -Lo /opt/byteman.jar https://repo.maven.apache.org/maven2/org/jboss/byteman/byteman/4.0.23/byteman-4.0.23.jar \
86-
&& chmod o+r /opt/byteman.jar
86+
ARG BYTEMAN_VERSION=4.0.25
87+
ARG BYTEMAN_LIB=/opt/byteman/lib
88+
RUN curl -L -o /tmp/byteman.zip https://downloads.jboss.org/byteman/${BYTEMAN_VERSION}/byteman-download-${BYTEMAN_VERSION}-bin.zip && \
89+
unzip /tmp/byteman.zip -d /tmp && \
90+
sudo mkdir -p ${BYTEMAN_LIB} && \
91+
sudo cp /tmp/byteman-download-${BYTEMAN_VERSION}/lib/byteman.jar ${BYTEMAN_LIB}/byteman.jar && \
92+
sudo cp /tmp/byteman-download-${BYTEMAN_VERSION}/lib/byteman-submit.jar ${BYTEMAN_LIB}/byteman-submit.jar && \
93+
sudo cp /tmp/byteman-download-${BYTEMAN_VERSION}/bin/bmsubmit.sh /usr/local/bin/bmsubmit && \
94+
sudo chmod +x /usr/local/bin/bmsubmit && \
95+
sudo rm -rf /tmp/byteman.zip /tmp/byteman-download-${BYTEMAN_VERSION} && \
96+
sudo chmod o+r ${BYTEMAN_LIB}/byteman.jar && \
97+
sudo ln -s ${BYTEMAN_LIB}/byteman.jar /opt/byteman.jar
8798

8899
#async profiler for development profiling
89100
RUN set -eux ; \

0 commit comments

Comments
 (0)