Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
45 lines (34 sloc) 1.12 KB
.PHONY: framework
CALICO_NODE_VERSION=v0.16.1
DOCKER_COMPOSE_URL=https://github.com/docker/compose/releases/download/1.4.0/docker-compose-`uname -s`-`uname -m`
default: images
docker-compose:
curl -L ${DOCKER_COMPOSE_URL} > docker-compose
chmod +x ./docker-compose
calico-node: calico/calico-node-$(CALICO_NODE_VERSION).tar
calico/calico-node-$(CALICO_NODE_VERSION).tar:
docker pull calico/node:$(CALICO_NODE_VERSION)
docker save -o calico/calico-node-$(CALICO_NODE_VERSION).tar calico/node:$(CALICO_NODE_VERSION)
images: calico-node docker-compose
./docker-compose pull
./docker-compose build
clean:
./docker-compose kill
./docker-compose rm --force
rm -rf build
st: clean images
test/run_compose_st.sh
cluster: images
./docker-compose up -d
./docker-compose scale slave=3
framework: cluster
sleep 20
docker exec netmodules_mesosmaster_1 python /framework/calico_framework.py
rpm: dist/mesos.rpm
dist/mesos.rpm: $(wildcard packages/*)
rm -rf build
mkdir -p build
docker build -t mesos-builder ./packages
docker run \
-v `pwd`/build/:/root/rpmbuild/RPMS/x86_64/ \
-v `pwd`/isolator:/tmp/isolator:ro mesos-builder
You can’t perform that action at this time.