-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to postgres client 16 in container
- Loading branch information
1 parent
d59264c
commit faa623d
Showing
8 changed files
with
75 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,20 +5,40 @@ ENV NODE_ENV development | |
ENV RAILS_ENV development | ||
ENV RACK_ENV development | ||
ENV ROOT_URL 0.0.0.0 | ||
ENV DATABASE_HOST db | ||
ENV DATABASE_PORT 5432 | ||
ENV DATABASE_USER kudo_user | ||
ENV DATABASE_PASSWORD kudos | ||
ENV DATABASE_NAME kudo-o-matic_development | ||
ENV DATABASE_URL postgres://kudo_user:kudos@db:5432 | ||
ENV TEST_DATABASE_URL postgres://kudo_user:kudos@db-test:5432 | ||
ENV DATABASE_CLEANER_ALLOW_REMOTE_DATABASE_URL true | ||
ENV REDIS_URL redis://redis:6379/0 | ||
ENV FRONTEND_ROOT_URL http://localhost:9090 | ||
ENV MAIL_USERNAME [email protected] | ||
|
||
# Install Node.js, npm, Yarn, Python, and build-essential | ||
# Install Node.js, yarn, Python, and build-essential | ||
RUN apt-get update -qq && \ | ||
apt-get install -y curl && \ | ||
curl -sL https://deb.nodesource.com/setup_20.x | bash - && \ | ||
apt-get install -y nodejs && \ | ||
apt-get install -y python build-essential | ||
curl -sL https://deb.nodesource.com/setup_20.x | bash - | ||
RUN apt-get install -y \ | ||
gnupg \ | ||
lsb-release \ | ||
nodejs \ | ||
yarnpkg \ | ||
python \ | ||
build-essential | ||
|
||
# Add the PostgreSQL repository GPG key | ||
RUN curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor -o /usr/share/keyrings/postgresql-archive-keyring.gpg | ||
|
||
# Add the PostgreSQL APT repository | ||
RUN echo "deb [signed-by=/usr/share/keyrings/postgresql-archive-keyring.gpg] http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list | ||
|
||
# Install PostgreSQL client version 16 | ||
RUN apt-get update && apt-get install -y postgresql-client-16 | ||
|
||
# Clean up | ||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
RUN groupadd -r app && useradd --no-log-init -r -m -g app app | ||
|
||
|