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 Docker support and image CI #2

Merged
merged 7 commits into from
Nov 14, 2022
Merged

Add Docker support and image CI #2

merged 7 commits into from
Nov 14, 2022

Conversation

josecols
Copy link
Member

This PR adds a Dockerfile and a GitHub Workflow/Action to build and publish it to DockerHub. The container has the following features:

  • Support for arm64 and amd64. The ARM support is important because docker emulation for amd64 is slow, and one of the main issues reported in our cohort was getting MeTA to work on M1 chips.
  • The binaries are made available globally, so a user can mount a volume and just run commands against their config.toml. So, tasks like profiling or PoS tagging just require the user to set up the config.toml and run the container.
  • MeTA is installed as a library in /usr/local/lib and /usr/local/include, so users can reference it in their C++ applications.
  • The Readme file is updated with examples and simplified instructions.

@josecols josecols requested a review from dmcguire81 November 13, 2022 21:07
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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

Copy link
Collaborator

@dmcguire81 dmcguire81 left a 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
Copy link
Collaborator

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.

Copy link
Member Author

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.

@josecols josecols merged commit e846a0b into submodule/metapy Nov 14, 2022
@josecols josecols deleted the task/docker branch November 14, 2022 01:17
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.

2 participants