Running Sifchain-UI DEX on Akash.
I've noticed Sifchain DEX is running slow sometimes and realized why not to host my own copy of Sifchain-UI since it's open source?
And then it helps its decentralization! :-)
- Dockerfile produces a tiny 47MB image which is super quick to deploy;
- Makefile lets you quickly test and use the image locally!
Whilst localhost
, 127.0.0.0/8
addresses are not restricted (which makes testing easy), browsers deny using HTTPS resources (e.g. Sifchain/Keplr rpcUrl
addresses) from a non-HTTP's page.
This container generates a self-signed TLS certificate, so you can access your deployment over a nodePort mapped to 443/tcp in the container. To find it use akash provider lease-status ...
command.
It will work, but you will have to accept a self-signed certificate.
Or you can terminate TLS elsewhere, e.g. https://www.youtube.com/watch?v=HDNPABvkmG0
Install make
and docker.
To use my image just deploy the deploy.yaml
file on Akash.
If you want to build your own image then follow these steps:
Setup:
- Register an account at the Docker Hub https://hub.docker.com
- Run
docker login
to login with your Docker Hub account - Set
ns
variable inMakefile
to your Docker Hub account
Build:
- Run
make
to build & push your image to your Docker Hub - Now you can deploy
deploy.yaml
on Akash!
make
automatically setsimage
to yours indeploy.yaml
make - runs build push update-sdl clean stages
make build - builds the docker image
make test - runs the docker image locally, access Sifchain over http://127.0.0.1:8080
make push - pushes the docker image to https://hub.docker.com
make update-sdl - update `image` in `deploy.yaml` file
make clean - removes old images (keeps last two)