postgresql-event-sourcing icon indicating copy to clipboard operation
postgresql-event-sourcing copied to clipboard

Build Spring Boot image for arm64 architecture

Open luciano-fiandesio opened this issue 2 years ago • 0 comments

In case someone is running this project on a M1/M2 Apple chip, this will enable building the image for the correct architecture:

Replace the jib configuration from the build.gradle file from event-sourcing-app with:

jib {
    to {
        image = "eugene-khyst/postgresql-event-sourcing:${project.version}"
    }
    from {
        image = "eclipse-temurin:21-jre"
        platforms {
            platform {
                architecture = 'arm64'
                os = 'linux'
            }
        }
    }
}

luciano-fiandesio avatar Nov 01 '23 21:11 luciano-fiandesio