本帖最后由 驭无殇1998 于 2024-6-11 17:12 编辑 greatsql版本:8.0.32-25 操作系统:centos7.6 根据官方提供的编译文档,只下载了Dockerfile文件。然后根据系统修改了一些内容,以下是修改后的Dockerfile文件: 我源码编译的时候,改用centos7.6的镜像,然后跑不了了怎么办? 这个是我改动后的Dockerfile: FROM centos:centos7.6.1810 ENV LANG en_US.utf8 LABEL maintainer="greatsql.cn" \ email="greatsql@greatdb.com" \ forum="https://greatsql.cn/forum.php" \ gitee="https://gitee.com/GreatSQL/GreatSQL-Docker" ARG OPT_DIR=/opt ARG MYSQL_UID=3306 ARG MYSQL_USER=mysql ARG GREATSQL_BUILD_DOWNLOAD_URL="https://gitee.com/GreatSQL/GreatSQL-Docker/raw/greatsql-8.0.32-25/GreatSQL-Build" ARG GREATSQL_ENV="greatsql-setenv.sh" ARG ENTRYPOINT="docker-entrypoint.sh" ARG DEPS="autoconf automake binutils bison cmake cyrus-sasl-devel cyrus-sasl-scram gcc-c++ \ gcc-toolset-11 gcc-toolset-11-annobin-plugin-gcc jemalloc jemalloc-devel krb5-devel libaio-devel \ libcurl-devel libtirpc-devel libudev-devel m4 make ncurses-devel numactl-devel openldap-devel \ openssl openssl-devel pam-devel readline-devel wget zlib-devel" RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == \ systemd-tmpfiles-setup.service ] || rm -f $i; done); \ rm -f /lib/systemd/system/multi-user.target.wants/*;\ rm -f /etc/systemd/system/*.wants/*;\ rm -f /lib/systemd/system/local-fs.target.wants/*; \ rm -f /lib/systemd/system/sockets.target.wants/*udev*; \ rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \ rm -f /lib/systemd/system/basic.target.wants/*;\ rm -f /lib/systemd/system/anaconda.target.wants/*; \ rm -f /etc/yum.repos.d/* ; \ curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo > /dev/null 2>&1 && \ sed -i -e '/mirrors.cloud.aliyuncs.com/d' -e '/mirrors.aliyuncs.com/d' /etc/yum.repos.d/CentOS-Base.repo > /dev/null 2>&1 && \ yum clean all > /dev/null 2>&1 && \ yum makecache > /dev/null 2>&1 && \ yum update -y > /dev/null 2>&1 && \ yum install -y epel-release > /dev/null 2>&1 && \ yum install -y ${DEPS} > /dev/null 2>&1 && \ source /opt/rh/gcc-toolset-11/enable > /dev/null 2>&1 && \ echo 'source /opt/rh/gcc-toolset-11/enable' >> /root/.bash_profile; \ /usr/sbin/groupadd -g ${MYSQL_UID} ${MYSQL_USER} && \ /usr/sbin/useradd -u ${MYSQL_UID} -g ${MYSQL_UID} -s /sbin/nologin ${MYSQL_USER} && \ curl -o ${OPT_DIR}/${GREATSQL_ENV} ${GREATSQL_BUILD_DOWNLOAD_URL}/${GREATSQL_ENV} > /dev/null 2>&1 && \ curl -o /${ENTRYPOINT} ${GREATSQL_BUILD_DOWNLOAD_URL}/${ENTRYPOINT} > /dev/null 2>&1 && \ chmod +x /*sh ${OPT_DIR}/*sh ENTRYPOINT ["/docker-entrypoint.sh"] CMD ["bash"] 但是运行后,无法正常运行: 啊,我无解了 |
reddey
2024-6-11 13:26:07
| ||
一个学艺不精的国产数据库爱好者
|
||
驭无殇1998
2024-6-11 14:00:53
| ||
yejr
2024-6-11 15:23:49
| ||
驭无殇1998
2024-6-11 15:35:26
| ||
驭无殇1998
2024-6-11 17:11:15
| ||
yejr
2024-6-12 08:49:06
| ||
驭无殇1998
2024-6-12 09:07:10
| ||
reddey
2024-6-12 09:51:19
| ||
一个学艺不精的国产数据库爱好者
|
||
驭无殇1998
2024-6-12 10:41:31
| ||
合作电话:010-64087828
社区邮箱:greatsql@greatdb.com