Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
YottaChain
YTBP
提交
aa9cb846
Y
YTBP
项目概览
YottaChain
/
YTBP
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Y
YTBP
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
aa9cb846
编写于
3月 09, 2018
作者:
K
Kevin Heifner
提交者:
GitHub
3月 09, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1602 from EOSIO/docker-fix
Fix Docker builds
上级
e3004363
ee4ad407
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
16 addition
and
8 deletion
+16
-8
Docker/Dockerfile
Docker/Dockerfile
+16
-8
未找到文件。
Docker/Dockerfile
浏览文件 @
aa9cb846
...
...
@@ -32,26 +32,26 @@ RUN wget https://dl.bintray.com/boostorg/release/1.64.0/source/boost_1_64_0.tar.
&&
echo
'using clang : 4.0 : clang++-4.0 ;'
>>
project-config.jam
\
&&
./b2
-d0
-j
$(
nproc
)
--with-thread
--with-date_time
--with-system
--with-filesystem
--with-program_options
\
--with-signals
--with-serialization
--with-chrono
--with-test
--with-context
--with-locale
--with-coroutine
--with-iostreams
toolset
=
clang
link
=
static
install
\
&&
cd
..
&&
rm
-rf
boost_1_64_0
&&
cd
-
&&
rm
-rf
boost_1_64_0
RUN
wget https://github.com/mongodb/mongo-c-driver/releases/download/1.9.3/mongo-c-driver-1.9.3.tar.gz
-O
- |
tar
-xz
\
&&
cd
mongo-c-driver-1.9.3
\
&&
./configure
--disable-automatic-init-and-cleanup
--prefix
=
/usr/local
\
&&
make
-j
$(
nproc
)
install
\
&&
cd
..
&&
rm
-rf
mongo-c-driver-1.9.3
&&
cd
-
&&
rm
-rf
mongo-c-driver-1.9.3
RUN
git clone
--depth
1
--single-branch
--branch
release_40 https://github.com/llvm-mirror/llvm.git
\
&&
git clone
--depth
1
--single-branch
--branch
release_40 https://github.com/llvm-mirror/clang.git llvm/tools/clang
\
&&
cd
llvm
\
&&
cmake
-H
.
-Bbuild
-GNinja
-DCMAKE_INSTALL_PREFIX
=
/opt/wasm
-DLLVM_TARGETS_TO_BUILD
=
-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD
=
WebAssembly
-DCMAKE_BUILD_TYPE
=
Release
\
&&
cmake
--build
build
--target
install
\
&&
cd
..
&&
rm
-rf
llvm
&&
cd
-
&&
rm
-rf
llvm
RUN
wget https://github.com/WebAssembly/binaryen/archive/1.37.21.tar.gz
-O
- |
tar
-xz
\
&&
cd
binaryen-1.37.21
\
&&
cmake
-H
.
-Bbuild
-GNinja
-DCMAKE_BUILD_TYPE
=
Release
\
&&
cmake
--build
build
--target
install
\
&&
cd
..
&&
rm
-rf
binaryen-1.37.21
&&
cd
-
&&
rm
-rf
binaryen-1.37.21
RUN
git clone
--depth
1 git://github.com/cryptonomex/secp256k1-zkp
\
...
...
@@ -59,12 +59,19 @@ RUN git clone --depth 1 git://github.com/cryptonomex/secp256k1-zkp \
&&
./autogen.sh
\
&&
./configure
--prefix
=
/usr/local
\
&&
make
-j
$(
nproc
)
install
\
&&
cd
..
&&
rm
-rf
secp256k1-zkp
&&
cd
-
&&
rm
-rf
secp256k1-zkp
RUN
git clone
--depth
1
-b
releases/stable git://github.com/mongodb/mongo-cxx-driver
\
&&
cd
mongo-cxx-driver
\
&&
cmake
-H
.
-Bbuild
-G
Ninja
-DCMAKE_BUILD_TYPE
=
Release
-DCMAKE_INSTALL_PREFIX
=
/usr/local
\
&&
cmake
--build
build
--target
install
&&
cmake
--build
build
--target
install
&&
cd
-
&&
rm
-rf
mongo-cxx-driver
RUN
git clone
--depth
1
--single-branch
--branch
master https://github.com/ucb-bar/berkeley-softfloat-3.git
\
&&
cd
berkeley-softfloat-3/build/Linux-x86_64-GCC
\
&&
make
-j
${
nproc
}
SPECIALIZE_TYPE
=
"8086-SSE"
SOFTFLOAT_OPS
=
"-DSOFTFLOAT_ROUND_EVEN -DINLINE_LEVEL=5 -DSOFTFLOAT_FAST_DIV32TO16 -DSOFTFLOAT_FAST_DIV64TO32"
\
&&
mkdir
-p
/opt/berkeley-softfloat-3
&&
cp
softfloat.a /opt/berkeley-softfloat-3/libsoftfloat.a
\
&&
mv
../../source/include /opt/berkeley-softfloat-3/include
&&
cd
-
&&
rm
-rf
berkeley-softfloat-3
ENV
SOFTFLOAT_ROOT /opt/berkeley-softfloat-3
### If you don't want to change the depedencies, you can comment out above lines and uncomnent the following line to get faster build time.
# FROM huangminghuang/eos_builder as builder
...
...
@@ -72,16 +79,17 @@ RUN git clone --depth 1 -b releases/stable git://github.com/mongodb/mongo-cxx-dr
RUN
git clone
-b
master
--depth
1 https://github.com/EOSIO/eos.git
--recursive
\
&&
cd
eos
\
&&
cmake
-H
.
-B
"/tmp/build"
-GNinja
-DCMAKE_BUILD_TYPE
=
Release
-DWASM_ROOT
=
/opt/wasm
-DCMAKE_CXX_COMPILER
=
clang++
\
-DCMAKE_C_COMPILER
=
clang
-DCMAKE_INSTALL_PREFIX
=
/
opt/eos
-DSecp256k1_ROOT_DIR
=
/usr/local
\
-DCMAKE_C_COMPILER
=
clang
-DCMAKE_INSTALL_PREFIX
=
/
tmp/build
-DSecp256k1_ROOT_DIR
=
/usr/local
\
&&
cmake
--build
/tmp/build
--target
install
FROM
ubuntu:16.04
RUN
apt-get update
&&
DEBIAN_FRONTEND
=
noninteractive apt-get
-y
install
openssl
&&
rm
-rf
/var/lib/apt/lists/
*
COPY
--from=builder /usr/local/lib/* /usr/local/lib/
COPY
--from=builder /tmp/build/
install/
bin /opt/eosio/bin
COPY
--from=builder /tmp/build/bin /opt/eosio/bin
COPY
--from=builder /tmp/build/contracts /contracts
COPY
--from=builder /eos/Docker/config.ini /eos/genesis.json /
COPY
start_eosiod.sh /opt/eosio/bin/start_eosiod.sh
ENV
EOSIO_ROOT=/opt/eosio
RUN
chmod
+x /opt/eosio/bin/start_eosiod.sh
ENV
LD_LIBRARY_PATH /usr/local/lib
VOLUME
/opt/eosio/bin/data-dir
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录