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

build plugin in docker #65

Merged
merged 77 commits into from
Feb 23, 2021
Merged

build plugin in docker #65

merged 77 commits into from
Feb 23, 2021

Conversation

bam241
Copy link
Member

@bam241 bam241 commented Oct 21, 2020

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...

Copy link
Member

@pshriwise pshriwise left a 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.

script/build_plugin.sh Outdated Show resolved Hide resolved
script/build_plugin.sh Outdated Show resolved Hide resolved
script/build_plugin.sh Outdated Show resolved Hide resolved
script/build_plugin.sh Outdated Show resolved Hide resolved
bam241 and others added 3 commits February 11, 2021 17:18
@bam241
Copy link
Member Author

bam241 commented Feb 11, 2021

@gonuke I think I answered all you open comments

@gonuke
Copy link
Member

gonuke commented Feb 11, 2021

I'm happy to merge if @pshriwise is all set

@bam241
Copy link
Member Author

bam241 commented Feb 14, 2021

@pshriwise do you have any additional or un-adressed comments ?

Copy link
Member

@pshriwise pshriwise left a 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 directory scripts.

  • 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?

mkdir ${PLUGIN_DIR}
echo "Building the Trelis plugin in ${CURRENT}\\${PLUGIN_DIR}"

unset LD_LIBRARY_PATH
Copy link
Member

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.

Copy link
Member Author

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...

Copy link
Member Author

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....

Copy link
Member

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.

build_moab
build_dagmc

setup_Trelis_sdk $1
Copy link
Member

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?

cd ${PLUGIN_ABS_PATH}
mkdir -pv DAGMC/bld
cd DAGMC
git clone https://github.com/bam241/DAGMC -b build_exe
Copy link
Member

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

svalinn/DAGMC#717

-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=${PLUGIN_ABS_PATH}/DAGMC
make -j`grep -c processor /proc/cpuinfo`
Copy link
Member

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.

script/linux_share_build.sh Outdated Show resolved Hide resolved
script/build_plugin.sh Outdated Show resolved Hide resolved
script/linux_share_build.sh Outdated Show resolved Hide resolved
@bam241
Copy link
Member Author

bam241 commented Feb 19, 2021

@pshriwise @gonuke I added a README file and some comments, plz let me know what you think!

Copy link
Member

@pshriwise pshriwise left a 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.

scripts/README.md Outdated Show resolved Hide resolved
scripts/README.md Outdated Show resolved Hide resolved
scripts/README.md Outdated Show resolved Hide resolved
scripts/README.md Outdated Show resolved Hide resolved
Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
Copy link
Member

@pshriwise pshriwise left a comment

Choose a reason for hiding this comment

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

Thanks @bam241!

@pshriwise pshriwise merged commit fa010b7 into svalinn:develop Feb 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants