Files
canal/client-adapter/docker/Dockerfile
wanglei 6965726dfe fix bug #2023 (#3871)
* fix bug #2023

* 配置canal-adapter,docker生成脚本
2022-05-13 12:39:43 +08:00

22 lines
567 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 本脚本参考slpcat的docker镜像生成脚本
# 链接:https://github.com/slpcat/docker-images/tree/master/bigdata/canal/debian10-canal-adapter-jdk8
FROM slpcat/openjdk:8
MAINTAINER 若虚 <slpcat@qq.com>
# install canal-adapter
COPY canal.adapter-*.tar.gz /tmp/
RUN \
mkdir -p /opt/canal-adapter && \
tar -zxf /tmp/canal.adapter-*.tar.gz -C /opt/canal-adapter && \
rm -r /tmp/canal.adapter-*.tar.gz
COPY startup.sh /opt/canal-adapter/bin/startup.sh
# 8081 exporter
EXPOSE 8081
WORKDIR /opt/canal-adapter
CMD ["sh", "-c", "./bin/startup.sh"]