Create a simple python application containerized with a dockerfile. The goal here is to both demonstrate running your application within a docker container (using docker run terminal commands) but to also build a docker image in your CI/CD pipeline which will be pushed to Docker Hub or other container management service.
A simple shopping list application built with Flask and containerized with Docker.
- Add items to shopping list
- Remove items from shopping list
- Docker containerization
- CI/CD pipeline with GitHub Actions
- Automated deployment to Docker Hub
- Clone the repository:
git clone https://github.com/nogibjj/Wenye_Li_Mini_Project_12.git
cd Wenye_Li_Mini_Project_12
- Create and activate virtual environment:
python -m venv venv
source venv/bin/activate
- Install dependencies:
make install
- Run locally:
make run-local
- Build image:
make build
- Run container:
make run
- View running containers:
make container_show
- Stop container:
make stop
- Clean up:
make clean
This project uses GitHub Actions for CI/CD:
- Automatically builds Docker image
- Pushes to Docker Hub
- Triggered on push to main branch
The Docker image is available at:
docker pull wenyeli/shopping-list-app:latest
make install
: Install dependenciesmake run-local
: Run app locallymake build
: Build Docker imagemake run
: Run Docker containermake stop
: Stop containermake clean
: Clean up resourcesmake check-port
: Check port usage