Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dersimn/docker-netutils


https://github.com/dersimn/docker-netutils

Last synced: about 13 hours ago
JSON representation

Awesome Lists containing this project

README

        

# Usage

Interactive:

docker run -it --rm --network=MYNETWORK dersimn/netutils

Command:

docker run --rm --network=MYNETWORK dersimn/netutils ping 8.8.8.8

# Build

## build

Without buildx, the variable `TARGETARCH` must be (manually) specified:

docker build \
-t netutils \
-f Dockerfile-ubuntu \
--build-arg TARGETARCH=amd64 \
.

## buildx

docker buildx create --name mybuilder
docker buildx use mybuilder

docker buildx build \
-f Dockerfile-ubuntu \
--platform linux/amd64,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/riscv64,linux/s390x \
-t dersimn/netutils \
-t dersimn/netutils:ubuntu \
--push \
.

docker buildx build \
-f Dockerfile-alpine \
--platform linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/riscv64,linux/s390x \
-t dersimn/netutils:alpine \
--push \
.

## GitHub

Create two secrets:

gh secret set PERSONAL_ACCESS_TOKEN --body '' --app dependabot
gh secret set DOCKERHUB_TOKEN --body ''

`PERSONAL_ACCESS_TOKEN` needs only scope `repo` (Classic Token)