From 9854c3d1fc2d09b8647c291795cf5a61a10f2970 Mon Sep 17 00:00:00 2001 From: hzarka Date: Sun, 20 Apr 2025 10:26:17 +0400 Subject: [PATCH 1/3] allow root --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 13b21a6d3..72c95d7b0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,9 +25,10 @@ COPY --from=builder /app /app WORKDIR /app -RUN useradd -u 1000 maxwell -d /app -RUN chown 1000:1000 /app && echo "$MAXWELL_VERSION" > /REVISION +#RUN useradd -u 1000 maxwell -d /app +#RUN chown 1000:1000 /app && echo "$MAXWELL_VERSION" > /REVISION -USER 1000 +RUN echo "$MAXWELL_VERSION" > /REVISION +#USER 1000 CMD [ "/bin/bash", "-c", "bin/maxwell-docker" ] From 9866d9e68aa0d9fec19024d08c1139e1ab0e660f Mon Sep 17 00:00:00 2001 From: hzarka Date: Sun, 20 Apr 2025 11:47:39 +0400 Subject: [PATCH 2/3] profiler --- Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Dockerfile b/Dockerfile index 72c95d7b0..a52d5b2f0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,4 +31,16 @@ WORKDIR /app RUN echo "$MAXWELL_VERSION" > /REVISION #USER 1000 + +RUN apt-get update && apt-get install -y --no-install-recommends wget unzip procps python3-pip htop + + +ARG ASYNC_PROFILER_VERSION=2.9 +RUN wget https://github.com/jvm-profiling-tools/async-profiler/releases/download/v${ASYNC_PROFILER_VERSION}/async-profiler-${ASYNC_PROFILER_VERSION}-linux-x64.tar.gz -O /tmp/async-profiler.tar.gz \ + && tar -xzf /tmp/async-profiler.tar.gz -C /opt \ + && rm /tmp/async-profiler.tar.gz +ENV ASYNC_PROFILER_HOME=/opt/async-profiler-${ASYNC_PROFILER_VERSION}-linux-x64 +ENV PATH="$PATH:${ASYNC_PROFILER_HOME}" + + CMD [ "/bin/bash", "-c", "bin/maxwell-docker" ] From 725df717aa9543edab4f435a0a7b4ed74104521b Mon Sep 17 00:00:00 2001 From: hzarka Date: Sun, 20 Apr 2025 14:22:00 +0400 Subject: [PATCH 3/3] pip install wormhole --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a52d5b2f0..ce83540c6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,7 +33,7 @@ RUN echo "$MAXWELL_VERSION" > /REVISION RUN apt-get update && apt-get install -y --no-install-recommends wget unzip procps python3-pip htop - +RUN pip install magic-wormhole ARG ASYNC_PROFILER_VERSION=2.9 RUN wget https://github.com/jvm-profiling-tools/async-profiler/releases/download/v${ASYNC_PROFILER_VERSION}/async-profiler-${ASYNC_PROFILER_VERSION}-linux-x64.tar.gz -O /tmp/async-profiler.tar.gz \