Skip to content

Add Dockerfile - #61

Closed
cooperlees wants to merge 10 commits into
masterfrom
docker_file
Closed

cooperlees wants to merge 10 commits into
masterfrom
docker_file

Conversation

@cooperlees

@cooperlees cooperlees commented Aug 7, 2020 •

Copy link
Copy Markdown
Contributor

Title: Add a Dockerfile for OpenR

Description:

  • Add a Dockerfile that uses getdeps.py to build OpenR and deps in an Ubuntu 20.04 container

breeze is not working at the moment. Will follow up a diff/PR for that.

Test Plan:

Fixes #55 #47

@cooperlees cooperlees added the docker Issues related to our docker builds label Aug 7, 2020
@cooperlees
cooperlees requested a review from pjakma August 7, 2020 03:38
Comment thread build/build_openr.sh
# python3 "$GETDEPS" --allow-system-packages install-system-deps --recursive openr
python3 "$GETDEPS" --allow-system-packages build --no-tests --install-prefix "$INSTALL_PREFIX" openr
# TODO: Maybe fix src-dir to be absolute reference to dirname $0's parent
python3 "$GETDEPS" fixup-dyn-deps --strip --src-dir=. openr _artifacts/linux --project-install-prefix openr:"$INSTALL_PREFIX" --final-install-prefix "$INSTALL_PREFIX"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This should populate _artifacts/linux with the bits that you would install to /opt/facebook.

For docker_openr_help_test.sh to run, I think you may "just" need to run build_openr.sh first, then:

LD_LIBRARY_PATH=_artifacts/linux/lib PATH=_artifacts/linux/sbin:$PATH openr_bin --help

- Use getdeps.py via build_openr.sh
- Also install breeze into path
- Cleanup all that we can to reduce size
- Add docker instructions to README.md
  - Apply lints to README.md
- Update README.md
- Add thrift to PATH for python build
- Add -I to thrift compiler to look for fb303 default install location
- Disable fb303 install for now for breeze as it does not work
  - Will fix in corresponding updates
  - Might even try to use cmake here somehow
- Add a test script until I fix getting real /opt directories for the packages

@facebook-github-bot facebook-github-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@cooperlees has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@cooperlees merged this pull request in 9684edd.

@cooperlees
cooperlees deleted the docker_file branch August 14, 2020 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed docker Issues related to our docker builds Merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docker: build fails

3 participants