Sample workflow – effortless CD with Docker and K3s
At this point, we are ready to create a very simple CD pipeline using the tools we’ve explored so far. The basic idea is to simulate the operations performed by a developer who needs to update the Flask app we’ve used so far to add a new feature that allows the current date and time to be retrieved.
Our example will consist of performing the following steps:
- Local development: We will edit the previous Python Flask app to expose a new service that returns the current date and time.
- Dockerizing the application and running it locally: We will build the new version of the Docker image locally using the docker build command, as we did previously. Use the Dockerfile section as a reference.
After building the image, we will run it locally using Docker to ensure the containerized application works as expected. Use the Dockerfile section as a reference.
- Publishing the image to a public container registry...