jhipster / generator-jhipster

JHipster is a development platform to quickly generate, develop, & deploy modern web applications & microservice architectures.
https://www.jhipster.tech
Apache License 2.0
21.47k stars 4.02k forks source link

Docker container jhipster/jhipster for Apple Silicon CPU #27321

Closed donsez closed 2 days ago

donsez commented 3 days ago
Overview of the feature request

Docker Hub contains only images for Linux AMD64

https://hub.docker.com/r/jhipster/jhipster/tags

Is it possible to add the production and the publishing of images for Apple Silicon CPU ?

Motivation for or Use Case

More (energy) efficient build and exec on Apple MacOS hosts

Related issues or PR
mshima commented 2 days ago

It’s available in GitHub packages https://github.com/jhipster/generator-jhipster/pkgs/container/generator-jhipster/263811561?tag=v8.7.0.

@mraible maybe build scripts should be adjusted.

mraible commented 2 days ago

@mshima I'm not sure which part of the build process publishes Docker images. @pascalgrimaud Do you know?

DanielFran commented 2 days ago

@mraible Is this what you are looking for? https://github.com/jhipster/generator-jhipster/blob/main/.github/workflows/docker-image-publish-github-registry.yml

pascalgrimaud commented 2 days ago

@DanielFran is right, it's exactly in this file

mshima commented 2 days ago

@mraible Is this what you are looking for? https://github.com/jhipster/generator-jhipster/blob/main/.github/workflows/docker-image-publish-github-registry.yml

This workflow publishes to GitHub registry. It’s not publishing to docker. https://github.com/jhipster/generator-jhipster/actions/runs/10570274925/job/29284486040

pascalgrimaud commented 2 days ago

For me, it's published here, as it uses the DOCKERHUB_XXXX information:

https://github.com/jhipster/generator-jhipster/blob/main/.github/workflows/docker-image-publish-github-registry.yml#L60-L68

mshima commented 2 days ago

Indeed the action run is https://github.com/jhipster/generator-jhipster/actions/runs/10570274589/job/29284485150

mshima commented 2 days ago

Linux/arm64 is been published.

DanielFran commented 2 days ago

https://hub.docker.com/layers/jhipster/jhipster/v8.7.0/images/sha256-5de8f7275019fcdc2b85be8298f6fbbf73f56387cf6e8e76e29d8362ca0eb13b?context=explore image