aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup/ansible/roles/csit_sut_image/tasks/main.yaml
blob: 7b41be8a64fb23275f13daa44c3f5432442b60ab (plain)
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
---
# file: roles/csit_sut_image/tasks/main.yaml

- name: Create a directory if it does not exist
  file:
    path: "/opt/csit-sut/"
    state: "directory"
    mode: 0755
  tags: csit-sut-image

- name: Copy Build Items
  copy:
    src: "{{ item }}"
    dest: "/opt/csit-sut/"
    owner: "root"
    group: "root"
    mode: 0755
  with_items:
    - Dockerfile
    - supervisord.conf
  tags: csit-sut-image

- name: Build CSIT SUT Docker Image
  shell: "docker build -t csit_sut-ubuntu1804:local ."
  args:
    chdir: "/opt/csit-sut"
  tags: csit-sut-image