Tag: rpi

¿Cómo exponer un servicio web local desde un RPi?

¿Cómo exponer un servicio web local desde un RPi?

Para variar, hace muuucho tiempo que no escribía por acá ???? Hoy vengo a hablar de un par de servicios que permiten disponibilizar un servicio web alojado en tu localhost (en mi caso RaspberryPi), a internet :D. Primero que todo, ¿Cuál era mi necesidad? Simple, 

SSH + screen + RPi

SSH + screen + RPi

Hello, long time no see! Recently I had a situation in which I needed to have two processes running on a docker container, and this docker container was running on my RPi. So… I solved my situation using screen. What is screen? It is an 

How to run docker and docker-compose on Raspbian

How to run docker and docker-compose on Raspbian

Since taganga v2 now uses multiple machines, I want to try if a RPi can help me save a few bucks monthly. So here are the steps to install docker and docker-compose into a RPi with Raspian 9 (cat /etc/os-release).

Installing Docker

So here we go…

curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh

After a looong time hopefully you will have installed docker, now let’s do some last tweaks.

Create a docker group

sudo groupadd docker

Add your user to the docker group you just created

sudo gpasswd -a pi docker

And that’s it, you just have to restart and we’re done. To try it you should be able to run

docker run hello-world

Installing docker-compose

Update your packages

sudo apt-get update

Install almighty python and pip

sudo apt-get install -y python python-pip

And lastly…

sudo pip install docker-compose

And that’s it, you should now be able to run

docker-compose build in your project.

Have fun!

Main sources: