Tokutek / vagrant-tokutek-builder

A vagrant config that has everything you need to build TokuMX and TokuDB from scratch.
MIT License
4 stars 2 forks source link

moving build process to /vagrant directory #5

Closed sepulworld closed 6 years ago

sepulworld commented 10 years ago

Moved the build process to the /vagrant shared volume. This allows for more space that root directory of most box images, and puts the final .tgz on your local system.

sepulworld commented 10 years ago

For this to work the ./build-tokumx.sh script needs to have paths modified to use /vagrant share directory.

!/bin/bash

set -e

. $HOME/.bash_profile

mkdir -p backup-community/backup/opt pushd backup-community/backup/opt cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/vagrant/mongo/src/third_party/tokubackup -D HOT_BACKUP_LIBNAME=HotBackup -D BACKUP_HAS_PARENT=OFF .. cmake --build . --target install popd

mkdir -p ft-index/opt pushd ft-index/opt cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/vagrant/mongo/src/third_party/tokukv -D BUILD_TESTING=OFF -D USE_VALGRIND=OFF -D USE_BDB=OFF -D TOKU_DEBUG_PARANOID=OFF -D USE_CTAGS=OFF -D USE_ETAGS=OFF -D USE_CSCOPE=OFF -D USE_GTAGS=OFF .. cmake --build . --target install popd

cd mongo scons --cc=gcc-4.7 --cxx=g++-4.7 --mute --release dist

leifwalsh commented 10 years ago

I'll fix this up soon, I'm in the middle of revamping the tokumx build system anyway so I'll get to this at the end.

On Wed, Jan 8, 2014 at 9:58 PM, Zane notifications@github.com wrote:

For this to work the ./build-tokumx.sh script needs to have paths modified to use /vagrant share directory.

!/bin/bash

set -e

. $HOME/.bash_profile

mkdir -p backup-community/backup/opt pushd backup-community/backup/opt cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/vagrant/mongo/src/third_party/tokubackup -D HOT_BACKUP_LIBNAME=HotBackup -D BACKUP_HAS_PARENT=OFF .. cmake --build . --target install popd

mkdir -p ft-index/opt pushd ft-index/opt cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/vagrant/mongo/src/third_party/tokukv -D BUILD_TESTING=OFF -D USE_VALGRIND=OFF -D USE_BDB=OFF -D TOKU_DEBUG_PARANOID=OFF -D USE_CTAGS=OFF -D USE_ETAGS=OFF -D USE_CSCOPE=OFF -D USE_GTAGS=OFF .. cmake --build . --target install popd

cd mongo scons --cc=gcc-4.7 --cxx=g++-4.7 --mute --release dist

— Reply to this email directly or view it on GitHubhttps://github.com/Tokutek/vagrant-tokutek-builder/pull/5#issuecomment-31898726 .

Cheers, Leif

graingert commented 10 years ago

Does this fix #4 ?