-
Notifications
You must be signed in to change notification settings - Fork 14
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
build plugin in docker #65
Conversation
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.
Just a few comments/questions here. Again, really excited about the potential for automating these builds.
Co-authored-by: Paul Wilson <paul.wilson@wisc.edu>
@gonuke I think I answered all you open comments |
I'm happy to merge if @pshriwise is all set |
@pshriwise do you have any additional or un-adressed comments ? |
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 pretty good @bam241!
A few line comments and a couple of general thoughts:
-
This is a very small thing, but I think we should name the
script
directoryscripts
. -
I know you mentioned that you still intend to add documentation for this script, but at this point someone would have to check the PR history to figure out how to use these correctly. Can you add a short README file in this directory on how the script should be used for now?
script/linux_share_build.sh
Outdated
mkdir ${PLUGIN_DIR} | ||
echo "Building the Trelis plugin in ${CURRENT}\\${PLUGIN_DIR}" | ||
|
||
unset LD_LIBRARY_PATH |
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.
I don't see the LD_LIBRARY_PATH
being set anywhere else, so I think this can be removed.
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.
if you run this on your computer one want to be sure that the LD_LIBRARY_PATH is not set to ovoid conflict...
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.
@pshriwise I believe this is the only outdenting comment.
BU this was done on purpose for safety....
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.
Gotcha. I was understanding these as intended for use in docker only, meaning we'd have a fresh environment. Nice to be able to use them in the native kernel though -- have we tested that?
All that aside, would this command be more appropriate in the build_plugin.sh
file? It would be more clear that the LD_LIBRARY_PATH
is unset by these scripts I think.
script/build_plugin.sh
Outdated
build_moab | ||
build_dagmc | ||
|
||
setup_Trelis_sdk $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.
I know you still have documentation to work on, but can we add a comment here for what we expect the argument, $1
, to be?
script/linux_share_build.sh
Outdated
cd ${PLUGIN_ABS_PATH} | ||
mkdir -pv DAGMC/bld | ||
cd DAGMC | ||
git clone https://github.com/bam241/DAGMC -b build_exe |
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.
This repo and branch can be updated with the merge of your PR in DAGMC
script/linux_share_build.sh
Outdated
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_INSTALL_PREFIX=${PLUGIN_ABS_PATH}/DAGMC | ||
make -j`grep -c processor /proc/cpuinfo` |
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.
We use this line in multiple places, let's make the number of make jobs a variable.
Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
@pshriwise @gonuke I added a README file and some comments, plz let me know what you think! |
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.
The new README looks good overall @bam241! Just a few small typos to take care of and I'm happy w/ this.
Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
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.
Thanks @bam241!
2 scripts to build the plugin in docker (for linux),
still need to work on documentation, to explain where to place SDK and deb file, and to detail the argument to provide.
basically
script/set_docker_env.sh "ubuntu:18.04" "$HOME/work/app/Trelis_pkg/" 17.1.0
should work...