interledger-deprecated / ilp-kit-docker-compose

Deploy a complete ILP Kit in one command
3 stars 5 forks source link

Get v4 to work #16

Closed michielbdejong closed 6 years ago

jsf-clabot commented 6 years ago

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


root seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.

michielbdejong commented 6 years ago

This is what worked on my server; will recreate it from scratch to double-check that it still works then.

michielbdejong commented 6 years ago

Goes together with https://github.com/interledgerjs/ilp-kit/pull/479

dappelt commented 6 years ago

Can I test this somehow on localhost?

michielbdejong commented 6 years ago

No, you can only test it on a publically addressable server.

dappelt commented 6 years ago

Installation worked and the login page shows up, but login does not work.

https://hive.dennisappelt.com

michielbdejong commented 6 years ago

You should check out the mj-docker-fixes2 branch of ilp-kit on the server and then run:


docker build .
docker tag asdfasdf interledgerjs/ilp-kit #asdfasdf is the image that was built
cd ../ilp-kit-docker-compose
ILP_DOMAIN='ilp-kit.michielbdejong.com' \
    ILP_EMAIL='michiel@unhosted.org' \
    ILP_CURRENCY='USD' \
    ILP_SECRET='wawawa' \
    NODE_ENV='production' \
docker-compose up -d
michielbdejong commented 6 years ago

Try it on https://ilp-kit.michielbdejong.com/ with alice / alice

michielbdejong commented 6 years ago

Tested this with a fresh server (Ubuntu 17.04, 2048Mb memory, 10 USD/month at vultr.com):

apt-get update
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt-get update
apt-get install docker-ce
curl -L https://github.com/docker/compose/releases/download/1.17.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
git clone https://github.com/interledgerjs/ilp-kit
cd ilp-kit/
git checkout mj-docker-fixes2
docker build -t interledgerjs/ilp-kit .
cd ..
git clone https://github.com/interledgerjs/ilp-kit-docker-compose
cd ilp-kit-docker-compose/
git checkout mj-docker-fixes2
vim up.sh
sh up.sh

up.sh contains:

ILP_DOMAIN='ilp-kit2.michielbdejong.com' \
ILP_EMAIL='michiel@unhosted.org' \
ILP_CURRENCY='USD' \
ILP_SECRET='**********' \
AMUNDSEN_USERNAME='baikahphuuToo1eiju4e' \
AMUNDSEN_PASSWORD='************' \
NODE_ENV='production' \
docker-compose up -d