summaryrefslogtreecommitdiff
path: root/roles/apps/nextcloud/tasks/custom-image.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/apps/nextcloud/tasks/custom-image.yml')
-rw-r--r--roles/apps/nextcloud/tasks/custom-image.yml31
1 files changed, 0 insertions, 31 deletions
diff --git a/roles/apps/nextcloud/tasks/custom-image.yml b/roles/apps/nextcloud/tasks/custom-image.yml
deleted file mode 100644
index 3d9e31d1..00000000
--- a/roles/apps/nextcloud/tasks/custom-image.yml
+++ /dev/null
@@ -1,31 +0,0 @@
----
-- 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) }}
-
- RUN set -x \
- && addgroup --gid {{ nextcloud_app_gid }} nc-app \
- && adduser --uid {{ nextcloud_app_uid }} --gid {{ nextcloud_app_gid }} --system --no-create-home --home /var/www/html --disabled-login --disabled-password nc-app
- {% if 'custom_image' in item.value %}
-
- {{ item.value.custom_image.dockerfile }}
- {% endif %}
- dest: "{{ nextcloud_base_path }}/{{ item.key }}/build/Dockerfile"
- register: nextcloud_custom_image_docker
-
-- name: build custom image
- docker_image:
- name: "nextcloud/{{ item.key }}:{{ item.value.version }}"
- state: present
- force_source: "{{ nextcloud_custom_image_docker is changed }}"
- source: build
- build:
- path: "{{ nextcloud_base_path }}/{{ item.key }}/build"
- network: host
- pull: yes