-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |