aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/csit_sut_image/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'fdio.infra.ansible/roles/csit_sut_image/tasks')
-rw-r--r--fdio.infra.ansible/roles/csit_sut_image/tasks/main.yaml30
1 files changed, 30 insertions, 0 deletions
diff --git a/fdio.infra.ansible/roles/csit_sut_image/tasks/main.yaml b/fdio.infra.ansible/roles/csit_sut_image/tasks/main.yaml
new file mode 100644
index 0000000000..2affe4b18e
--- /dev/null
+++ b/fdio.infra.ansible/roles/csit_sut_image/tasks/main.yaml
@@ -0,0 +1,30 @@
+---
+# 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-ubuntu2004:local ."
+ args:
+ chdir: "/opt/csit-sut"
+ tags:
+ - csit-sut-image \ No newline at end of file