-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
corentingiraud
committed
Jan 15, 2020
0 parents
commit 1f68fb7
Showing
2 changed files
with
38 additions
and
0 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 |
---|---|---|
@@ -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"] |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
https://medium.com/coinmonks/ethereum-blockchain-hello-world-smart-contract-with-java-9b6ae2961ad1 |