With my Data Analytics learnings continuing at a fair pace I need to be able to turn data into something nice (e.g., plot it onto charts). I could use Power BI or R , but as regular readers may know my preference for most tasks is Python. Python offers several libraries that are great for … Continue reading Jupyter Notebook via Docker on Raspberry Pi (Python, Raspberry Pi)
Category: Docker / Kubernetes
Docker – Environment Variables, Env File & A Little Django (Python)
Why Use Environment Variables? Whilst building my Django project I replaced several of the values within settings.py with an option for them to be read from environment variables, rather than storing them in plain text within settings.py. This change allows me to store the settings.py file within a source control repository (e.g. Git) and also … Continue reading Docker – Environment Variables, Env File & A Little Django (Python)
Modifying A Pod To Use A Persistent Volume / Persistent Volume Claim (Kubernetes)
This blog post is going to look at connecting a Kubernetes pod to a Persistent Volume (PV) using a Persistent Volume Claim (PVC). I have split my blog posts whilst I have been learning about Kubernetes as they were getting quite lengthy and each is worthy of its own space. If you need to learn … Continue reading Modifying A Pod To Use A Persistent Volume / Persistent Volume Claim (Kubernetes)
Persistent Volume Claims (Kubernetes)
With the Kuberenetes Persistent Volume (PV) created, it is time to look at the Persistent Volume Claim (PVC). Originally this blog post was going to be part of the PV post but that grew to nearly 1000 words before I got to this subject, so I split it into its own post. If you skipped … Continue reading Persistent Volume Claims (Kubernetes)
Kubernetes and Volumes: Introducing Host and Persistent Volumes (Kubernetes)
In my last blog post I discussed how to create a pod in Kubernetes, in this blog post I hope to take this a little further by adding a volume. There are probably many reasons why you want to add a volume into Kubernetes, such as persisting data from one container within the pod into … Continue reading Kubernetes and Volumes: Introducing Host and Persistent Volumes (Kubernetes)
Creating A Pod (Kubernetes)
I am currently learning more about Kubernetes and need to make sure I'm understanding it correctly, which means more blogs about Kubernetes in my wording for future reference. MiniKube I'm running Kubernetes locally on my MacBook via MiniKube. If you want to follow along please install MiniKube as per the notes at: https://kubernetes.io/docs/tasks/tools/install-minikube/ Once installed … Continue reading Creating A Pod (Kubernetes)
Ansible In A Docker Container
Ansible and Docker are both powerful tools and in this blog post I aim to look at putting Ansible in a Docker container. I'm building on the work of https://hub.docker.com/r/philm/ansible_playbook/dockerfile/ Run Commands: docker run -v "$(pwd)":/ansible/playbooks geektechstuff/ansible_container:latest playbook.yml -i inventory_file_name Switches: -v maps a directory into the container (in above example current working directory of … Continue reading Ansible In A Docker Container
Sharing A Docker Image
I have created a Docker image and now it is time to share a Docker image. I created an image called geektechstuff_flask_hello and it is this image that I am going to share. Log into Docker Via a terminal or command prompt enter: docker login Docker may ask for your Docker account credentials at this point. … Continue reading Sharing A Docker Image
Creating A Docker Image
As regular readers may have noticed I use Python a lot and at times I have messed up using differing Python/module versions that did not work too well and then had to spend time unravelling my mess. There are (at least) two solutions to this type of problem: Python Virtual Environment Containerisation Containerisation and Docker … Continue reading Creating A Docker Image
You must be logged in to post a comment.