-
Notifications
You must be signed in to change notification settings - Fork 7
Add ability to pull images from a private registry #22
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
base: master
Are you sure you want to change the base?
Conversation
Limited to a single registry and user.
| /usr/local/bin/kubectl create secret -n {{ app_namespace }} docker-registry | ||
| --docker-server={{ registry_server }} --docker-username={{ registry_username }} | ||
| --docker-password={{ registry_password }} {{ registry_name }} | ||
| ignore_errors: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make this rerunnable, so that it's possible to update the secret?
roles/cloudman-boot/tasks/main.yaml
Outdated
| when: cm_skip_cloudman is not defined or not (cm_skip_cloudman|bool) | ||
|
|
||
| - name: Configure private registries | ||
| include_tasks: private_repos.yml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be better to rename this to private_registries.yml?
| registry_server: "https://index.docker.io/v1/" | ||
| registry_username: "{{ lookup('env', 'REGISTRY_USERNAME') }}" | ||
| registry_password: "{{ lookup('env', 'REGISTRY_PASSWORD') }}" | ||
| registry_name: "{{ lookup('env', 'REGISTRY_NAME') }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| registry_server: "https://index.docker.io/v1/" | |
| registry_username: "{{ lookup('env', 'REGISTRY_USERNAME') }}" | |
| registry_password: "{{ lookup('env', 'REGISTRY_PASSWORD') }}" | |
| registry_name: "{{ lookup('env', 'REGISTRY_NAME') }}" | |
| docker_registry_server: "https://index.docker.io/v1/" | |
| docker_registry_username: "{{ lookup('env', 'REGISTRY_USERNAME') }}" | |
| docker_registry_password: "{{ lookup('env', 'REGISTRY_PASSWORD') }}" | |
| docker_registry_name: "{{ lookup('env', 'REGISTRY_NAME') }}" |
|
ping @afgane |
Co-authored-by: Nuwan Goonasekera <2070605+nuwang@users.noreply.github.com>
24160e8 to
786d73c
Compare
Limited to a single registry and user.