Last active
April 1, 2019 12:02
-
-
Save tonymorony/728e50b0f964ae0624fdb79c46942715 to your computer and use it in GitHub Desktop.
mm2 container build image
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
FROM ubuntu:18.04 | |
RUN apt-get update | |
# installing build tools | |
RUN apt-get install -y build-essential wget | |
# installing cmake | |
RUN wget -qO- "https://cmake.org/files/v3.14/cmake-3.14.0-Linux-x86_64.tar.gz" | tar --strip-components=1 -xz -C /usr/local | |
# additional dependencies | |
RUN apt-get install -y libboost-dev libboost-system-dev build-essential git llvm-3.9-dev libclang-3.9-dev clang-3.9 libcurl4-openssl-dev libssl-dev pkg-config curl | |
# installing rust | |
RUN curl https://sh.rustup.rs -s > /home/install.sh && \ | |
chmod +x /home/install.sh && \ | |
sh /home/install.sh -y --verbose | |
ENV PATH "/root/.cargo/bin:$PATH" | |
# additional rust components | |
RUN rustup install nightly-2018-12-24 && rustup default nightly-2018-12-24 && rustup component add rustfmt-preview | |
# building mm2 | |
RUN cd ~ && git clone https://github.com/artemii235/SuperNET.git --branch mm2 --single-branch && cd SuperNET && cargo build -vv | |
# dropping user to bash | |
CMD ["/bin/bash"] | |
# TODO: you have to open port needed for your netid |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment