diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8787648 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,37 @@ +FROM ubuntu:bionic + +RUN apt-get update +RUN apt-get install -y software-properties-common +RUN apt-get install -y wget +RUN apt-get install -y unzip +RUN add-apt-repository -y ppa:ethereum/ethereum +RUN apt-get update +RUN apt-get install -y ethereum + +# Install jdk8 +RUN apt-get -y install openjdk-8-jdk + +ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64 +ENV PATH $JAVA_HOME/bin:$PATH + +# Download Web3J + +WORKDIR /root +RUN wget https://github.com/web3j/web3j/releases/download/v3.5.0/web3j-3.5.0.zip + +# Unzip it + +RUN unzip web3j-3.5.0.zip + +# Linking + +RUN echo '#!/bin/bash' >> /bin/web3j +RUN echo '~/web3j-3.5.0/bin/web3j' >> /bin/web3j +RUN chmod +x /bin/web3j + +# Install solidity + +RUN apt-get install -y solc + +# Define default command. +CMD ["bash"] diff --git a/notes.txt b/notes.txt new file mode 100644 index 0000000..28719f1 --- /dev/null +++ b/notes.txt @@ -0,0 +1 @@ +https://medium.com/coinmonks/ethereum-blockchain-hello-world-smart-contract-with-java-9b6ae2961ad1