File tree Expand file tree Collapse file tree 5 files changed +20
-9
lines changed Expand file tree Collapse file tree 5 files changed +20
-9
lines changed Original file line number Diff line number Diff line change 11
11
jobs :
12
12
docker_release :
13
13
runs-on : ubuntu-20.04
14
+ timeout-minutes : 100
15
+
14
16
steps :
15
17
- uses : actions/checkout@v2
16
-
18
+
17
19
- id : settings
18
20
run : |
19
21
apt update --yes && apt install --yes jq
Original file line number Diff line number Diff line change @@ -4,18 +4,19 @@ FROM postgres:$VERSION
4
4
5
5
COPY ansible/ /tmp/ansible/
6
6
7
+ ENV DEBIAN_FRONTEND noninteractive
8
+
7
9
RUN apt update && \
8
- apt install -y ansible && \
10
+ apt install -y ansible sudo git && \
11
+ apt -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade && \
9
12
cd /tmp/ansible && \
10
13
ansible-playbook playbook-docker.yml && \
11
- apt -y update && \
12
- apt -y upgrade && \
13
14
apt -y autoremove && \
14
15
apt -y autoclean && \
15
16
apt install -y default-jdk-headless locales && \
16
17
sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \
17
18
locale-gen && \
18
- rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*
19
+ rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*
19
20
20
21
ENV LANGUAGE en_US.UTF-8
21
22
ENV LANG en_US.UTF-8
Original file line number Diff line number Diff line change 1
1
- name : Install Python3
2
- raw : apt update && apt upgrade -y && apt install python3 -y
2
+ raw : export DEBIAN_FRONTEND=noninteractive ; sh -c "apt update && apt upgrade -y && apt install python3 -y"
3
+ timeout : 300
3
4
4
5
- name : Setup - install common dependencies
5
6
apt :
Original file line number Diff line number Diff line change 38
38
version : " {{ pg_jsonschema_release }}"
39
39
40
40
- name : pg_jsonschema - temporarily transfer ownership to postgres
41
+ become : yes
41
42
file :
42
43
path : ' {{ item }}'
43
44
recurse : yes
44
45
owner : postgres
45
46
group : postgres
46
47
with_items :
47
48
- /tmp/pg_jsonschema
48
- - /usr/lib/postgresql/lib
49
+ - /usr/lib/postgresql/lib # AMI
50
+ - /usr/lib/postgresql/14/lib # Docker Image
51
+ - /usr/share/postgresql/14
49
52
50
53
- name : pg_jsonschema - install
51
54
become : yes
56
59
57
60
- name : pg_jsonschema - return ownership to root
58
61
file :
59
- path : /usr/lib/postgresql/lib
62
+ path : ' {{ item }} '
60
63
recurse : yes
61
64
owner : root
62
65
group : root
66
+ with_items :
67
+ - /usr/lib/postgresql/lib
68
+ - /usr/lib/postgresql/14/lib
69
+ - /usr/share/postgresql/14
Original file line number Diff line number Diff line change 1
1
{
2
- "docker-version" : " 14.1.0.55 " ,
2
+ "docker-version" : " 14.1.0.60 " ,
3
3
"postgres-version" : " 14.1"
4
4
}
5
5
You can’t perform that action at this time.
0 commit comments