Change dockerfile from centos7 to anolis8.8
This commit is contained in:
		@ -1,16 +1,18 @@
 | 
				
			|||||||
FROM centos:centos7
 | 
					FROM openanolis/anolisos:8.8
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# docker build --build-arg VERSION={VERSION} .
 | 
				
			||||||
ARG 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 && \
 | 
					    yum install -y ob-deploy obclient ob-sysbench libaio && \
 | 
				
			||||||
    rm -rf /usr/obd/mirror/remote/* && \
 | 
					    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
 | 
					    yum clean all
 | 
				
			||||||
 | 
					
 | 
				
			||||||
RUN mkdir /root/pkg && \
 | 
					RUN mkdir -p /root/pkg && \
 | 
				
			||||||
    cd /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/* && \
 | 
					    rm -rf /usr/obd/mirror/remote/* && \
 | 
				
			||||||
    yum clean all
 | 
					    yum clean all
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -10,9 +10,9 @@ obagent:
 | 
				
			|||||||
    # The working directory for obagent. obagent is started under this directory. This is a required field.
 | 
					    # The working directory for obagent. obagent is started under this directory. This is a required field.
 | 
				
			||||||
    home_path: /root/obagent
 | 
					    home_path: /root/obagent
 | 
				
			||||||
    # The port that pulls and manages the metrics. The default port number is 8088.
 | 
					    # 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.
 | 
					    # 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. The default value is INFO.
 | 
				
			||||||
    log_level: INFO
 | 
					    log_level: INFO
 | 
				
			||||||
    # Log path. The default value is log/monagent.log.
 | 
					    # Log path. The default value is log/monagent.log.
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user