#Docker 🐳 – After curl, now it’s time to install git, clone a repo and run some stuff 🤷‍♂️

Hi !

Ok, here goes nothing. If you ever, and I mean, EVER NEED GIT in a docker container. This may help.

This lines are a sample on

# custom installation for RPI Grove dependencies
RUN apt-get update 
RUN apt-get install -y gcc
RUN apt-get install -y curl
RUN apt-get install -y git

# download and add a public key, and clone a repo and install with pip
RUN curl https://seeed-studio.github.io/pi_repo/public.key | apt-key add - && \
    git clone https://github.com/Seeed-Studio/grove.py && pip install ./grove.py

I know, you can install all and make it all happens in a single line. I’m not a big fan of single lines, so I’ll keep this one.

Happy coding!


El Bruno

More posts in my blog ElBruno.com.

¿Con ganas de ponerte al día?

En Lemoncode te ofrecemos formación online impartida por profesionales que se baten el cobre en consultoría:

Leave a comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: