No description
Find a file
2023-03-14 00:07:53 +00:00
bin Ensure output is filenames not hashes 2023-03-14 00:06:24 +00:00
images Initial commit 2023-03-11 18:35:45 +00:00
docker-compose.yml Initial commit 2023-03-11 18:35:45 +00:00
dockerfile Initial commit 2023-03-11 18:35:45 +00:00
README.md Update readme 2023-03-13 14:43:34 +00:00
README_task.md Initial commit 2023-03-11 18:35:45 +00:00

Image Compare

Build

docker build . -t image-compare

Run

docker compose run --rm image-compare

Info

The base dockerfile runs Ubuntu 20.04 and installs dependencies for Perl and Python3.

You can run the docker compose file to mount the images directory and run the Python image-compare script.

Assumptions

  1. The images folder only contains images. Improvements could add checks for file type.
  2. images folder is flexible so I've used docker compose to mount the folder in the container.

Improvements

  1. Consider using Alpine as a base image for the docker image rather than Ubuntu.
  2. Consider using a Perl base image and adding Python3 during build.
  3. Github Workflow to build image to push to Docker Hub, ECR or GCP Container Registry