From 641fe5dca04e53b97ce5df5a560c7d5eee2033e2 Mon Sep 17 00:00:00 2001 From: Igor Artamonov Date: Thu, 22 Aug 2019 23:25:38 -0400 Subject: [PATCH] solution: zip distribution --- build.gradle | 8 ++++++++ docs/05-start.adoc | 17 ++++++++++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 14bac3a0..2963aa7c 100644 --- a/build.gradle +++ b/build.gradle @@ -142,4 +142,12 @@ jib { args = [] ports = ['8090'] } +} + +jar { + enabled=true +} + +afterEvaluate { + distZip.dependsOn(jar) } \ No newline at end of file diff --git a/docs/05-start.adoc b/docs/05-start.adoc index 32367927..aadfd256 100644 --- a/docs/05-start.adoc +++ b/docs/05-start.adoc @@ -1,3 +1,18 @@ == Launch a server -TBD \ No newline at end of file +=== Docker + +Prepare configuration files `dshackle.yaml` and `upstreams.yaml` in the current directory, then launch docker as: + +[source,bash] +---- +docker run -p 9001:9001 -v $(pwd):/config -w /config emeraldpay/dshackle +---- + +=== Install & Run manually + +1. Download latest release from https://github.com/emeraldpay/dshackle/releases +2. Unpack `unzip dshackle-0.3.zip` +3. Copy to `/opt/dshackle` +4. Setup configuration in `/etc/dshackle` +5. Run as `cp /etc/dshackle && /opt/dshackle/bin/dshackle` \ No newline at end of file