rog-golang-buddies / golang-template-repository

Kickstarter repository for a golang service
Apache License 2.0
17 stars 7 forks source link

feat(makefile): adding `docker-build` and `docker-run` targets to the makefile #71

Open atallison opened 2 years ago

atallison commented 2 years ago

Description

Adding three new make file targets, make docker-build, make docker-run and make docker for convenience in building and running the docker image of the project.

Fixes #49

Current status

Semantic Versioning

Type of change

How Has This Been Tested?

Manual

  1. Navigate to the project directory in the terminal
  2. Enter make docker-build
  3. Verify that a new image is created in docker desktop
  4. Change the REGISTRY_IMAGE_NAME variable in the make file
  5. Re-run make docker-build
  6. Verify that the new image is tagged with the updated variable
  7. Enter make docker-run
  8. Ensure that the image is used in a container that runs
  9. Enter make docker
  10. Ensure that the docker image is made and a container is run with the image

Checklist: