Introduction to Docker

It seems like all paths leads to the cloud. I want to deploy more dashboards and apps publicly, play around with AI and run bigger computations than what my meager laptop allows.

Deploying containerized development environments for managing workflows seems like a valuable asset to have this climate as it almost instantly gives access to serious computer power and flexibility.

With this I want start my journey with this getting started tutorial with docker and follow up with a practical intro to deployment on kubernetes.

https://github.com/docker/getting-started (Introduction to docker and ecosystem. Node.js application)

https://docs.docker.com/compose/gettingstarted/

Docker – Github.com/getting-started

Docker has really embraced the git workflow method for automated environments. The tutorial is a pretty good introduction to both containers and the eco-system dockerhub.com and https://labs.play-with-docker.com/ all of which are great tools to play and learn!

No real coding in this tutorial, but it uses a node.js example and gives sane tasks and reasons to achieve using the functionality and ecosystem. Easy and fast to follow.

Introducing the different components using docker command line and then orchestrating this process for a development environment using docker-compose while also provide an understanding to why you might consider kubernetes, swarm, nomad or more…. Lot’s of inspiration here! Highly recommended tutorial set. Builds understanding by gradually demonstrating the feature set. It does not hurt to be familiar with git.

Python based Tutorial

Shit-https://docs.docker.com/compose/gettingstarted/

While the first tutorial was an hands down fantastic introduction to the docker space there is no reason to stop there. I initially wanted to learn about deployment of python code as streamlit apps on aws is my goal. Let’s go!

  1. Make some python code
  2. Execute pipreqs (great repo!)

I was not able to get the redis to store data from session to session. This might be because I shut down everything and there was no defined volume to use. Not feeling worried at all as the first intro was excellent. Pretty superficial tutorial compared to the getting-started project.

Comments

This was fun. Powerful functionality making deployments easier. Lot’s to still learn!

I have a much wider understanding of HOW streamlit works after these two tutorials. It’s by no means magic, but it’s super fun to widen the horizon a bit.

https://blog.diogomonica.com//2017/03/27/why-you-shouldnt-use-env-variables-for-secret-data/

Leave a Reply

Your email address will not be published.