blob: a3ded7466c7bd67162fa3bc5df93a423b2ce350a (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
---
# file: tasks/base.yaml
- name: "Create a Directory For Docker Images"
ansible.builtin.file:
path: "/opt/csit-docker-images/"
state: "directory"
mode: 0755
tags:
- docker-base
- name: "Copy Build Items"
ansible.builtin.copy:
src: "{{ item }}"
dest: "/opt/csit-docker-images/{{ item }}"
owner: "root"
group: "root"
mode: 0755
with_items:
- "base/"
- "csit-sut/"
tags:
- docker-base
- name: "Build CSIT Base Docker Image"
ansible.builtin.shell: "docker build --build-arg BASE_IMAGE=ubuntu:24.04 -t base-ubuntu2404:local ."
args:
chdir: "/opt/csit-docker-images/base"
async: 3000
poll: 0
register: "docker_built"
tags:
- docker-base
- name: "Check if CSIT Base Docker Image is Built"
async_status:
jid: "{{ docker_built.ansible_job_id }}"
register: "docker_built"
until: "docker_built.finished"
delay: 10
retries: 300
tags:
- docker-base
- name: "Build CSIT OLD Docker Image"
ansible.builtin.shell: "docker build -t csit_sut-ubuntu2404:local ."
args:
chdir: "/opt/csit-docker-images/csit-sut"
async: 3000
poll: 0
register: "docker_built"
tags:
- docker-base
- name: "Check if CSIT OLD Docker Image is Built"
async_status:
jid: "{{ docker_built.ansible_job_id }}"
register: "docker_built"
until: "docker_built.finished"
delay: 10
retries: 300
tags:
- docker-base
|