Change dockerfile from centos7 to anolis8.8

This commit is contained in:
LINxiansheng 2023-09-10 12:40:35 +00:00 committed by ob-robot
parent 0cedfb8ea9
commit eea808932d
2 changed files with 9 additions and 7 deletions

View File

@ -1,16 +1,18 @@
FROM centos:centos7
FROM openanolis/anolisos:8.8
# docker build --build-arg VERSION={VERSION} .
ARG VERSION
RUN yum-config-manager --add-repo https://mirrors.aliyun.com/oceanbase/OceanBase.repo && \
RUN yum install -y yum-utils && \
yum-config-manager --add-repo https://mirrors.aliyun.com/oceanbase/OceanBase.repo && \
sed -i 's/$releasever/7/' /etc/yum.repos.d/OceanBase.repo && \
yum install -y ob-deploy obclient ob-sysbench libaio && \
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 && \
RUN mkdir -p /root/pkg && \
cd /root/pkg && \
yum install --downloadonly --downloaddir=. oceanbase-ce-${VERSION}.el7 oceanbase-ce-libs-${VERSION}.el7 obagent && \
yum install -y --downloadonly --downloaddir=. oceanbase-ce-${VERSION}.el7 oceanbase-ce-libs-${VERSION}.el7 obagent && \
rm -rf /usr/obd/mirror/remote/* && \
yum clean all

View File

@ -10,9 +10,9 @@ obagent:
# The working directory for obagent. obagent is started under this directory. This is a required field.
home_path: /root/obagent
# The port that pulls and manages the metrics. The default port number is 8088.
server_port: 8088
monagent_http_port: 8088
# Debug port for pprof. The default port number is 8089.
pprof_port: 8089
mgragent_http_port: 8089
# Log level. The default value is INFO.
log_level: INFO
# Log path. The default value is log/monagent.log.