Repository navigation
Add arm64 Docker images - #14005
Add arm64 Docker images#14005kezhenxu94 wants to merge 1 commit into
Conversation
|
@kezhenxu94:Thanks for your contribution. For this PR, do we need to update docs? |
|
@kezhenxu94 when submitting a PR, can you provide doc-related info (tick the box) in the PR description? So that Bot can recognize and label your PR correspondingly. Or else Bot labels your PR with Instructions of doc labels: https://docs.google.com/document/d/1Qw7LHQdXWBW9t2-r-A7QdFDBwmZh6ytB4guwMoXHqc0/edit#bookmark=id.5d66olk7l4oz |
|
@kezhenxu94 Do you know what it would take to get all the PR checks passing? |
|
@kezhenxu94 Is there anything that can be done to help get things working? |
I think the build should be working. Just need to get the CI passed. Kind of busy recently. Hopefully I can find some time to get back to this. |
eolivelli
left a comment
There was a problem hiding this comment.
This looks like a great work !
Thanks
We will need to coordinate the release procedure.
We do have some problems with the deployment of the docker images to dockerhub due to the fact that are have a proprietary docker space (not managed by apache infra)
if we refactor the docker build we could think about make it is possible to allow a build using the ASF Infra Docker hub bot.
Can we start a discussion on [email protected] please ?
|
@eolivelli Is there any help that the community can provide here? |
| <profile> | ||
| <id>docker</id> | ||
| <!-- include the docker image only when docker profile is active --> | ||
| <dependencies> |
There was a problem hiding this comment.
I think we may need to keep this dependency in order to keep the build order, pulsar-docker-image -> pulsar-all-docker-image, since the pulsar-all-docker-image copies the pulsar server binaries from the pulsar-docker-image(newly built) and additionally inject the updated puslar-offloader and pulsar-io binaries.
| <argument> | ||
| PULSAR_IO_DIR=target/apache-pulsar-io-connectors-${project.version}-bin | ||
| </argument> | ||
| <argument> |
There was a problem hiding this comment.
We need to add <argument>--build-arg</argument> as the key prefix for PULSAR_OFFLOADER_TARBALL.
| <argument> | ||
| PULSAR_OFFLOADER_TARBALL=target/pulsar-offloader-distribution-${project.version}-bin.tar.gz | ||
| </argument> | ||
| <argument>--push</argument> |
There was a problem hiding this comment.
I think this --push might try to push the image to the DockerHub repo instead of local. Do we want to push the image to local or DockerHub here?
| <argument>build</argument> | ||
| <argument>--no-cache</argument> | ||
| <argument>--build-arg</argument> | ||
| <argument>PULSAR_TARBALL=target/pulsar-server-distribution-${project.version}-bin.tar.gz</argument> |
There was a problem hiding this comment.
I think we need to pass PULSAR_OFFLOADER_TARBALL and PULSAR_IO_DIR instead of PULSAR_TARBALL for puslar-all/build. In fact, I think this is the root cause of bin/sh -c mv /apache-pulsar-offloaders-*/offloaders /offloaders error.
| <properties> | ||
| <skipBuildPythonClient>false</skipBuildPythonClient> | ||
| <skipCopyPythonClients>false</skipCopyPythonClients> | ||
| <docker.build.skip>true</docker.build.skip> |
There was a problem hiding this comment.
Could you clarify the usage of these new props? What's the build order change here?
| <executable>docker</executable> | ||
| <workingDirectory>${project.basedir}</workingDirectory> | ||
| <arguments> | ||
| <argument>buildx</argument> |
There was a problem hiding this comment.
I think buildx requires BuildKit container in order to build for the multi platforms. Don't we need to exec(or check) docker buildx create --use --driver docker-container before this buildx execution?
|
@kezhenxu94 What do you think are the next steps on this PR? |
Hi. Sorry haven't found time to continue work on this yet. Anyone interested in this can continue based on this or I can just close this to let others take over this task. |
|
The pr had no activity for 30 days, mark with Stale label. |
|
Why is this ticket marked as closed rather than some other status that lets people know it is still unresolved? I think the ticket should be reopened as the pulsar images still do not support arm64. |
The PR is closed, but the issue is still open: #12944 |
|
@kezhenxu94 - can you clarify why you closed this PR? If you are unable to continue work on it, I'm happy to help out or to help find someone who is able to add the feature. It'd be great to get this in 2.11, which is probably going to come later this summer. |
Hi @michaeljmarshall , I haven't found time to continue this work so I have to close it and let someone else to take over the work. |
|
Thank you for your update, @kezhenxu94. I will start a thread on the dev@pulsar mailing list to discuss what needs to be done and to find someone to take over the work. It'd be great to see this done for 2.11. |
Fixes #12944
Motivation
Explain here the context, and why you're making that change. What is the problem you're trying to solve.
Modifications
Describe the modifications you've done.
Verifying this change
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)
Does this pull request potentially affect one of the following parts:
If
yeswas chosen, please highlight the changesDocumentation
Check the box below or label this PR directly (if you have committer privilege).
Need to update docs?
doc-required(If you need help on updating docs, create a doc issue)
no-need-doc(Please explain why)
doc(If this PR contains doc changes)