forked from fosrl/pangolin
-
Notifications
You must be signed in to change notification settings - Fork 1
Test dhi #551
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
Lokowitz
wants to merge
31
commits into
dev
Choose a base branch
from
test-dhi
base: dev
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
Test dhi #551
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
72a7a45
Personal main updates (#480)
Lokowitz 83875a8
fix zod error (#481)
Lokowitz f121536
Merge branch 'fosrl:main' into main
Lokowitz 2cad19a
Merge branch 'fosrl:main' into main
Lokowitz 4055403
Merge branch 'fosrl:main' into main
Lokowitz 9d63762
Merge branch 'fosrl:main' into main
Lokowitz b567d63
Merge branch 'fosrl:main' into main
Lokowitz c1c7e46
Merge branch 'fosrl:main' into main
Lokowitz 40f2262
Merge pull request #2309 from fosrl/dev
oschwartz10612 1d17165
Merge branch 'fosrl:main' into main
Lokowitz 71e09a0
Merge branch 'fosrl:main' into main
Lokowitz 21beb8c
Update build args to include BUILD=enterprise
Lokowitz c8f265a
Bump actions/checkout from 4 to 6 (#493)
dependabot[bot] e8ac0dd
Update hybrid.ts
Lokowitz 593a09c
Update dev-image.yml
Lokowitz 3dd6c9b
Update dev-image.yml
Lokowitz cb569ff
Properly insert PANGOLIN_SETUP_TOKEN into db
oschwartz10612 5dda8c3
fix(i18n): correct German translation strings
MoweME b0566d3
fix(i18n): correct German site terminology
MoweME 9603fea
Merge branch 'fosrl:main' into main
Lokowitz 88620ab
move to dhi
Lokowitz 38c3bed
add entrypoint
Lokowitz 2ce8592
make executable
Lokowitz 825bb16
fix entrypoint
Lokowitz 51569ff
added healthcheck
Lokowitz 0bc3143
try
Lokowitz 4aed48e
update
Lokowitz 7e63740
update
Lokowitz 61c9887
Merge remote-tracking branch 'origin/main' into test-dhi
Lokowitz 842b545
fix build
Lokowitz 3f076bf
update node
Lokowitz 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,4 +31,5 @@ dist | |
| migrations/ | ||
| config/ | ||
| build.ts | ||
| tsconfig.json | ||
| tsconfig.json | ||
| drizzle.config.ts | ||
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,166 @@ | ||
| name: Create Dev-Image | ||
|
|
||
| on: | ||
| pull_request_target: | ||
| branches: | ||
| - main | ||
| - dev | ||
| types: | ||
| - opened | ||
| - synchronize | ||
| - reopened | ||
|
|
||
| concurrency: | ||
| group: pr-${{ github.event.pull_request.number }} | ||
| cancel-in-progress: true | ||
|
|
||
| env: | ||
| TAG_URL: https://hub.docker.com/r/${{ vars.DOCKER_HUB_REPO }}/tags | ||
| TAG: ${{ vars.DOCKER_HUB_REPO }}:dev-pr${{ github.event.pull_request.number }} | ||
| TAG_PG: ${{ vars.DOCKER_HUB_REPO }}:postgresql-dev-pr${{ github.event.pull_request.number }} | ||
|
|
||
| jobs: | ||
| build-w: | ||
| if: ${{ github.event.pull_request.head.repo.full_name != github.repository }} | ||
| runs-on: ubuntu-latest | ||
| environment: build-dev | ||
|
|
||
| steps: | ||
| - name: Checkout PR code | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| ref: refs/pull/${{github.event.pull_request.number}}/merge | ||
|
|
||
| - name: Login to Docker Hub | ||
| uses: docker/login-action@v3 | ||
| with: | ||
| username: ${{ secrets.DOCKER_HUB_USERNAME }} | ||
| password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | ||
|
|
||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v3 | ||
|
|
||
| - name: Build and push Docker image SQLITE | ||
| uses: docker/build-push-action@v6 | ||
| with: | ||
| context: . | ||
| platforms: linux/amd64 | ||
| push: true | ||
| tags: ${{ env.TAG }} | ||
| build-args: | | ||
| DATABASE=sqlite | ||
| BUILD=enterprise | ||
| cache-from: type=registry,ref=${{ vars.DOCKER_HUB_REPO }}:buildcache | ||
| cache-to: type=registry,ref=${{ vars.DOCKER_HUB_REPO }}:buildcache,mode=max | ||
|
|
||
| - name: Build and push Docker image PG | ||
| uses: docker/build-push-action@v6 | ||
| with: | ||
| context: . | ||
| platforms: linux/amd64 | ||
| push: true | ||
| tags: ${{ env.TAG_PG }} | ||
| build-args: | | ||
| DATABASE=sqlite | ||
| BUILD=enterprise | ||
| cache-from: type=registry,ref=${{ vars.DOCKER_HUB_REPO }}:buildcache-pg | ||
| cache-to: type=registry,ref=${{ vars.DOCKER_HUB_REPO }}:buildcache-pg,mode=max | ||
|
|
||
| - uses: actions/github-script@v8 | ||
| with: | ||
| script: | | ||
| const repoUrl = process.env.TAG_URL; | ||
| const tag = process.env.TAG; | ||
| const tagPg = process.env.TAG_PG; | ||
| github.rest.issues.createComment({ | ||
| issue_number: context.issue.number, | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| body: `> [!WARNING] | ||
| > This image may contain unchecked and breaking changes. Only use on own risk. | ||
|
|
||
| 👋 Thanks for your PR! | ||
| Dev images for this PR are now available on [docker hub](${repoUrl}): | ||
|
|
||
| **SQLITE Image:** | ||
| \`\`\` | ||
| ${tag} | ||
| \`\`\` | ||
|
|
||
| **Postgresql Image:** | ||
| \`\`\` | ||
| ${tagPg} | ||
| \`\`\`` | ||
| }) | ||
| build-wo: | ||
| if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout PR code | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| ref: refs/pull/${{github.event.pull_request.number}}/merge | ||
|
|
||
| - name: Login to Docker Hub | ||
| uses: docker/login-action@v3 | ||
| with: | ||
| username: ${{ secrets.DOCKER_HUB_USERNAME }} | ||
| password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | ||
|
|
||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v3 | ||
|
|
||
| - name: Build and push Docker image SQLITE | ||
| uses: docker/build-push-action@v6 | ||
| with: | ||
| context: . | ||
| platforms: linux/amd64 | ||
| push: true | ||
| tags: ${{ env.TAG }} | ||
| build-args: | | ||
| DATABASE=sqlite | ||
| BUILD=enterprise | ||
| cache-from: type=registry,ref=${{ vars.DOCKER_HUB_REPO }}:buildcache | ||
| cache-to: type=registry,ref=${{ vars.DOCKER_HUB_REPO }}:buildcache,mode=max | ||
|
|
||
| - name: Build and push Docker image PG | ||
| uses: docker/build-push-action@v6 | ||
| with: | ||
| context: . | ||
| platforms: linux/amd64 | ||
| push: true | ||
| tags: ${{ env.TAG_PG }} | ||
| build-args: | | ||
| DATABASE=sqlite | ||
| BUILD=enterprise | ||
| cache-from: type=registry,ref=${{ vars.DOCKER_HUB_REPO }}:buildcache-pg | ||
| cache-to: type=registry,ref=${{ vars.DOCKER_HUB_REPO }}:buildcache-pg,mode=max | ||
|
|
||
| - uses: actions/github-script@v8 | ||
| with: | ||
| script: | | ||
| const repoUrl = process.env.TAG_URL; | ||
| const tag = process.env.TAG; | ||
| const tagPg = process.env.TAG_PG; | ||
| github.rest.issues.createComment({ | ||
| issue_number: context.issue.number, | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| body: `> [!WARNING] | ||
| > This image may contain unchecked and breaking changes. Only use on own risk. | ||
|
|
||
| 👋 Thanks for your PR! | ||
| Dev images for this PR are now available on [docker hub](${repoUrl}): | ||
|
|
||
| **SQLITE Image:** | ||
| \`\`\` | ||
| ${tag} | ||
| \`\`\` | ||
|
|
||
| **Postgresql Image:** | ||
| \`\`\` | ||
| ${tagPg} | ||
| \`\`\`` | ||
| }) | ||
|
|
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 |
|---|---|---|
|
|
@@ -51,4 +51,5 @@ dynamic/ | |
| scratch/ | ||
| tsconfig.json | ||
| hydrateSaas.ts | ||
| CLAUDE.md | ||
| CLAUDE.md | ||
| drizzle.config.ts | ||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
builderstage and thisrunnerstage both install the same set of build dependencies (g++,make,python3) usingapk add. This redundancy increases build time and image size. To optimize this, you could create a common base stage that installs these dependencies once, and then have bothbuilderandrunnerstages use it viaFROM <base_stage_name>. This will leverage Docker's layer caching more effectively.Example: