-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Downgrade cmake to 4.0 and change Dockerfile
- Loading branch information
Showing
3 changed files
with
16 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,26 @@ | ||
FROM boscore/builder as builder | ||
ARG branch=master | ||
ARG symbol=SYS | ||
FROM frank2018/update-boost:0.1.0 as builder | ||
ARG branch=update-boost-downgrade-chainbase | ||
ARG symbol=EOS | ||
|
||
ENV OPENSSL_ROOT_DIR /usr/include/openssl | ||
|
||
RUN git clone -b $branch https://github.com/boscore/bos.git --recursive \ | ||
&& cd bos && echo "$branch:$(git rev-parse HEAD)" > /etc/eosio-version \ | ||
RUN git clone -b $branch https://github.com/eosiosg/eos.git --recursive \ | ||
&& cd eos && sed -i 's/BOOST_THROW_EXCEPTION( std::runtime_error( "database created by a different compiler, build, boost version, or operating system" ) );//g' libraries/chainbase/src/chainbase.cpp \ | ||
&& echo "$branch:$(git rev-parse HEAD)" > /etc/eosio-version \ | ||
&& 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=/tmp/build -DBUILD_MONGO_DB_PLUGIN=true -DCORE_SYMBOL_NAME=$symbol \ | ||
-DOPENSSL_ROOT_DIR="${OPENSSL_ROOT_DIR}" -DCMAKE_CXX_STANDARD_LIBRARIES="-lpthread" \ | ||
&& cmake --build /tmp/build --target install | ||
|
||
FROM ubuntu:18.04 | ||
|
||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install openssl ca-certificates && rm -rf /var/lib/apt/lists/* | ||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install openssl ca-certificates iproute2 && rm -rf /var/lib/apt/lists/* | ||
COPY --from=builder /usr/local/lib/* /usr/local/lib/ | ||
COPY --from=builder /tmp/build/bin /opt/eosio/bin | ||
COPY --from=builder /bos/Docker/config.ini / | ||
COPY --from=builder /eos/Docker/config.ini / | ||
COPY --from=builder /etc/eosio-version /etc | ||
COPY --from=builder /bos/Docker/nodeosd.sh /opt/eosio/bin/nodeosd.sh | ||
COPY --from=builder /eos/Docker/nodeosd.sh /opt/eosio/bin/nodeosd.sh | ||
ENV EOSIO_ROOT=/opt/eosio | ||
RUN chmod +x /opt/eosio/bin/nodeosd.sh | ||
ENV LD_LIBRARY_PATH /usr/local/lib | ||
ENV PATH /opt/eosio/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | ||
ENV PATH /opt/eosio/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters