Comments (1)
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)
- Update readme for example
- Update example bundle
- Docker CLI Version HOT 1
- Add entry to porter-packages repo
- Docker Build Command
- Potential new security feature
- build should not include a FROM statement
- Docker Run Command
- Update to latest major docker release
- Add docker wait command HOT 2
- Add docker network command HOT 6
- Add docker volume command
- It's hard to copy files into a volume
- Docker Pull Command
- Docker Push Command
- Docker Remove Command
- Update Schema
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-mixin.