5 Star 22 Fork 13

Gitee 极速下载 / Maxwell

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/zendesk/maxwell
克隆/下载
Dockerfile 992 Bytes
一键复制 编辑 原始数据 按行查看 历史
Ben Osheroff 提交于 2024-03-24 11:07 . v1.41.1, "darn that dream"
FROM maven:3.8-jdk-11 as builder
ENV MAXWELL_VERSION=1.41.1 KAFKA_VERSION=1.0.0
RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get install -y make
# prime so we can have a cached image of the maven deps
COPY pom.xml /tmp
RUN cd /tmp && mvn dependency:resolve
COPY . /workspace
RUN cd /workspace \
&& KAFKA_VERSION=$KAFKA_VERSION make package MAXWELL_VERSION=$MAXWELL_VERSION \
&& mkdir /app \
&& mv /workspace/target/maxwell-$MAXWELL_VERSION/maxwell-$MAXWELL_VERSION/* /app/ \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* /workspace/ /root/.m2/ \
&& echo "$MAXWELL_VERSION" > /REVISION
# Build clean image with non-root priveledge
FROM openjdk:11-jdk-slim
RUN apt-get update \
&& apt-get -y upgrade
COPY --from=builder /app /app
COPY --from=builder /REVISION /REVISION
WORKDIR /app
RUN useradd -u 1000 maxwell -d /app
RUN chown 1000:1000 /app
USER 1000
CMD [ "/bin/bash", "-c", "bin/maxwell-docker" ]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/mirrors/Maxwell.git
git@gitee.com:mirrors/Maxwell.git
mirrors
Maxwell
Maxwell
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891