Open spoonerWeb opened 3 years ago
@spoonerWeb Thanks for reporting. We must check how to add platforms on docker hub.
But currently you can build the image locally, just refer to following snipped:
version: '3.6'
services:
solr-site:
build:
context:
../packages/ext-solr/
dockerfile: Docker/SolrServer/Dockerfile
Note: EXT:solr or contents of EXT:Solr/Resources/Private/Solr must present before ddev start
command is executed.
Thanks, this solution works for now.
Building the image locally during ddev start solved the issue also for me on M1.
Had always HTTP ERROR 404 javax.servlet.UnavailableException: Error processing the request. CoreContainer is either not initialized or shutting down.
errors with the image typo3solr/ext-solr:11.0.3
.
As we run composer
commands inside ddev and therefore the solr ext may not available, I've copied the necessary files of the extension to .ddev/solr-build to provide a clean and easy boot:
@dkd-kaehm we started building cross-plattform images lately (using Github Actions also) so if you need some help, we could offer some help in that regard.
Starting from solr 7.x, the official solr images (which you use as a base) are already build for arm64/v8 (M1 compatible), so it would be pretty easy to have them build for you too.
I see you are building and testing the docker images via Github Actions already, but then upload the artefacts. How does this image end up in docker hub at the end?
Since you are using the pre-configured actions from buildx, refer to this example on how to "enhance" your build process to produce a multi-arch image (it has to be done in the same step, since the manifest must include both platforms before uploading them to docker-hub):
https://github.com/docker/build-push-action/blob/master/docs/advanced/multi-platform.md
What you need to add is:
the qemu action (in order to build for arm even on the amd64 platforms that Github Actions provides us). This can be slow if you need to compile stuff, but since you are just copying files, it should be enough
configure the additional platforms in the docker/build-push-action
action.
@dkd-kaehm we started building cross-plattform images lately (using Github Actions also) so if you need some help, we could offer some help in that regard.
Starting from solr 7.x, the official solr images (which you use as a base) are already build for arm64/v8 (M1 compatible), so it would be pretty easy to have them build for you too.
I see you are building and testing the docker images via Github Actions already, but then upload the artefacts. How does this image end up in docker hub at the end?
Since you are using the pre-configured actions from buildx, refer to this example on how to "enhance" your build process to produce a multi-arch image (it has to be done in the same step, since the manifest must include both platforms before uploading them to docker-hub):
https://github.com/docker/build-push-action/blob/master/docs/advanced/multi-platform.md
What you need to add is:
1. the qemu action (in order to build for arm even on the amd64 platforms that Github Actions provides us). This can be slow if you need to compile stuff, but since you are just copying files, it should be enough 2. configure the additional platforms in the `docker/build-push-action` action.
@baschny Thanks for advice, currently the GitHub-Actions and Docker Hub builds are not related/connected with each other, we are using the Automated Builds of Docker Hub, see https://docs.docker.com/docker-hub/builds/ and https://github.com/docker/roadmap/issues/109.
To provide the ARM images we must switch to the actions, which is currently unfavorable, because it is still possible to build the images locally, but in the future we'll of course do that.
Any progress on this topic?
Any progress on this topic?
Currently no plans to switch to other docker build stack. All our power is now on TYPO3 12 compatibility and maintaining the supported versions. If somebody did the builds of docker images via GH-Actions already, please let us know and integrate the new build stack together. Of course the pull-reqeuests with POCs for that task and other are welcome.
… Of course the pull-reqeuests with POCs for that task and other are welcome.
Here you are: #3501. It still lacks a POC, but it's a first step.
Is your feature request related to a problem? Please describe. Currently it's not possible to run the docker container (e.g. using ddev)
Describe the solution you'd like Support for arm architecture
Additional context Using typo3solr/solr image in ddev context.
docker-compose.solr.yaml
Error when starting on M1 processor:
Target versions v10 and v11