🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

github.com/dellemc-trigr/test-framework

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/dellemc-trigr/test-framework

v0.0.0-20151019151257-34ca9c8fc378
Source
Go
Version published
Created
Source

go playground for testing against mesos

  • vagrant up (playa mesos)
  • install golang
wget https://storage.googleapis.com/golang/go1.5.1.linux-amd64.tar.gz && sudo tar -C /usr/local -xzf go1.5.1.linux-amd64.tar.gz && chmod +x go1.5.1.linux-amd64.tar.gz && export GOPATH=/vagrant && export PATH=$PATH:/usr/local/go/bin && rm go1.5.1.linux-amd64.tar.gz
  • install direnv
wget https://github.com/direnv/direnv/releases/download/v2.6.0/direnv.linux-amd64 && chmod +x direnv.linux-amd64 && sudo mv direnv.linux-amd64 /usr/local/bin/direnv
  • install criu & git:
sudo apt-get install software-properties-common git -y && sudo apt-get update && sudo add-apt-repository ppa:ubuntu-lxc/stable && sudo apt-get update && sudo apt-get install -y libprotobuf-c0 && sudo apt-get install -y criu
  • install docker with checkpoint/restore:
curl -sSL -O https://github.com/boucher/docker/releases/download/v1.9.0-experimental-cr.1/docker-1.9.0-dev && chmod +x docker-1.9.0-dev && sudo mv docker-1.9.0-dev /usr/local/bin/docker
sudo docker daemon &
  • install mesos
sudo apt-get update && sudo apt-get install -y git openjdk-7-jdk autoconf libtool build-essential python-dev python-boto libcurl4-nss-dev libsasl2-dev maven libapr1-dev libsvn-dev && git clone https://git-wip-us.apache.org/repos/asf/mesos.git && cd mesos && ./bootstrap && mkdir build && cd build && ../configure && make && sudo make install

# Start mesos master (Ensure work directory exists and has proper permissions).
sudp mkdir -p /var/lib/mesos
sudo ./bin/mesos-master.sh --ip=127.0.0.1 --work_dir=/var/lib/mesos
# Start mesos slave.
sudo ./bin/mesos-slave.sh --master=127.0.0.1:5050

don't forget to go get ./...

##run framework

cd $GOPATH/src/github.com/emc-cmd/test-framework && go build -o example_scheduler && cd executor/ && go build -o example_executor && cd $GOPATH/src/github.com/emc-cmd/test-framework && sudo ./example_scheduler --master=192.168.33.10:5050 --executor="$GOPATH/src/github.com/emc-cmd/test-framework/executor/example_executor" --logtostderr=true

##multiple nodes: modify vagrant file to different IPs sudo ./bin/mesos-slave.sh --master=127.0.0.1:5050

FAQs

Package last updated on 19 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts