Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
fix: Fix #375 errors by installing git, rustup in PATH and flags to a…
Browse files Browse the repository at this point in the history
…ccept defaults
  • Loading branch information
ltfschoen committed Jul 20, 2018
1 parent 2e74219 commit 4162fd1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
23 changes: 16 additions & 7 deletions docker/Dockerfile
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"]
3 changes: 2 additions & 1 deletion docker/build.sh
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;

0 comments on commit 4162fd1

Please sign in to comment.