forked from KomodoPlatform/komodo-defi-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into feature-add-script-type-to-address-bak
* dev: (24 commits) chore(release): bump mm2 version to 2.1.0-beta (KomodoPlatform#2044) feat(trezor): add segwit support for withdraw with trezor (KomodoPlatform#1984) chore(config): remove vscode launchjson (KomodoPlatform#2040) feat(trading-proto-upgrade): wasm DB, kickstart, refund states, v2 RPCs (KomodoPlatform#2015) feat(UTXO): balance event streaming for Electrum clients (KomodoPlatform#2013) feat(tx): add new sign_raw_transaction rpc for UTXO and EVM coins (KomodoPlatform#1930) fix(p2p): handle encode_and_sign errors (KomodoPlatform#2038) chore(release): add changelog entries for v2.0.0-beta (KomodoPlatform#2037) chore(network): write network information to stdout (KomodoPlatform#2034) fix(price_endpoints): add cached url (KomodoPlatform#2032) deps(network): sync with upstream yamux (KomodoPlatform#2030) fix(config): accept a string as rpcport value (KomodoPlatform#2026) feat(nft): move db lock, add tx fee and confirmations (KomodoPlatform#1989) chore(network): update seednodes for netid 8762 (KomodoPlatform#2024) chore(network): add todo on peer storage behaviour (KomodoPlatform#2025) chore(network): exclude `168.119.236.249` from the seednode list (KomodoPlatform#2021) feat(network): deprecate 7777 network (KomodoPlatform#2020) chore(release): bump mm2 version to 2.0.0-beta (KomodoPlatform#2018) feat(UTXO swaps): kmd burn plan impl (KomodoPlatform#2006) chore(docs): fix the link to simple market maker in README.md (KomodoPlatform#2011) ...
- Loading branch information
Showing
175 changed files
with
11,383 additions
and
3,494 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,52 @@ | ||
# Happening in a well-defined setting the Docker builds should be somewhat | ||
# more reproducible than builds relying on the local workstation environment. | ||
# Hence we're going to use the Docker build as the reference one. | ||
# CI and local builds might be considered a second tier build optimizations. | ||
# | ||
# docker build --tag mm2 . | ||
|
||
# NB: The version here was picked to match the one tested in our CI. The latest Travis has (as of 2018-11) is Xenial. | ||
FROM docker.io/ubuntu:xenial | ||
|
||
RUN \ | ||
apt-get update &&\ | ||
apt-get install -y git build-essential libssl-dev wget &&\ | ||
apt-get install -y cmake &&\ | ||
# https://github.com/rust-lang/rust-bindgen/blob/master/book/src/requirements.md#debian-based-linuxes | ||
apt-get install -y llvm-3.9-dev libclang-3.9-dev clang-3.9 lld &&\ | ||
# openssl-sys requirements, cf. https://crates.io/crates/openssl-sys | ||
apt-get install -y pkg-config libssl-dev &&\ | ||
apt-get clean | ||
|
||
RUN \ | ||
wget -O- https://sh.rustup.rs > /tmp/rustup-init.sh &&\ | ||
sh /tmp/rustup-init.sh -y --default-toolchain none &&\ | ||
. /root/.cargo/env &&\ | ||
rustup set profile minimal &&\ | ||
rustup install nightly-2020-02-01 &&\ | ||
rustup default nightly-2020-02-01 &&\ | ||
# It seems that bindgen won't prettify without it: | ||
rustup component add rustfmt-preview &&\ | ||
rm -f /tmp/rustup-init.sh | ||
|
||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
|
||
# First 7 characters of the commit ID. | ||
ENV MM_VERSION="f236ad1" | ||
|
||
RUN cd /tmp &&\ | ||
wget https://api.github.com/repos/KomodoPlatform/atomicDEX-API/tarball/$MM_VERSION &&\ | ||
tar -xzf $MM_VERSION &&\ | ||
ls &&\ | ||
mv KomodoPlatform-atomicDEX-API-$MM_VERSION /mm2 &&\ | ||
rm $MM_VERSION &&\ | ||
echo $MM_VERSION > /mm2/MM_VERSION | ||
|
||
RUN cd /mm2 && cargo fetch | ||
|
||
# This will overwrite the Git version with the local one. | ||
# Only needed when we're developing or changing something locally. | ||
#COPY . /mm2 | ||
|
||
# Build MM1 and MM2. | ||
# Increased verbosity here allows us to see the MM1 CMake logs. | ||
RUN cd /mm2 &&\ | ||
cargo build -vv &&\ | ||
mv target/debug/mm2 /usr/local/bin/marketmaker-mainnet &&\ | ||
# We currently need BOB_PASSPHRASE, BOB_USERPASS, ALICE_PASSPHRASE and ALICE_USERPASS for the tests… | ||
#cargo test &&\ | ||
cargo clean | ||
|
||
CMD marketmaker-testnet | ||
FROM docker.io/debian:buster-slim | ||
|
||
MAINTAINER Onur Özkan <onur@komodoplatform.com> | ||
|
||
RUN apt-get update -y | ||
|
||
RUN apt-get install -y \ | ||
build-essential \ | ||
cmake \ | ||
ca-certificates \ | ||
curl \ | ||
wget \ | ||
gnupg | ||
|
||
RUN ln -s /usr/bin/python3 /bin/python | ||
|
||
RUN apt install -y \ | ||
software-properties-common \ | ||
lsb-release | ||
|
||
RUN curl --output llvm.sh https://apt.llvm.org/llvm.sh | ||
|
||
RUN chmod +x llvm.sh | ||
|
||
RUN ./llvm.sh 16 | ||
|
||
RUN rm ./llvm.sh | ||
|
||
RUN ln -s /usr/bin/clang-16 /usr/bin/clang | ||
|
||
ENV AR=/usr/bin/llvm-ar-16 | ||
ENV CC=/usr/bin/clang-16 | ||
|
||
RUN mkdir -m 0755 -p /etc/apt/keyrings | ||
|
||
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg | ||
|
||
RUN echo \ | ||
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \ | ||
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null | ||
|
||
RUN apt-get update -y | ||
|
||
RUN apt-get install -y \ | ||
docker-ce \ | ||
docker-ce-cli \ | ||
containerd.io \ | ||
docker-buildx-plugin | ||
|
||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | ||
|
||
ENV PATH="/root/.cargo/bin:$PATH" |
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
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 was deleted.
Oops, something went wrong.
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
Oops, something went wrong.