riff is for functions

riff is for functions

  • Docs
  • Blog
  • GitHub
  • Slack

›Credential

Version (v0.4.x)

  • v0.6.x (snapshot)
  • v0.5.x
  • v0.3.x

Getting Started

  • Pick your environment
  • GKE
  • Minikube
  • Docker for Mac
  • Docker for Windows

Runtimes

  • Core
  • Knative

Function Invokers

  • Java
  • Node.js
  • Command

CLI Reference

  • riff
  • riff doctor
  • riff completion
  • Credential

    • riff credential
    • riff credential apply
    • riff credential delete
    • riff credential list

    Build

    • riff function
    • riff function create
    • riff function delete
    • riff function list
    • riff function status
    • riff function tail
    • riff application
    • riff application create
    • riff application delete
    • riff application list
    • riff application status
    • riff application tail
    • riff container
    • riff container create
    • riff container delete
    • riff container list
    • riff container status

    Core Runtime

    • riff core
    • riff core deployer
    • riff core deployer create
    • riff core deployer delete
    • riff core deployer list
    • riff core deployer status
    • riff core deployer tail

    Knative Runtime

    • riff knative
    • riff knative adapter
    • riff knative adapter create
    • riff knative adapter delete
    • riff knative adapter list
    • riff knative adapter status
    • riff knative deployer
    • riff knative deployer create
    • riff knative deployer delete
    • riff knative deployer list
    • riff knative deployer status
    • riff knative deployer tail
Edit

riff credential apply

riff credential apply

create or update credentials for a container registry

Synopsis

Create or update credentials for a container registry.

In addition to creating a credential, the default image prefix can be set by specifying --set-default-image-prefix. The prefix is applied to builds in order to skip needing to specify a fully qualified image repository.

The default image prefix depends on the repository and take the form:

  • Docker Hub: docker.io/<docker-user-name>
  • GCR: gcr.io/<google-cloud-project-id>

Other image prefix values may be defined by specifying --default-image-prefix.

While multiple credentials can be created in a single namespace, only a single default image prefix can be set.

riff credential apply <name> [flags]

Examples

riff credential apply my-docker-hub-creds --docker-hub my-docker-id
riff credential apply my-docker-hub-creds --docker-hub my-docker-id --set-default-image-prefix
riff credential apply my-gcr-creds --gcr path/to/token.json
riff credential apply my-gcr-creds --gcr path/to/token.json --set-default-image-prefix
riff credential apply my-registry-creds --registry http://registry.example.com --registry-user my-username
riff credential apply my-registry-creds --registry http://registry.example.com --registry-user my-username --default-image-prefix registry.example.com/my-username

Options

      --default-image-prefix repository   default repository prefix for built images, implies --set-default-image-prefix
      --docker-hub username               Docker Hub username, the password must be provided via stdin
      --dry-run                           print kubernetes resources to stdout rather than apply them to the cluster, messages normally on stdout will be sent to stderr
      --gcr file                          path to Google Container Registry service account token file
  -h, --help                              help for apply
  -n, --namespace name                    kubernetes namespace (defaulted from kube config)
      --registry url                      registry url
      --registry-user username            username for a registry, the password must be provided via stdin
      --set-default-image-prefix          use this registry as the default for built images

Options inherited from parent commands

      --config file        config file (default is $HOME/.riff.yaml)
      --kube-config file   kubectl config file (default is $HOME/.kube/config)
      --no-color           disable color output in terminals

SEE ALSO

  • riff credential - credentials for container registries
← riff credentialriff credential delete →
  • riff credential apply
    • Synopsis
    • Examples
    • Options
    • Options inherited from parent commands
    • SEE ALSO
riff is for functions
Docs
Versions
Community
BlogGitHubSlackKnativeTwitter
More
Privacy PolicyTerms of UseCode of Conduct
Deployed by Netlify
Copyright © 2021 VMware, Inc