Libra ❤ Docker

katopz
Coinmonks
3 min readJun 22, 2019

--

🐳 Let’s try libra client via docker, I’ll provide local macOS, bare metal and docker hub style! Ready? Go!

Build on MacOS

For local development purpose

Build on Docker Hub

For build only, you will need to pull to your server or mac for run its later)

https://github.com/katopz/libra
  • Sign up and goto create repository page , Fill in libra_client as name and click create (Ignore build setting)
  • Go to build setting and fill your libra repository
  • Fill Dockerfile location
  • Save and Build and feed you cat (129 minute!)
129 minutes!
  • To use it (on mac or server)

Build on Ubuntu

For build and run on bare metal, mostly for quick POC or internal use

Prerequisites

  • Server : Use this DigitalOcean link to get free credit
  • Keep alive ssh session

Pro tips

It take more than 80 minutes to build so you can get cut of from SSH pipe, to ensure it won’t happen you will need to keep it alive both client and server

  • On mac

And add this

And add this

Now ssh to your server

  • Install Docker CE
  • Load libra source
  • Build Docker image (This take some time, go feed your cat)

Run it

  • To run local libra_client Docker image as libra
  • To run remote (from Docker Hub)

Replace katopz/libra_client with your own repos

Pro tips

You can also stdin to docker like this…

Look ma! No hand! :D

Have fun!

TODO

  • Use docker compose
  • Use docker swarm/K8S
  • Use Cloud Run

--

--