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

Adds a self build option for dendrite #2674

Merged
merged 2 commits into from May 10, 2023

Conversation

ibeckermayer
Copy link
Contributor

Recently I needed to add an option to self-build dendrite in order to apply a bug patch that's not yet in any official release.

The actual build itself is done with a ansible.builtin.command rather than a community.docker.docker_image, because the dendrite Docker image uses the BUILDPLATFORM variable, which is a BuildKit/buildx feature, and according to the community.docker.docker_image documentation:

Building images is done using Docker daemon’s API. It is not possible to use BuildKit / buildx this way.

Therefore we work around that by avoiding using Docker daemon's api and just using the docker cli via ansible.builtin.command.

to a conditional block, similar to synapse. Also adds the
DOCKER_BUILDKIT=1 explicitly to ensure buildkit is used.
@spantaleev spantaleev merged commit cb21249 into spantaleev:master May 10, 2023
@spantaleev
Copy link
Owner

Looks good! Thank you!

spantaleev added a commit that referenced this pull request May 11, 2023
spantaleev added a commit that referenced this pull request May 11, 2023
KarolosLykos pushed a commit to KarolosLykos/matrix-docker-ansible-deploy that referenced this pull request Mar 5, 2024
KarolosLykos pushed a commit to KarolosLykos/matrix-docker-ansible-deploy that referenced this pull request Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants