mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
fixed docker config
This commit is contained in:
@@ -4,6 +4,7 @@ MAINTAINER agapple (jianghang115@gmail.com)
|
||||
|
||||
env DOWNLOAD_LINK="http://download.oracle.com/otn-pub/java/jdk/8u181-b13/96a7b8442fe848ef90c96a2fad6ed6d1/jdk-8u181-linux-x64.rpm"
|
||||
# install system
|
||||
|
||||
RUN \
|
||||
/bin/cp -f /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
|
||||
echo 'root:Hello1234' | chpasswd && \
|
||||
@@ -32,7 +33,6 @@ RUN \
|
||||
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=xxx; oraclelicense=accept-securebackup-cookie" "$DOWNLOAD_LINK" -O /tmp/jdk-8-linux-x64.rpm && \
|
||||
yum -y install /tmp/jdk-8-linux-x64.rpm && \
|
||||
/bin/rm -f /tmp/jdk-8-linux-x64.rpm && \
|
||||
|
||||
echo "export JAVA_HOME=/usr/java/latest" >> /etc/profile && \
|
||||
echo "export PATH=\$JAVA_HOME/bin:\$PATH" >> /etc/profile && \
|
||||
yum clean all && \
|
||||
|
||||
11
docker/base/Dockerfile_admin
Normal file
11
docker/base/Dockerfile_admin
Normal file
@@ -0,0 +1,11 @@
|
||||
FROM canal/osbase:v1
|
||||
|
||||
MAINTAINER agapple (jianghang115@gmail.com)
|
||||
|
||||
RUN \
|
||||
groupadd -r mysql && useradd -r -g mysql mysql && \
|
||||
yum -y install wget mysql-server --nogpgcheck && \
|
||||
yum clean all && \
|
||||
true
|
||||
|
||||
CMD ["/bin/bash"]
|
||||
11
docker/base/Dockerfile_v2
Normal file
11
docker/base/Dockerfile_v2
Normal file
@@ -0,0 +1,11 @@
|
||||
FROM canal/osbase:v1
|
||||
|
||||
MAINTAINER agapple (jianghang115@gmail.com)
|
||||
|
||||
env NODE_EPORTER_LINK="https://github.com/prometheus/node_exporter/releases/download/v0.18.1/node_exporter-0.18.1.linux-arm64.tar.gz"
|
||||
|
||||
RUN \
|
||||
wget "$NODE_EPORTER_LINK" -O /tmp/node_exporter.tar.gz && \
|
||||
true
|
||||
|
||||
CMD ["/bin/bash"]
|
||||
Reference in New Issue
Block a user