blob: 9f997e21717ea4932636d8dabc575d4194e5c5fe [file] [log] [blame]
Carmelo Cascone8ffe33b2018-02-01 17:37:22 -08001#!/usr/bin/env bash
2
3# Builds, push and run an ONOS docker image based on this directory
4
5set -ex
6
Test Userb3324f12018-02-25 05:55:27 -08007$ONOS_ROOT/tools/build/onos-buck build onos
8docker build -f Dockerfile.prebuilt -t onos-fabric-mwc .
Carmelo Cascone8ffe33b2018-02-01 17:37:22 -08009docker tag onos-fabric-mwc 10.128.13.3:5000/onosproject/onos:candidate
10docker push 10.128.13.3:5000/onosproject/onos:candidate
11
Test User4be28e62018-03-01 07:07:02 -080012ssh head "cd /opt/onos_fabric/ && docker-compose down && docker-compose pull && docker-compose up -d"