Dockerfile 733 字节
Newer Older
R
Rongfeng Fu 已提交
1 2
FROM oceanbase/centos7:latest
RUN yum-config-manager --add-repo https://mirrors.aliyun.com/oceanbase/OceanBase.repo && \
羽飞's avatar
羽飞 已提交
3
    yum install -y ob-deploy-1.2.1 obclient ob-sysbench wget libaio && \
R
Rongfeng Fu 已提交
4 5
    mkdir /root/pkg && \
    cd /root/pkg && \
羽飞's avatar
羽飞 已提交
6 7
    wget https://mirrors.aliyun.com/oceanbase/community/stable/el/7/x86_64/oceanbase-ce-3.1.3-10000292022032916.el7.x86_64.rpm -q && \
    wget https://mirrors.aliyun.com/oceanbase/community/stable/el/7/x86_64/oceanbase-ce-libs-3.1.3-10000292022032916.el7.x86_64.rpm -q && \
R
Rongfeng Fu 已提交
8 9 10 11 12 13 14 15
    rm -rf /usr/obd/mirror/remote/* && \
    obd mirror clone *.rpm && \
    obd mirror list local && \
    rm -rf /root/base /root/pkg && \
    yum clean all
COPY boot /root/boot/
ENV PATH /root/boot:$PATH
CMD _boot