forked from jl777/komodo
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #600 from KomodoPlatform/dev
[release] v0.8.1 [Falkor]
- Loading branch information
Showing
24 changed files
with
1,157 additions
and
128 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
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 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,8 +1,18 @@ | ||
FROM ubuntu:20.04 | ||
RUN \ | ||
apt-get update &&\ | ||
apt-get install -y libgomp1 | ||
CMD mkdir /komodo | ||
LABEL maintainer="[email protected]" | ||
RUN \ | ||
export ACCEPT_EULA=Y && \ | ||
export DEBIAN_FRONTEND=noninteractive && \ | ||
apt-get update && \ | ||
apt-get install software-properties-common -y && \ | ||
add-apt-repository ppa:ubuntu-toolchain-r/test -y && \ | ||
apt-get update && \ | ||
apt-get upgrade -y && \ | ||
apt-get dist-upgrade -y && \ | ||
apt-get install libgomp1 libstdc++6 binutils -y | ||
RUN mkdir /komodo | ||
WORKDIR /komodo | ||
COPY src/komodod src/komodo-cli ./ | ||
CMD ./komodod | ||
RUN ln -sf /komodo/komodod /usr/bin/komodod && \ | ||
ln -sf /komodo/komodo-cli /usr/bin/komodo-cli | ||
CMD ./komodod |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/usr/bin/env bash | ||
|
||
export LC_ALL=C | ||
|
||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
RUST_PACKAGE="$SCRIPT_DIR/../../depends/packages/rust.mk" | ||
|
||
RUST_VERSION=$( grep -oP "_version=\K.*" $RUST_PACKAGE ) | ||
|
||
update_hash() { | ||
url="https://static.rust-lang.org/dist/$1-$RUST_VERSION-$2.tar.gz" | ||
echo "Fetching $url" | ||
hash=$( curl $url | sha256sum | awk '{print $1}' ) | ||
sed -i "/\$(package)_$3_$4=/c\\\$(package)_$3_$4=$hash" $RUST_PACKAGE | ||
} | ||
|
||
update_rust_hash() { | ||
update_hash rust $1 sha256_hash $2 | ||
} | ||
|
||
update_stdlib_hash() { | ||
update_hash rust-std $1 rust_std_sha256_hash $1 | ||
} | ||
|
||
# For native targets | ||
# update_rust_hash RUST_TARGET MAKEFILE_PACKAGE_IDENTIFIER | ||
update_rust_hash aarch64-unknown-linux-gnu aarch64_linux | ||
update_rust_hash x86_64-apple-darwin darwin | ||
update_rust_hash x86_64-unknown-linux-gnu linux | ||
update_rust_hash x86_64-unknown-freebsd freebsd | ||
update_rust_hash x86_64-pc-windows-gnu mingw32 | ||
|
||
# For cross-compilation targets | ||
# update_stdlib_hash RUST_TARGET | ||
# update_stdlib_hash aarch64-unknown-linux-gnu | ||
# update_stdlib_hash x86_64-apple-darwin | ||
# update_stdlib_hash x86_64-pc-windows-gnu | ||
# update_stdlib_hash x86_64-unknown-freebsd |
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
Oops, something went wrong.