This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix #375 errors by installing git, rustup in PATH and flags to a…
…ccept defaults
- Loading branch information
Showing
2 changed files
with
18 additions
and
8 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,18 +1,27 @@ | ||
# delete images - docker rmi $(docker images -q) -f | ||
# delete containers - docker rm $(docker ps -a -q) -f | ||
|
||
FROM phusion/baseimage:0.10.1 | ||
LABEL maintainer "[email protected]" | ||
|
||
ARG POLKADOT_VERSION=v0.2 | ||
RUN apt-get update && \ | ||
apt-get upgrade -y && \ | ||
apt-get install -y cmake pkg-config libssl-dev && \ | ||
curl https://sh.rustup.rs -sSf | sh && \ | ||
curl https://sh.rustup.rs -sSf | sh -s -- -y && \ | ||
echo 'PATH="$/root/.cargo/bin:$PATH";' >> ~/.bash_profile && \ | ||
. ~/.bash_profile && . /root/.cargo/env && \ | ||
which rustup && which cargo && \ | ||
rustup update nightly && \ | ||
rustup target add wasm32-unknown-unknown --toolchain nightly && \ | ||
rustup update stable && \ | ||
cargo install --git https://github.com/alexcrichton/wasm-gc && \ | ||
git clone https://github.com/paritytech/polkadot.git && \ | ||
cd polkadot && \ | ||
./build.sh && \ | ||
cargo build | ||
rustup update stable && rustup default stable && \ | ||
cargo install --git https://github.com/alexcrichton/wasm-gc --force && \ | ||
cargo install --git https://github.com/pepyakin/wasm-export-table.git --force && \ | ||
apt-get install -y git vim curl && \ | ||
git clone https://github.com/paritytech/polkadot.git && cd polkadot && \ | ||
git fetch origin ${POLKADOT_VERSION}:${POLKADOT_VERSION} && \ | ||
git checkout ${POLKADOT_VERSION} && \ | ||
./build.sh && cargo build | ||
|
||
WORKDIR /polkadot | ||
CMD ["/bin/sh", "polkadot"] |
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,3 +1,4 @@ | ||
#!/bin/sh | ||
|
||
docker build -t polkadot:0.2 . | ||
docker build -t polkadot:0.2 .; | ||
docker run -it polkadot:0.2 bash; |