GithubHelp home page GithubHelp logo

Docker Login Command about docker-mixin HOT 1 CLOSED

getporter avatar getporter commented on June 15, 2024
Docker Login Command

from docker-mixin.

Comments (1)

carolynvs avatar carolynvs commented on June 15, 2024

There are some neat things that I think we can plan for to take advantage of what bundles do. For example, the docker username and password will be passed into the bundle as credentials or parameters, and will be available to us as environment variables.

credentials:
- name: docker-user
  env: DOCKER_USERNAME
- name: docker-password
  env: DOCKER_PASSWORD

install:
  docker: login

The mixin can default the username and password fields to the environment variables DOCKER_USERNAME and DOCKER_PASSWORD so that people don't need to fill them in unless they are doing something different than the default.

Until we have that implemented with defaulting using environment variables, we can pass in credentials to the mixin like this (below). Porter will handle hidding the username and password from the output with ***'s

credentials:
- name: docker-user
  env: DOCKER_USERNAME
- name: docker-password
  env: DOCKER_PASSWORD

install:
  docker:
    login:
      username: "{{ bundle.credentials.docker-user }}"
      password: "{{ bundle.credentials.docker-password }}"

from docker-mixin.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.