File tree Expand file tree Collapse file tree 4 files changed +34
-21
lines changed Expand file tree Collapse file tree 4 files changed +34
-21
lines changed Original file line number Diff line number Diff line change @@ -41,14 +41,26 @@ ARG wal_g_release=2.0.1
41
41
42
42
FROM ubuntu:focal as base
43
43
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 \
45
55
curl \
46
56
gnupg \
47
57
lsb-release \
48
58
software-properties-common \
49
59
wget \
50
60
sudo \
51
- && apt clean
61
+ git \
62
+ && apt clean && \
63
+ rm -rf /var/lib/apt/lists/*
52
64
53
65
54
66
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
102
114
RUN ln -sf /usr/lib/postgresql/share/postgresql/timezonesets /usr/share/postgresql/timezonesets
103
115
104
116
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
-
111
117
RUN apt-get update && \
112
118
apt-get install -y --no-install-recommends \
113
119
build-essential \
Original file line number Diff line number Diff line change @@ -41,14 +41,25 @@ ARG wal_g_release=2.0.1
41
41
42
42
FROM ubuntu:focal as base
43
43
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 \
45
54
curl \
46
55
gnupg \
47
56
lsb-release \
48
57
software-properties-common \
49
58
wget \
50
59
sudo \
51
- && apt clean
60
+ git \
61
+ && apt clean && \
62
+ rm -rf /var/lib/apt/lists/*
52
63
53
64
54
65
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
101
112
102
113
RUN ln -sf /usr/lib/postgresql/share/postgresql/timezonesets /usr/share/postgresql/timezonesets
103
114
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
+
111
116
RUN apt-get update && \
112
117
apt-get install -y --no-install-recommends \
113
118
build-essential \
Original file line number Diff line number Diff line change 43
43
sudo -u postgres bash -c ". /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && nix profile install github:supabase/postgres/{{ git_commit_sha }}#{{postgresql_version}}_src"
44
44
when : stage2_nix
45
45
46
- - name : Install Git for Nix package management
46
+ - name : Remove Git after Nix package installations
47
47
become : yes
48
48
apt :
49
49
name : git
50
- state : present
51
- update_cache : yes
50
+ state : absent
51
+ autoremove : yes
52
+ purge : yes
52
53
when : stage2_nix
53
54
54
55
- name : Set ownership and permissions for /etc/ssl/private
Original file line number Diff line number Diff line change 9
9
, darwin
10
10
, jq
11
11
, rust-bin
12
+ , git
12
13
} :
13
14
let
14
15
rustVersion = "1.80.0" ;
@@ -29,7 +30,7 @@ buildPgrxExtension_0_12_6 rec {
29
30
} ;
30
31
31
32
nativeBuildInputs = [ pkg-config cargo ] ;
32
- buildInputs = [ openssl postgresql ] ++ lib . optionals ( stdenv . isDarwin ) [
33
+ buildInputs = [ openssl postgresql git ] ++ lib . optionals ( stdenv . isDarwin ) [
33
34
darwin . apple_sdk . frameworks . CoreFoundation
34
35
darwin . apple_sdk . frameworks . Security
35
36
darwin . apple_sdk . frameworks . SystemConfiguration
You can’t perform that action at this time.
0 commit comments