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

Genny build from bash script I've made. #1135

Open
Montana opened this issue Feb 28, 2024 · 0 comments
Open

Genny build from bash script I've made. #1135

Montana opened this issue Feb 28, 2024 · 0 comments

Comments

@Montana
Copy link

Montana commented Feb 28, 2024

Hi all,

I've made this bash script to install Genny, via running:

chmod +x ./genny_install.sh
./genny_install.sh

I've added the -j$(nproc) option with make, enables parallel compilation using all available processor cores, speeding up the build process:

#!/bin/bash

set -e

export GENNY_REPO="https://github.com/mongodb/genny.git"
export GENNY_DIR="genny"
export BUILD_DIR="${GENNY_DIR}/build"
export MONGO_DB_VERSION="4.4.0"

if [ ! -d "$GENNY_DIR" ]; then
    git clone $GENNY_REPO $GENNY_DIR
fi

cd $GENNY_DIR

git submodule update --init --recursive

mkdir -p $BUILD_DIR
cd $BUILD_DIR

cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/genny \
         -DMONGO_DB_VERSION=$MONGO_DB_VERSION

make -j$(nproc)

I get a similar 404 as proposed in another issue in this repository. Any ideas?

Cheers,
Michael Mendy

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

No branches or pull requests

1 participant