Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
oceanbase
miniob
提交
44df868b
M
miniob
项目概览
oceanbase
/
miniob
1 年多 前同步成功
通知
74
Star
1521
Fork
537
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
分析
仓库
DevOps
项目成员
Pages
M
miniob
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Pages
分析
分析
仓库分析
DevOps
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
提交
未验证
提交
44df868b
编写于
9月 09, 2022
作者:
羽飞
提交者:
GitHub
9月 09, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
docker支持m1 (#74)
操作系统改用 openanolis; 使用自带的gcc(8)、cmake(3.20),安装readline-devel Docker 支持m1(arm64架构)
上级
0074a2f6
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
10 addition
and
15 deletion
+10
-15
Dockerfile
Dockerfile
+10
-15
未找到文件。
Dockerfile
浏览文件 @
44df868b
# how to use
# how to use
# docker build -t miniob .
# docker build -t miniob .
# make sure docker has been installed
# make sure docker has been installed
# FROM rockylinux:8
FROM
centos:7
FROM
openanolis/anolisos:8.6
ARG
HOME_DIR=/root
ARG
HOME_DIR=/root
ARG
GIT_SOURCE=github
ARG
GIT_SOURCE=github
ENV
LANG=en_US.UTF-8
ENV
LANG=en_US.UTF-8
# install gdb
RUN
yum
install
-y
gdb
# install rpm
# install rpm
RUN
yum
install
-y
make git wget centos-release-scl scl-utils which flex
# note: gcc-c++ in rockylinux 8 and gcc-g++ in rockylinux 9. use `dnf groupinfo "Development Tools"` to list the tools
RUN
dnf
install
-y
make cmake git wget which flex gdb gcc gcc-c++ diffutils readline-devel texinfo
# rockylinux:9 RUN dnf --enablerepo=crb install -y texinfo
# rockylinux:8
# RUN dnf --enablerepo=powertools install -y texinfo
# prepare env
# prepare env
RUN
yum
install
-y
devtoolset-11-gcc devtoolset-11-gcc-c++
WORKDIR
${HOME_DIR}
WORKDIR
${HOME_DIR}
RUN
echo
"export PATH=/opt/rh/devtoolset-11/root/bin:/usr/local/oceanbase/devtools/bin:
$PATH
"
>>
.bashrc
RUN
echo alias ls
=
\"
ls
--color
=
auto
\"
>>
.bashrc
RUN
echo
"export LD_LIBRARY_PATH=/usr/local/lib64:
$LD_LIBRARY_PATH
"
>>
.bashrc
RUN
echo
"export LD_LIBRARY_PATH=/usr/local/lib64:
\$
LD_LIBRARY_PATH"
>>
.bashrc
ENV
PATH /opt/rh/devtoolset-11/root/bin:/usr/local/oceanbase/devtools/bin:$PATH
ENV
LD_LIBRARY_PATH /usr/local/lib64:$LD_LIBRARY_PATH
# clone deps and compile deps
# clone deps and compile deps
RUN
mkdir
-p
${
HOME_DIR
}
/deps
RUN
mkdir
-p
${
HOME_DIR
}
/deps
WORKDIR
${HOME_DIR}/deps
WORKDIR
${HOME_DIR}/deps
RUN
wget https://github.com/Kitware/CMake/releases/download/v3.24.0/cmake-3.24.0-linux-x86_64.sh
\
&&
bash cmake-3.24.0-linux-x86_64.sh
--prefix
=
/usr/local/
--exclude-subdir
&&
rm
-f
cmake-3.24.0-linux-x86_64.sh
RUN
git clone https://github.com/libevent/libevent
-b
release-2.1.12-stable
\
RUN
git clone https://github.com/libevent/libevent
-b
release-2.1.12-stable
\
&&
mkdir
-p
${
HOME_DIR
}
/deps/libevent/build
\
&&
mkdir
-p
${
HOME_DIR
}
/deps/libevent/build
\
...
@@ -68,5 +63,5 @@ RUN cmake -B ${HOME_DIR}/source/miniob/build -DDEBUG=ON -DCMAKE_C_COMPILER=`whic
...
@@ -68,5 +63,5 @@ RUN cmake -B ${HOME_DIR}/source/miniob/build -DDEBUG=ON -DCMAKE_C_COMPILER=`whic
WORKDIR
${HOME_DIR}
WORKDIR
${HOME_DIR}
ENTRYPOINT
exec /sbin/init
ENTRYPOINT
tail -f /dev/null
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录