blob: 23454c80e15e6450bf7a8f4efe3dc7588c2c5c81 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
---
- name: create build directory for custom image
file:
path: "{{ nextcloud_base_path }}/{{ item.key }}/build"
state: directory
- name: generate Dockerfile for custom image
copy:
content: |
FROM {{ item.value.custom_image.from | default('nextcloud:' + item.value.version) }}
{{ item.value.custom_image.dockerfile }}
dest: "{{ nextcloud_base_path }}/{{ item.key }}/build/Dockerfile"
- name: install python-docker
apt:
name: python-docker
state: present
- name: build custom image
docker_image:
name: "nextcloud/{{ item.key }}:{{ item.value.version }}"
state: present
source: build
build:
path: "{{ nextcloud_base_path }}/{{ item.key }}/build"
network: host
pull: yes
|