Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Next Next commit
update postgres version
  • Loading branch information
johnstcn committed Jun 26, 2024
commit 3c23423b22666127e28de0050fa823b1c0bf9ab2
6 changes: 3 additions & 3 deletions dogfood/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ RUN apt-get update --quiet && apt-get install --yes \
openssl \
packer \
pkg-config \
postgresql-13 \
postgresql-16 \
python3 \
python3-pip \
rsync \
Expand Down Expand Up @@ -209,8 +209,8 @@ RUN apt-get update && \
npm cache clean --force

# Ensure PostgreSQL binaries are in the users $PATH.
RUN update-alternatives --install /usr/local/bin/initdb initdb /usr/lib/postgresql/13/bin/initdb 100 && \
update-alternatives --install /usr/local/bin/postgres postgres /usr/lib/postgresql/13/bin/postgres 100
RUN update-alternatives --install /usr/local/bin/initdb initdb /usr/lib/postgresql/16/bin/initdb 100 && \
update-alternatives --install /usr/local/bin/postgres postgres /usr/lib/postgresql/16/bin/postgres 100

# Create links for injected dependencies
RUN ln --symbolic /var/tmp/coder/coder-cli/coder /usr/local/bin/coder && \
Expand Down