Skip to content

Instantly share code, notes, and snippets.

@mhrivnak
Created May 4, 2019 20:57
Show Gist options
  • Save mhrivnak/fdac3c771ea0bf7ab994be85b022b100 to your computer and use it in GitHub Desktop.
Save mhrivnak/fdac3c771ea0bf7ab994be85b022b100 to your computer and use it in GitHub Desktop.
lab env setup
# install operator-sdk
curl -L https://github.com/operator-framework/operator-sdk/releases/download/v0.7.0/operator-sdk-v0.7.0-x86_64-linux-gnu -o bin/operator-sdk
chmod 755 bin/operator-sdk
# install other utils
yum install -y jq tree ansible python-devel golang
# install "dep"
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
# install ansible and its requirements
# TODO do we need to upgrade pip and setuptools? This was taken from the katacoda setup.
pip install --trusted-host files.pythonhosted.org --trusted-host pypi.org --trusted-host pypi.python.org --upgrade pip
pip install --trusted-host files.pythonhosted.org --trusted-host pypi.org --trusted-host pypi.python.org --upgrade setuptools
pip install --trusted-host files.pythonhosted.org --trusted-host pypi.org --trusted-host pypi.python.org --ignore-installed ipaddress openshift
pip install --trusted-host files.pythonhosted.org --trusted-host pypi.org --trusted-host pypi.python.org ansible-runner
pip install --trusted-host files.pythonhosted.org --trusted-host pypi.org --trusted-host pypi.python.org ansible-runner-http
# setup git profile
git config --global user.email "operator-sdk@example.com"
git config --global user.name "OperatorSDK Lab"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment