Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add dig function #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Apr 8, 2021

  1. feat: Add dig function

    **What**
    - Add a `dig` function that can be used to verify DNS resultion inside a
      cluster. The function is implemented as a small bash script that
      invokes `dig` and then returns the result as JSON or text, depending
      on an ENV configuration. This function can also be used to demonstrate
      how to lightly wrap the CLI tool and provide some logging to stderr
    
    To test
    
    ```sh
    $ faas-cli build --filter dig
    $ docker run --name digtest --rm -p 8080:8080 ghcr.io/openfaas/dig:latest
    $ curl localhost:8080 -d "google.com"
    {"ip_address": "172.217.23.110"}
    $ docker kill digtest
    ```
    
    Signed-off-by: Lucas Roesler <[email protected]>
    LucasRoesler committed Apr 8, 2021
    Configuration menu
    Copy the full SHA
    abf502d View commit details
    Browse the repository at this point in the history
  2. bug: Fix CI docker login to GHCR

    **What**
    - Update the docker login step from CI to use the same login action we
      use in all of the other OpenFaaS CI workflows. This brings consistency
      and avoids issues with changes in the Docker CLI that prevented login
      via stdin
    
    Signed-off-by: Lucas Roesler <[email protected]>
    LucasRoesler committed Apr 8, 2021
    Configuration menu
    Copy the full SHA
    3a0b01e View commit details
    Browse the repository at this point in the history