Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin to postgresql 12.13 #430

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
14 changes: 11 additions & 3 deletions milmove-app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,23 @@ RUN set -ex && cd ~ \
# This is so we can pin to specific Node versions
# See https://github.com/nodesource/distributions/issues/33#issuecomment-337767815
# See https://deb.nodesource.com/node_18.x/pool/main/n/nodejs/ for list of packages
&& curl -o nodejs.deb https://deb.nodesource.com/node_18.x/pool/main/n/nodejs/nodejs_18.13.0-deb-1nodesource1_amd64.deb \
&& curl -sSLf -o nodejs.deb https://deb.nodesource.com/node_18.x/pool/main/n/nodejs/nodejs_18.13.0-deb-1nodesource1_amd64.deb \
&& dpkg -i ./nodejs.deb \
&& rm nodejs.deb \
&& : Add Yarn \
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& curl -sSLf https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& : Install postgresql repo \
&& sh -c 'echo "deb http://apt-archive.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg-archive main" > /etc/apt/sources.list.d/pgdg.list' \
&& curl -sSLf -o - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
&& apt-get -qq update \
&& : Install pinned postgresql packages \
&& apt-get -y install --no-install-recommends \
postgresql-client-12=12.13-1.pgdg20.04+1 \
libpq5=12.15-1.pgdg20.04+1 \
libpq-dev=12.15-1.pgdg20.04+1 \
&& : Install apt packages \
&& apt-get -qq -y install --no-install-recommends nodejs yarn entr postgresql-client \
&& apt-get -qq -y install --no-install-recommends nodejs yarn entr \
&& : Cleanup \
&& apt-get clean \
&& rm -vrf /var/lib/apt/lists/*
Expand Down