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

Update Dockerfile #154

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open

Update Dockerfile #154

wants to merge 14 commits into from

Conversation

mdpiper
Copy link

@mdpiper mdpiper commented Oct 15, 2024

This PR updates the Dockerfile used to build the grpc4bmi C++ server.

In this set of changes, I tried to use some of the latest best practices for Dockerfiles. I chose to build on the most recent Ubuntu LTS release image, as well as a recent version of gRPC.

There are two changes I made that may raise questions, both related to the abseil library used by gRPC.

  1. To get the version of abseil used by gRPC to work, I had to set stdc++17 in both gRPC and grpc4bmi.
  2. A subset of abseil libraries (absl_check) couldn't be found by the linker, so I added them manually to CMakeLists.txt.

I hope this is helpful, and I welcome any comments!

WORKDIR /opt/grpc4bmi/cpp/build
RUN cmake ..
RUN make install
RUN git clone --branch update-dockerfile --depth 1 https://github.com/csdms/grpc4bmi /opt/grpc4bmi
Copy link
Author

Choose a reason for hiding this comment

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

A note: if this PR is approved, the grpc4bmi remote needs to be switched from csdms back to eWaterCycle, and the build branch from update-dockerfile to main.

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.

1 participant