- Go to the metron-config folder.
$ cd metron/metron-interface/metron-config
- Run the maven build taks
It creates a new build from the metron config UI with Maven and compresses it in a tar file. Once it's finished, you can find this file in the
metron/metron-interface/metron-config/target
folder. Suppose it'smetron-config-0.7.1-archive.tar.gz
.
$ mvn clean package -DskipTests
- Go to the folder above to be able to run vagrant commands.
$ cd metron/metron-deployment/development/centos6
- Copy the tar file from the host computer to full dev.
$ vagrant scp ../../../metron-interface/metron-config/target/metron-config-0.7.1-archive.tar.gz /tmp
- SSH into full dev.
$ vagrant ssh
- Go to god mode
$ su root
(the password is vagrant
)
-
Go to the
/tmp
folder -
Unpack the tar file
$ tar xvf metron-config-0.7.1-archive.tar.gz
(it creates a web
folder in /tmp
)
- Clear out the existing build (take care of the version number!)
$ rm -rf /usr/metron/0.7.1/web/management-ui/*
- Copy the new assets over
$ cp -R web/management-ui/* /usr/metron/0.7.1/web/management-ui/