diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..245fd77 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM golang:alpine + +WORKDIR /app + +COPY . /app + +RUN go build -o kube-rbac-extractor + +ENTRYPOINT [ "./kube-rbac-extractor" ] \ No newline at end of file diff --git a/README.md b/README.md index 06c5e3c..6b60731 100644 --- a/README.md +++ b/README.md @@ -104,6 +104,17 @@ rules: - watch ``` +## Using the Docker image + +You can build and run the docker image as follows: + +```shell +docker build . -t kube-rbac-extractor + +helm template dev oci://registry-1.docker.io/bitnamicharts/postgresql | + docker run --rm kube-rbac-extractor --access read --namespace dev --name developer-access +``` + ## License Merger is an open-source software licensed under the MIT license. For more details, check the [LICENSE](LICENSE) file.