Skip to content
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

Container images should be built by makefiles, and mostly on amd64 platform #17

Open
cardil opened this issue Apr 13, 2023 · 0 comments
Labels
kind/enhancement New feature or request

Comments

@cardil
Copy link
Member

cardil commented Apr 13, 2023

As discussed in #11 (comment) the build could be enhanced.

Now we are building both frontend and backend for every platform we support. This takes a long time, especially on emulated platforms.

In theory, we could just build it once (on linux/amd64), and then just create a simple multi-arch image from the build artifacts. Both JVM, and TS/JS support the "build once, run everywhere" feature.

Unfortunately, it is not possible with this approach of using FROM ... as frontend/builder, and COPY --from=builder ... because the container engine errors saying it doesn't have an image for given architecture.

Maybe we can achieve that by utilizing volumes, for passing down the artifacts. In that way, we can build frontend, and backend apps once and then just create a multi-arch container image.

Also, as pointed out by @mgencur #11 (comment) it would be a good idea to be able to build them from makefiles, to not over rely on GH actions, and also make it easier to develop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant