Dockerfile 817 字节
Newer Older
R
Rongfeng Fu 已提交
1
FROM oceanbase/centos7:latest
2 3 4

ARG VERSION=3.1.3-10100032022041510

R
Rongfeng Fu 已提交
5
RUN yum-config-manager --add-repo https://mirrors.aliyun.com/oceanbase/OceanBase.repo && \
6
    yum install -y ob-deploy obclient ob-sysbench wget libaio && \
7 8 9 10 11
    rm -rf /usr/obd/mirror/remote/* && \
    rm -rf /u01/mysql /u01/obclient/bin/mysqld* /u01/obclient/bin/aria* /u01/obclient/bin/maria* && \
    yum clean all

RUN mkdir /root/pkg && \
R
Rongfeng Fu 已提交
12
    cd /root/pkg && \
13 14
    wget https://mirrors.aliyun.com/oceanbase/community/stable/el/7/x86_64/oceanbase-ce-${VERSION}.el7.x86_64.rpm -q && \
    wget https://mirrors.aliyun.com/oceanbase/community/stable/el/7/x86_64/oceanbase-ce-libs-${VERSION}.el7.x86_64.rpm -q && \
R
Rongfeng Fu 已提交
15 16
    rm -rf /usr/obd/mirror/remote/* && \
    yum clean all
17

R
Rongfeng Fu 已提交
18 19
COPY boot /root/boot/
ENV PATH /root/boot:$PATH
20 21

WORKDIR /root
R
Rongfeng Fu 已提交
22
CMD _boot