-
Notifications
You must be signed in to change notification settings - Fork 0
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 Docker support and image CI #2
Conversation
RUN sed -i 's:\.\./:/meta/:g' config.toml | ||
|
||
WORKDIR /meta/build | ||
RUN cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=On -DBUILD_STATIC_ICU=On -DLIBCXX_LIBRARY=/lib/llvm-14/lib/libc++.so.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ship it!
@@ -0,0 +1,38 @@ | |||
name: Docker Image CI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. I think we have a lot of options for wrapping this up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. After the initial release is ready, we can limit this action to run only on the master
branch.
This PR adds a Dockerfile and a GitHub Workflow/Action to build and publish it to DockerHub. The container has the following features:
arm64
andamd64
. The ARM support is important because docker emulation foramd64
is slow, and one of the main issues reported in our cohort was getting MeTA to work on M1 chips.config.toml
. So, tasks like profiling or PoS tagging just require the user to set up theconfig.toml
and run the container./usr/local/lib
and/usr/local/include
, so users can reference it in their C++ applications.