Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions Dockerfile-15
Original file line number Diff line number Diff line change
Expand Up @@ -110,18 +110,6 @@ RUN apt-get update && \

ENV PGDATA=/var/lib/postgresql/data

####################
# setup-wal-g.yml
####################
FROM base as walg
ARG wal_g_release
WORKDIR /nixpg

RUN nix profile install .#wal-g-3 && \
ln -s /nix/var/nix/profiles/default/bin/wal-g-3 /tmp/wal-g

RUN nix store gc

WORKDIR /
####################
# setup-groonga
Expand Down Expand Up @@ -166,7 +154,6 @@ RUN gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys $GOSU_GPG_KEY &&
FROM gosu as production
RUN id postgres || (echo "postgres user does not exist" && exit 1)
# # Setup extensions
COPY --from=walg /tmp/wal-g /usr/local/bin/
COPY --from=groonga /tmp/groonga-plugins/plugins /usr/lib/groonga/plugins

# # Initialise configs
Expand Down
14 changes: 0 additions & 14 deletions Dockerfile-17
Original file line number Diff line number Diff line change
Expand Up @@ -114,19 +114,6 @@ RUN apt-get update && \

ENV PGDATA=/var/lib/postgresql/data

####################
# setup-wal-g.yml
####################
FROM base as walg
ARG wal_g_release

WORKDIR /nixpg

RUN nix profile install .#wal-g-3 && \
ln -s /nix/var/nix/profiles/default/bin/wal-g-3 /tmp/wal-g

RUN nix store gc

WORKDIR /
####################
# setup-groonga
Expand Down Expand Up @@ -171,7 +158,6 @@ RUN gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys $GOSU_GPG_KEY &&
FROM gosu as production
RUN id postgres || (echo "postgres user does not exist" && exit 1)
# # Setup extensions
COPY --from=walg /tmp/wal-g /usr/local/bin/
COPY --from=groonga /tmp/groonga-plugins/plugins /usr/lib/groonga/plugins

# # Initialise configs
Expand Down
14 changes: 0 additions & 14 deletions Dockerfile-orioledb-17
Original file line number Diff line number Diff line change
Expand Up @@ -114,19 +114,6 @@ RUN apt-get update && \

ENV PGDATA=/var/lib/postgresql/data

####################
# setup-wal-g.yml
####################
FROM base as walg
ARG wal_g_release

WORKDIR /nixpg

RUN nix profile install .#wal-g-3 && \
ln -s /nix/var/nix/profiles/default/bin/wal-g-3 /tmp/wal-g

RUN nix store gc

WORKDIR /
####################
# setup-groonga
Expand Down Expand Up @@ -171,7 +158,6 @@ RUN gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys $GOSU_GPG_KEY &&
FROM gosu as production
RUN id postgres || (echo "postgres user does not exist" && exit 1)
# # Setup extensions
COPY --from=walg /tmp/wal-g /usr/local/bin/
COPY --from=groonga /tmp/groonga-plugins/plugins /usr/lib/groonga/plugins

# # Initialise configs
Expand Down
23 changes: 0 additions & 23 deletions ansible/tasks/setup-wal-g.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,29 +33,6 @@
cmd: sudo -u wal-g bash -c ". /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && nix profile install github:supabase/postgres/{{ git_commit_sha }}#wal-g-2"
become: true

- name: nix collect garbage
ansible.builtin.shell:
cmd: sudo -u ubuntu bash -c ". /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && nix-collect-garbage -d"
become: true

- name: Install wal-g 3 from nix binary cache
ansible.builtin.shell:
cmd: sudo -u wal-g bash -c ". /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && nix profile install github:supabase/postgres/{{ git_commit_sha }}#wal-g-3"
become: true

- name: nix collect garbage
ansible.builtin.shell:
cmd: sudo -u ubuntu bash -c ". /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && nix-collect-garbage -d"
become: true

- name: Create symlink for wal-g-3 from Nix profile to /usr/local/bin
ansible.builtin.file:
dest: '/usr/local/bin/wal-g-v3'
force: true
src: '/home/wal-g/.nix-profile/bin/wal-g-3'
state: 'link'
become: true

- name: Create symlink to make wal-g-v2 the default wal-g
ansible.builtin.file:
dest: '/usr/local/bin/wal-g'
Expand Down
1 change: 0 additions & 1 deletion nix/checks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,6 @@
);
inherit (self'.packages)
wal-g-2
wal-g-3
dbmate-tool
packer
pg_regress
Expand Down
2 changes: 1 addition & 1 deletion nix/packages/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
sync-exts-versions = pkgs.callPackage ./sync-exts-versions.nix { inherit (inputs') nix-editor; };
trigger-nix-build = pkgs.callPackage ./trigger-nix-build.nix { };
update-readme = pkgs.callPackage ./update-readme.nix { };
inherit (pkgs.callPackage ./wal-g.nix { }) wal-g-2 wal-g-3;
inherit (pkgs.callPackage ./wal-g.nix { }) wal-g-2;
inherit (pkgs.cargo-pgrx)
cargo-pgrx_0_11_3
cargo-pgrx_0_12_6
Expand Down
8 changes: 0 additions & 8 deletions nix/packages/wal-g.nix
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,4 @@ in
vendorHash = "sha256-BbQuY6r30AkxlCZjY8JizaOrqEBdv7rIQet9KQwYB/g=";
majorVersion = "2";
};

# wal-g v3.0.5
wal-g-3 = walGCommon {
version = "3.0.5";
sha256 = "sha256-wVr0L2ZXMuEo6tc2ajNzPinVQ8ZVzNOSoaHZ4oFsA+U=";
vendorHash = "sha256-YDLAmRfDl9TgbabXj/1rxVQ052NZDg3IagXVTe5i9dw=";
majorVersion = "3";
};
}