<commit_before>  <img src="https://raw.githubusercontent.com/openbaton/openbaton.github.io/master/images/openBaton.png" width="250"/>

  Copyright © 2015-2016 [Open Baton](http://openbaton.org).
  Licensed under [Apache v2 License](http://www.apache.org/licenses/LICENSE-2.0).
  
[![Build Status](https://travis-ci.org/openbaton/NFVO.svg?branch=master)](https://travis-ci.org/openbaton/NFVO)
[![Join the chat at https://gitter.im/openbaton/NFVO](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/openbaton/NFVO?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Documentation Status](https://readthedocs.org/projects/openbaton-docs/badge/?version=stable)](http://openbaton-docs.readthedocs.io/en/stable/?badge=stable)

# Open Baton NFV Orchestrator

Open Baton NFVO is an open source project providing a reference implementation of the NFVO based on the ETSI NFV MANO specification. 

# Getting Started

## Technical Requirements

In order to execute the NFVO you need to have installed:

* Java JRE 7 (or higher)
* RabbitMQ
* (Optional) MySQL

## Setup environment

Execute the following commands:

```bash
sudo mkdir /var/log/openbaton
sudo chown -R $USER: /var/log/openbaton
```

## RabbitMQ configuration

Execute the following commands:

```bash
rabbitmqctl add_user admin openbaton
rabbitmqctl set_user_tags admin administrator
rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"
rabbitmq-plugins enable rabbitmq_management
```
Restart RabbitMQ and ensure you can access it at http://localhost:15672 with username: admin and password: <PASSWORD>.

## Set up MySQL

Execute the following commands:

```bash
mysql -uroot -p
create database if not exists openbaton;
GRANT ALL PRIVILEGES ON openbaton.* TO admin@'%' IDENTIFIED BY '<PASSWORD>';
```

## Configure Open Baton

The property file is called "openbaton.properties".

### Database

Ensure your properties look like below:

```properties
# Active configurations
spring.datasource.url=jdbc:mysql://localhost:3306/openbaton?useSSL=false
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.jpa.database-platform=org.hibernate.dialect.MySQLDialect
spring.jpa.show-sql=false
# ddl-auto available values: create-drop, update
spring.jpa.hibernate.ddl-auto=update

# MYSQL configuration (enable it in order to avoid timeout exceptions)
spring.datasource.validationQuery=SELECT 1<commit_msg>fix readme for offline installation<commit_after>  <img src="https://raw.githubusercontent.com/openbaton/openbaton.github.io/master/images/openBaton.png" width="250"/>

  Copyright © 2015-2016 [Open Baton](http://openbaton.org).
  Licensed under [Apache v2 License](http://www.apache.org/licenses/LICENSE-2.0).
  
[![Build Status](https://travis-ci.org/openbaton/NFVO.svg?branch=master)](https://travis-ci.org/openbaton/NFVO)
[![Join the chat at https://gitter.im/openbaton/NFVO](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/openbaton/NFVO?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Documentation Status](https://readthedocs.org/projects/openbaton-docs/badge/?version=stable)](http://openbaton-docs.readthedocs.io/en/stable/?badge=stable)

# Open Baton NFV Orchestrator

Open Baton NFVO is an open source project providing a reference implementation of the NFVO based on the ETSI NFV MANO specification. 

# Getting Started

## Technical Requirements

In order to execute the NFVO you need to have installed:

* Java JRE 7 (or higher)
* RabbitMQ
* (Optional) MySQL

## Setup environment

Execute the following commands:

```bash
sudo mkdir /var/log/openbaton
sudo chown -R $USER: /var/log/openbaton
```

## RabbitMQ configuration

Execute the following commands:

```bash
rabbitmqctl add_user admin openbaton
rabbitmqctl set_user_tags admin administrator
rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"
rabbitmq-plugins enable rabbitmq_management
```
Restart RabbitMQ and ensure you can access it at http://localhost:15672 with username: admin and password: <PASSWORD>.

## Set up MySQL

Execute the following commands:

```bash
mysql -uroot -p
create database if not exists openbaton;
GRANT ALL PRIVILEGES ON openbaton.* TO admin@'%' IDENTIFIED BY 'changeme';
```

## Configure Open Baton

The property file is called "openbaton.properties".

### Database

Ensure your properties look like below:

```properties
# Active configurations
spring.datasource.url=jdbc:mysql://localhost:3306/openbaton?useSSL=false
spring.datasource.driver-class-name=org.mariadb.jdbc.Driver
spring.jpa.database-platform=org.hibernate.dialect.MySQLDialect
spring.jpa.show-sql=false
# ddl-auto available values: create-drop, update
spring.jpa.hibernate.ddl-auto=update

# MYSQL configuration (enable it in order to avoid timeout exceptions)
spring.datasource.validationQuery=SELECT 1
{'fraction_non_alphanumeric': 0.12094763092269327, 'fraction_numerical': 0.011221945137157107, 'mean_word_length': 5.49527665317139, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 14, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '626775', 'n_tokens_mistral': 1679, 'n_tokens_neox': 1543, 'n_words': 389}