File tree Expand file tree Collapse file tree 4 files changed +48
-18
lines changed Expand file tree Collapse file tree 4 files changed +48
-18
lines changed Original file line number Diff line number Diff line change @@ -41,14 +41,26 @@ ARG wal_g_release=2.0.1
4141
4242FROM 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
5466RUN 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
102114RUN 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-
111117RUN apt-get update && \
112118 apt-get install -y --no-install-recommends \
113119 build-essential \
Original file line number Diff line number Diff line change @@ -41,14 +41,25 @@ ARG wal_g_release=2.0.1
4141
4242FROM 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
5465RUN 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
102113RUN 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+
111116RUN apt-get update && \
112117 apt-get install -y --no-install-recommends \
113118 build-essential \
Original file line number Diff line number Diff line change 33# shell: |
44# sudo -u postgres bash -c ". /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && nix profile install nixpkgs#openjdk11"
55# It was decided to leave pljava disabled at https://github.com/supabase/postgres/pull/690 therefore removing this task
6+
7+ - name : Install Git for Nix package management
8+ become : yes
9+ apt :
10+ name : git
11+ state : present
12+ update_cache : yes
13+ when : stage2_nix
14+
615- name : Install Postgres from nix binary cache
716 become : yes
817 shell : |
3443 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"
3544 when : stage2_nix
3645
46+ - name : Remove Git after Nix package installations
47+ become : yes
48+ apt :
49+ name : git
50+ state : absent
51+ autoremove : yes
52+ purge : yes
53+ when : stage2_nix
54+
3755- name : Set ownership and permissions for /etc/ssl/private
3856 become : yes
3957 file :
Original file line number Diff line number Diff line change 99, darwin
1010, jq
1111, rust-bin
12+ , git
1213} :
1314let
1415 rustVersion = "1.80.0" ;
@@ -29,7 +30,7 @@ buildPgrxExtension_0_12_6 rec {
2930 } ;
3031
3132 nativeBuildInputs = [ pkg-config cargo ] ;
32- buildInputs = [ openssl postgresql ] ++ lib . optionals ( stdenv . isDarwin ) [
33+ buildInputs = [ openssl postgresql git ] ++ lib . optionals ( stdenv . isDarwin ) [
3334 darwin . apple_sdk . frameworks . CoreFoundation
3435 darwin . apple_sdk . frameworks . Security
3536 darwin . apple_sdk . frameworks . SystemConfiguration
You can’t perform that action at this time.
0 commit comments