Skip to content

Commit

Permalink
Add volume mapping for Docker credentials (#4791)
Browse files Browse the repository at this point in the history
  • Loading branch information
style95 authored Jan 16, 2020
1 parent a72041e commit 2fee285
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions ansible/group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ invoker:
docker:
become: "{{ invoker_docker_become | default(false) }}"
runcdir: "{{ invoker_runcdir | default('/run/docker/runtime-runc/moby') }}"
volumes: "{{ invoker_docker_volumes | default([]) }}"
loglevel: "{{ invoker_loglevel | default(whisk_loglevel) | default('INFO') }}"
jmxremote:
jvmArgs: "{% if inventory_hostname in groups['invokers'] %}
Expand Down
5 changes: 5 additions & 0 deletions ansible/roles/invoker/tasks/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,11 @@
volumes: "{{ volumes|default('') }},{{ coverage_logs_dir }}/invoker:/coverage"
when: coverage_enabled

- name: set invoker docker volumes
set_fact:
volumes: "{{ volumes|default('') }},{{ invoker.docker.volumes | join(',') }}"
when: invoker.docker.volumes|length > 0

- name: start invoker
docker_container:
userns_mode: "host"
Expand Down

0 comments on commit 2fee285

Please sign in to comment.