Add Dockerized build for amd64/arm64 architectures #221
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
At my current job, we use the Linux build of
vcf_validator
in Docker. This is a limitation because the image is for theamd64
architecture, and with the advent of Apple Silicon, we needarm64
images for the M1 /M2 chipset.After much trial and error, I managed to get a Dockerized build working.
There are some notable changes from simply using
install_dependencies.sh
:odb
v2.5.0-b.23
(instead ofv2.4.0
) as that has adjustments so it can compile on arm64 (according to Code Synthesis, maker of ODB, even though it is beta, it is stable).odb
viabuild2
(instead of downloading a binary)libodb
viabuild2
(instead of building it ininstall_dependencies.sh
)-Wno-narrowing
to compilation step to avoid errors (doesn't appear to break anything; test pass)libz
,libbz2
,libboost-*
installed viaapt
Contributing this as it may be useful to someone else.
One can test out my image:
I updated the
README.md
with more detail and example usage.