Skip to content

feat(gateway): native image - #28

Draft
simonhir wants to merge 49 commits into
mainfrom
feature/native-image
Draft

feat(gateway): native image#28
simonhir wants to merge 49 commits into
mainfrom
feature/native-image

Conversation

@simonhir

@simonhir simonhir commented Jul 26, 2024

Copy link
Copy Markdown
Member

Description

Add native image support to gateway.

References

Issues closes #29
it-at-m/appswitcher-server#27

@simonhir simonhir self-assigned this Jul 26, 2024
@devtobi devtobi added Type: Feature The issue is a feature and removed feature labels Aug 21, 2024
@simonhir simonhir added the Component: API-Gateway Issues regarding the API Gateway label Sep 4, 2024
@simonhir

simonhir commented Dec 4, 2024

Copy link
Copy Markdown
Member Author

# Conflicts:
#	refarch-gateway/pom.xml
#	refarch-gateway/src/main/resources/application.yml
@coderabbitai

coderabbitai Bot commented May 13, 2025

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

tags: |
type=raw,value=dev-k8s
- name: Build with Maven
env:

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only build image on main

@devtobi

devtobi commented Jul 3, 2025

Copy link
Copy Markdown
Member

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add release

env:
IMAGE_NAME: ghcr.io/${{ github.repository }}/refarch-gateway-native
IMAGE_RAW_TAGS: ${{ steps.meta.outputs.tags }}
NATIVE_SPRING_PROFILES: hazelcast-k8s

@simonhir simonhir Jul 16, 2025

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add image for all profiles and document why (Profile can't be changed)

@devtobi

devtobi commented Jul 23, 2025

Copy link
Copy Markdown
Member

This could also be relevant from the Spring 3.5 release notes: - The java.home system property is no longer used when running in native image. (Spring 3.5 Miscellaneous)

@simonhir

Copy link
Copy Markdown
Member Author

This could also be relevant from the Spring 3.5 release notes: https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.5-Release-Notes#docker-config-authentication

@simonhir

Copy link
Copy Markdown
Member Author

Following build error comes from podman server version below 5.4.2 (see spring-projects/spring-boot#45233)

[creator]     unable to remove /workspace/BOOT-INF
[INFO]     [creator]     unlinkat /workspace/BOOT-INF: permission denied
[INFO]     [creator]     Timer: Builder ran for 6m59.500801648s and ended at 2025-08-13T08:41:53Z
[INFO]     [creator]     ERROR: failed to build: exit status 1

podman info shows client version under Client: and server version under version:. Both needs to be (at least) 5.4.2.
Currently the server version for us is 5.3.1 so this is currently blocked.

@simonhir

simonhir commented Apr 8, 2026

Copy link
Copy Markdown
Member Author

See Spring nativeTest profile from #567

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: API-Gateway Issues regarding the API Gateway Type: Feature The issue is a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Native image support

2 participants