Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Dockerfile #217

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This Dockerfile builds from source code so that it aids with Coinbase Rosetta compliance: https://www.rosetta-api.org/docs/node_deployment.html
# The next step in Rosetta compliance is building an API adapter that meets the tests issued by their CLI tool. After that, it is possible to submit our Dockerfile to Coinbase as requested.

# Changed from debian 10 to Ubuntu because debian 10 no longer ships openjdk-8-jre-headless due to a security issue.
FROM ubuntu:20.04

# INSTALL DEPENDENCIES
RUN apt update ; \
apt install -y ca-certificates gnupg ; \
echo "deb https://dl.bintray.com/sbt/debian /" | tee -a /etc/apt/sources.list.d/sbt.list ; \
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823 ; \
apt update ; \
apt upgrade -y ; \
apt install -y openjdk-8-jre-headless sbt git

# Compile VSYS
RUN git clone https://github.com/virtualeconomy/v-systems ; \
cd v-systems ; \
sbt packageAll


# known-good run command: java -Xmx4096m -Dscala.concurrent.context.maxExtraThreads=1024 -jar vsys-all-0.3.1.jar ../vsys-mainnet.conf


# Actually Run Vsys

CMD java -Xmx4096m -Dscala.concurrent.context.maxExtraThreads=1024 -jar v-systems/target/vsys-all-*.jar v-systems/vsys-mainnet.conf