Skip to content

Commit 5af2b29

Browse files
authored
Merge branch 'develop' into sam/oriole17
2 parents a822ca4 + 94a17cb commit 5af2b29

File tree

3 files changed

+29
-18
lines changed

3 files changed

+29
-18
lines changed

Dockerfile-15

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,26 @@ ARG wal_g_release=2.0.1
4141

4242
FROM ubuntu:focal as base
4343

44-
RUN apt update -y && apt install -y \
44+
45+
ENV DEBIAN_FRONTEND=noninteractive \
46+
DEBCONF_NONINTERACTIVE_SEEN=true \
47+
TZ=Etc/UTC
48+
49+
# Pre-configure tzdata before any installations
50+
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
51+
echo $TZ > /etc/timezone && \
52+
apt-get update && \
53+
apt-get install -y --no-install-recommends tzdata && \
54+
apt-get install -y \
4555
curl \
4656
gnupg \
4757
lsb-release \
4858
software-properties-common \
4959
wget \
5060
sudo \
51-
&& apt clean
61+
git \
62+
&& apt clean && \
63+
rm -rf /var/lib/apt/lists/*
5264

5365

5466
RUN adduser --system --home /var/lib/postgresql --no-create-home --shell /bin/bash --group --gecos "PostgreSQL administrator" postgres
@@ -102,12 +114,6 @@ RUN chown -R postgres:postgres /usr/lib/postgresql
102114
RUN ln -sf /usr/lib/postgresql/share/postgresql/timezonesets /usr/share/postgresql/timezonesets
103115

104116

105-
RUN apt-get update && \
106-
apt-get install -y --no-install-recommends tzdata
107-
108-
RUN ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime && \
109-
dpkg-reconfigure --frontend noninteractive tzdata
110-
111117
RUN apt-get update && \
112118
apt-get install -y --no-install-recommends \
113119
build-essential \

Dockerfile-16

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,25 @@ ARG wal_g_release=2.0.1
4141

4242
FROM ubuntu:focal as base
4343

44-
RUN apt update -y && apt install -y \
44+
ENV DEBIAN_FRONTEND=noninteractive \
45+
DEBCONF_NONINTERACTIVE_SEEN=true \
46+
TZ=Etc/UTC
47+
48+
# Pre-configure tzdata before any installations
49+
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
50+
echo $TZ > /etc/timezone && \
51+
apt-get update && \
52+
apt-get install -y --no-install-recommends tzdata && \
53+
apt-get install -y \
4554
curl \
4655
gnupg \
4756
lsb-release \
4857
software-properties-common \
4958
wget \
5059
sudo \
51-
&& apt clean
60+
git \
61+
&& apt clean && \
62+
rm -rf /var/lib/apt/lists/*
5263

5364

5465
RUN adduser --system --home /var/lib/postgresql --no-create-home --shell /bin/bash --group --gecos "PostgreSQL administrator" postgres
@@ -101,13 +112,7 @@ RUN chown -R postgres:postgres /usr/lib/postgresql
101112

102113
RUN ln -sf /usr/lib/postgresql/share/postgresql/timezonesets /usr/share/postgresql/timezonesets
103114

104-
105-
RUN apt-get update && \
106-
apt-get install -y --no-install-recommends tzdata
107-
108-
RUN ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime && \
109-
dpkg-reconfigure --frontend noninteractive tzdata
110-
115+
111116
RUN apt-get update && \
112117
apt-get install -y --no-install-recommends \
113118
build-essential \

ansible/tasks/internal/install-salt.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@
4444
apt:
4545
name: salt-minion
4646
state: present
47-
update_cache: yes
47+
update_cache: yes

0 commit comments

Comments
 (0)