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

Add arm64 to image builds #48

Closed
wants to merge 2 commits into from

Conversation

victorlin
Copy link
Member

@victorlin victorlin commented Jun 2, 2022

Description of proposed changes

Sequence of steps inspired by the following guides:

Related issue(s)

Testing

See checks.

TODO

  • Fix compiling issues in arm64 build (see checks)

victorlin added 2 commits June 2, 2022 15:41
This replaces the existing scripts with GitHub Actions provided by Docker.

Also has the benefit of using buildx which supports building multi-arch images (to be done later): https://docs.docker.com/desktop/multi-arch/

Sequence of steps inspired by the following guides:

- https://github.com/docker/build-push-action/blob/master/docs/advanced/multi-platform.md
- https://github.com/docker/build-push-action/blob/master/docs/advanced/isolated-builders.md

Not sure if isolated builders are needed here though. It might be more efficient to have one build and push to both base and builder images, if that's even possible?
Or, to cut some time, build the two images in parallel using 2 jobs in this workflow.
@tsibley
Copy link
Member

tsibley commented Jun 13, 2022

👀

RUN make -f Makefile.AVX.PTHREADS.gcc   # AVX should be widely-supported enough
…
gcc: error: unrecognized command line option ‘-msse3’

…widely-supported enough by the x86 family of chips! 🙃

@tsibley
Copy link
Member

tsibley commented Jun 13, 2022

Guess we'll need to not compile FastTree with x86 instruction set features on non-x86 chips.

@victorlin
Copy link
Member Author

@tsibley: Guess we'll need to not compile FastTree with x86 instruction set features on non-x86 chips.

I think the culprit is RAxML, but yeah

docker-base/Dockerfile

Lines 35 to 41 in 163cba5

# RAxML
WORKDIR /build/RAxML
RUN curl -fsSL https://api.github.com/repos/stamatak/standard-RAxML/tarball/v8.2.12 \
| tar xzvpf - --strip-components=1
RUN make -f Makefile.AVX.PTHREADS.gcc # AVX should be widely-supported enough
# FastTree

@tsibley
Copy link
Member

tsibley commented Jun 15, 2022

Oh oops I misread, totally RAxML not FastTree.

@victorlin victorlin deleted the branch victorlin/use-buildx July 7, 2022 15:53
@victorlin victorlin closed this Jul 7, 2022
@victorlin victorlin deleted the victorlin/add-arm64 branch July 7, 2022 15:54
@victorlin
Copy link
Member Author

Closed in favor of #50.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

2 participants