-
-
Notifications
You must be signed in to change notification settings - Fork 312
feat: update postgres to 18 Debian-based and release *-pg18 Docker builds
#3035
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
Open
cyyynthia
wants to merge
5
commits into
main
Choose a base branch
from
cynthia/update-postgres
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
b490bec
feat: update all postgres image references to 16.8-alpine3.21
cyyynthia a246265
fix: use debian-based PostgreSQL images instead of Alpine
cyyynthia f47f9ae
fix: properly adjust Dockerfile
cyyynthia df2fe08
feat: postgresql 18
cyyynthia fabd161
build: introduce -pg18 docker builds to not cause breaking changes yet
cyyynthia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| # TODO: remove for Tolgee 4 release | ||
| FROM postgres:13.21-alpine3.22 | ||
|
|
||
| ENTRYPOINT [] | ||
|
|
||
| RUN apk --no-cache add openjdk21 | ||
| RUN apk --no-cache add libxml2 | ||
|
|
||
| ############# | ||
| ### Tolgee # | ||
| ############# | ||
|
|
||
| # Expose application port | ||
| EXPOSE 8080 | ||
|
|
||
| # Define persistent volume for data storage | ||
| VOLUME /data | ||
|
|
||
| # Environment variables for configuration | ||
| ENV HEALTHCHECK_PORT=8080 \ | ||
| spring_profiles_active=docker | ||
|
|
||
| # Copy necessary application files | ||
| COPY BOOT-INF/lib /app/lib | ||
| COPY META-INF /app/META-INF | ||
| COPY BOOT-INF/classes /app | ||
| COPY --chmod=755 cmd.sh /app | ||
|
|
||
| ################# | ||
| ### Let's go ## | ||
| ################# | ||
|
|
||
| # Define the startup command | ||
| ENTRYPOINT ["/app/cmd.sh"] | ||
|
|
||
|
|
||
| # Health check to ensure the app is up and running | ||
| HEALTHCHECK --interval=10s --timeout=3s --retries=20 \ | ||
| CMD wget --spider -q "http://127.0.0.1:$HEALTHCHECK_PORT/actuator/health" || exit 1 |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| services: | ||
| db: | ||
| image: postgres:11 | ||
| image: postgres:18.0 | ||
| environment: | ||
| - POSTGRES_PASSWORD=postgres | ||
| app: | ||
|
|
||
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.