diff --git a/Makefile b/Makefile index 6889295ba..1dc16e8c3 100644 --- a/Makefile +++ b/Makefile @@ -96,3 +96,19 @@ dummy-statsd: .SUFFIXES: # Delete the default suffixes .PHONY: all dummy-statsd test generate vendor integration-test check-no-crypto11-in-signers test-in-docker + +# build the docker image, and run it locally with our source code mounted under /app/src/autograph +# run as root to allow for changes, package installs, etc +build-and-run-interactive: + docker build -t mozilla/autograph:latest . + docker run --rm -it --user 0:0 \ + -v "./:/app/src/autograph" \ + mozilla/autograph:latest /bin/bash + +# pull the docker image, and run it locally with our source code mounted under /app/src/autograph +# run as root to allow for changes, package installs, etc +pull-and-run-interactive: + docker pull mozilla/autograph:latest + docker run --rm -it --user 0:0 \ + -v "./:/app/src/autograph" \ + mozilla/autograph:latest /bin/bash