Skip to content

Commit

Permalink
Add Makefile commands to run docker container interactively for dev w…
Browse files Browse the repository at this point in the history
…ork (#1045)

* Adding a couple options to Makefile to make dev debugging and work easier.
  • Loading branch information
alexcottner authored Nov 7, 2024
1 parent e63ea03 commit 40158c2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 40158c2

Please sign in to comment.