Ready to cook meals ๐Ÿ› and docker

ยท

4 min read

Ready to cook meals ๐Ÿ› (Just heat and eat), this is great idea to get access of one's favorite food anywhere.

What does this pack contains?

Everything ( raw ingredients+spices+salt + sugar :D) which is basically needed to prepare that meal at place where you have just access to heat/fire.

Why do you need everything in a packet when you can arrange things on the fly and cook same thing?

Finding out each ingredient can be hard Or Impossible based on location, it can be costly because of availability and time consuming for sure.

Can you keep heat and eat food in any packets/box?

No, need a container which is durable enough to sustain in high temperature.

Do you need heat to cook this?

Obviously, because we are talking about a type which needs to be heated before eat.

Is that geo location matter in this scenario?

Nope

Can different products have different taste?

no doubt yea, depends on cost and ingredient.

Ok....

Consider this one now..

You must have heard of line If it is working in your Machine/local does not mean that it will work in Testing/Production environment? Or Customer won't test in Your Machine/local.

Yes/No? Let me assume answer as Yes because it is a very common scenario ๐Ÿคฏ.

..Wait But what if there is a way to really ship the Own Machine to testing/Production environment or to Customer directly?

To me both the situations are somewhat relatable..

Similar to ready to cook meal packet IF we can ship our code & dependency together which can be run as application at any runtime environment.

With more explanation.........

I (Mr. A), want to create my own ready to cook Noodles (heat and eat) brand for customers who prefer it with salt ( giving my product a name A's noodle - Salt added ) and separately for those who don't want salt to be added.( giving my product another name A's noodle - without salt )

For this process, first of all I need to finalise the containers/box using which I can give this to customers because random box can not be used to heat the food in it.

For my recipe, I have started adding all ingredient in the selected box and decided to not to add salt ( as one set of my customer don't want),, with this recipe I can build as many as boxes,right?

Yeah, This is called creating an image from container and the image contains everything which was there in the recipe/box/container. Snapshot of a container : converting a container's current state to image called snapshot So, In docker world we ship the images not containers and containers been created when we run given image using docker like customer will heat and eat.

docker run imagename

Also, One image ( recipe) can created any number of containers

Lastly, what is docker?

docker is the platform which helps us to run the application like heat helps to prepare this food to eat.

So..Docker

  • Docker is an open source platform to manage containers. ( there are other options too)
  • Managing infrastructure is easy with docker ( instead of setting up infra dependency at environment level because we send runtime dependency along)
  • building and running application is easy using docker at any OS
  • docker make the process cost effective compared to Virtual Machines because in VM we need dedicated Resources and licences and those are not fully utilised at all the time. one VM has one OS to get another in same VM, you need VM inside VM ( haha not easy right)

Few more questions -

Docker registry is a place where you can store docker images and common one is hub.docker.com, I can related this as github for code

Lifecycle of a docker image : very high level

// pull an image from docker hub or any docker regitry (need login) 
docker pull imagename


// Once image is available in local. you can run it -> this will create a docker container locally 
docker run imagename


// get snanpshot and create 
docker commit imagename_new

// push back to registory 
docker push imagename_new

Customer can set up own kitchen at any location like Virtual machines but cost and efforts are costlier than A's noodles :P

Tried explaining docker basics, would be grateful to receive feedback to improve this post ๐Ÿ™