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 #8

Merged
merged 8 commits into from
Nov 25, 2022
Merged

Add Docker support #8

merged 8 commits into from
Nov 25, 2022

Conversation

josecols
Copy link
Member

This PR includes a Dockerfile that extends the MeTA Docker image to install metapy. Users can use the Dockerfile or the Docker image built from it to run Python programs that require metapy.

@josecols
Copy link
Member Author

@dmcguire81, we need to add the DOCKERHUB_USERNAME and DOCKERHUB_TOKEN workflow variables to enable DockerHub pushes.

RUN mkdir build

WORKDIR /metapy
RUN sed -i 's:add_subdirectory(deps/meta EXCLUDE_FROM_ALL):find_package(MeTA 3.0.2 REQUIRED):g' CMakeLists.txt
Copy link
Collaborator

Choose a reason for hiding this comment

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

So this just builds the pybind11 code and not the dependencies?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, MeTA and its dependencies are already built as libraries.

Dockerfile Outdated
python3-pip

WORKDIR /metapy
RUN git submodule update --init --recursive
Copy link
Collaborator

@dmcguire81 dmcguire81 Nov 24, 2022

Choose a reason for hiding this comment

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

Docker build fails here.

@josecols josecols merged commit 317356e into master Nov 25, 2022
@josecols josecols deleted the task/docker branch November 25, 2022 04:46
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