Skip to content

Commit

Permalink
Initial commit with dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
corentingiraud committed Jan 15, 2020
0 parents commit 1f68fb7
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
37 changes: 37 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
1 change: 1 addition & 0 deletions notes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://medium.com/coinmonks/ethereum-blockchain-hello-world-smart-contract-with-java-9b6ae2961ad1

0 comments on commit 1f68fb7

Please sign in to comment.