Skip to content

Commit

Permalink
Update various things (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
troydai authored Dec 28, 2023
1 parent e38c8e7 commit b4cdde4
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
FROM fullstorydev/grpcurl AS grpcurl
FROM alpine

RUN apk add curl
RUN apk add --no-cache curl jq bind-tools tcpdump

COPY --from=grpcurl /bin/grpcurl /bin/grpcurl


ENTRYPOINT ["tail", "-f", "/dev/null"]

15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.PHONY: image

IMAGE_NAME = "ghcr.io/troydai/toolbox"

image:
@ echo "Building image $(IMAGE_NAME):latest"
@ docker build -q -t $(IMAGE_NAME):latest .

sanity-test: image
@ echo "Running sanity test locally"
@ docker run --rm --entrypoint '' $(IMAGE_NAME):latest curl -s www.httpbin.org/ip

sanity-sh: image
@ echo "Running a sh shell in the container for testing locally"
@ docker run --rm -it --entrypoint 'sh' $(IMAGE_NAME):latest
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Toolbox image

A docker image that comes with tools I need for debugging purposes.

## Installed tools

- grpcurl
- curl
- jq
- dig
- tcpdump

## Make targets

- image: build the docker image locally
- sanity-test: run a sanity test against the local build image
- sanity-sh: run a shell in the locally built image interactively

0 comments on commit b4cdde4

Please sign in to comment.