Kalolo API from scratch with Docker (inside hashicorp/bionic64)

adriens - Aug 7 '20 - - Dev Community

See linkedIn article for more details.

mkdir kalolo-box
cd kalolo-box
vagrant init hashicorp/bionic64
vagrant up
vagrant ssh
clear

sudo apt-get update
sudo apt-get remove docker docker-engine docker.io
sudo apt install docker.io
sudo systemctl start docker
sudo systemctl enable docker
docker --version

# run the kalolo-api locally
sudo docker pull rastadidi/kalolo-api:latest
sudo docker images
sudo docker run -d -p 8080:8080 rastadidi/kalolo-api:latest
sudo docker ps


sudo apt-get install jq boxes toilet cowsay fortune -y


echo "We are ready" | boxes -d dog

alias kalolo='clear && echo $(curl -sS http://localhost:8080/expressions/tag/bonjour/random | jq -r '.texte') | boxes -d boy | toilet --gay -f term'
kalolo
Enter fullscreen mode Exit fullscreen mode
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .