Sign inSign up

thebinary/genieacs

By thebinary

•Updated over 5 years ago

Dockerized GenieACS (a blazing fast TR-069 Auto Configuration Server)

Image
2

5.6K

thebinary/genieacs repository overview

⁠GenieACS

GenieACS is a blazing fast TR-069 auto configuration server (ACS) built with Node.js, Redis, and MongoDB. It's technology neutral and configurable to fit any service provider needs. This is the core back end component. Official front end GUI is available at https://github.com/zaidka/genieacs-gui⁠.

⁠Features

  • Massively concurrent: Can handle hundreds of thousands of connected devices on a single server even with low inform interval.
  • Preset-based configuration: Define sets of configurations that devices will pick up and apply as needed based on given preconditions.
  • Tagging: Use tags to group devices for more manageable presets.
  • Searching: Query for devices on any parameter (supports all common operators including regular expressions).
  • Parameter aliasing: Define aliases to unify parameter paths from different types of devices. Aliases behave like normal parameters (i.e. can be queried or modified).
  • Extensive API: A simple yet rich HTTP-based API allows easy integration with other system.

⁠Getting started

Install Node.js⁠, Redis⁠, and MongoDB⁠. Refer to the corresponding documentation for installation guides. Then use NPM to install GenieACS by typing:

npm install -g genieacs

You may need to modify the configuration files under "config" directory (in /lib/node_modules/genieacs/config) depending on your setup.

Alternatively, you can install from source by cloning the git repository:

cd /opt
git clone https://github.com/zaidka/genieacs.git --branch v1.0
cd genieacs
npm install
npm run configure
npm run compile

Finally, run the following in GNU Screen session or something similar:

genieacs-cwmp

This is the service that the CPEs will communicate with. It listens to port 7547 by default (see config/config.json). Configure the ACS URL of your devices accordingly.

genieacs-nbi

This is the northbound interface module. It exposes a REST API on port 7557 by default. This is needed for the GUI front end to communicate with.

genieacs-fs

This is the file server from which the CPEs will download firmware images and other types of files.

You can use stream redirection to output to log files:

genieacs-cwmp >> /var/log/genieacs-cwmp.log 2>> /var/log/genieacs-cwmp-err.log
genieacs-nbi >> /var/log/genieacs-nbi.log 2>> /var/log/genieacs-nbi-err.log
genieacs-fs >> /var/log/genieacs-fs.log 2>> /var/log/genieacs-fs-err.log

For further details about installation and configuration, refer to the wiki section⁠.

You may now proceed with installing GenieACS GUI front end⁠.

⁠Docker Image

⁠Build
git clone https://github.com/zaidka/genieacs.git --branch v1.0
cd genieacs/
docker build . -t genieacs
⁠Configuration (Environment Variables)

All configuration variables of config.json have been exposed as environment variable for the docker image with prefix "GENIEACS_"

Refer: GenieACS General Config⁠

You can view the "Dockerfile" for the default parameters set for this image. As, the configuration parameters are exposed as environment variables, they can be overridden at rutime. This is will briefly described later in this documentation.

⁠Running GenieACS Services (with default env vars)
⁠1. Run redis and mongod services
docker run -d --name redis redis:alpine
docker run -d --name mongodb mongo
⁠2. Run genieacs services
docker run -d --name genie-cwmp -p7547:7777 --link mongodb:mongodb --link redis:redis genieacs [start-cwmp]
docker run -d --name genie-nbi -p7557:7777 --link mongodb:mongodb --link redis:redis genieacs start-nbi
docker run -d --name genie-fs -p7567:7777 --link mongodb:mongodb --link redis:redis genieacs start-fs
⁠Running GenieACS Services (overriding defaults)
docker run -d --name genie-cwmp -p7547:7777 -e GENIEACS_MONGODB_CONNECTION_URL="< MONGODB_CONNECTION_URL >" -e GENIEACS_REDIS_HOST="< REDIS_HOST >" [ -e .... ] [start-cwmp]
docker run -d --name genie-nbi -p7557:7777 -e GENIEACS_MONGODB_CONNECTION_URL="< MONGODB_CONNECTION_URL >" -e GENIEACS_REDIS_HOST="< REDIS_HOST >" [ -e .... ] [start-nbi]
docker run -d --name genie-fs -p7567:7777 -e GENIEACS_MONGODB_CONNECTION_URL="< MONGODB_CONNECTION_URL >" -e GENIEACS_REDIS_HOST="< REDIS_HOST >" [ -e .... ] [start-fs]

⁠Docker Compose

⁠Examples:
  1. Run CWMP
docker-compose up -d [ -f docker-compose.yml ]
  1. Run NBI
docker-compose up -d -f docker-compose.nbi.yml
  1. Run CWMP + NBI + FS
docker-compose up -d -f docker-compose.yml -f docker-compose.nbi.yml -f docker-compose.fs.yml

⁠Support

The Users mailing list⁠ is a good place to get guidance and help from the community. Head on over and join the conversation! In addition, the wiki⁠ provides useful documentation and tips from GenieACS users.

You may submit bug reports or feature requests here⁠. For device interoperability issues, please consult the mailing list first — it's likely that a workaround already exists.

For commercial support options and professional services, please visit genieacs.com⁠.

⁠Contributing

Contributions are welcome. Fork this repo and open a pull request and wait for feedback. You can also contribute by enhancing the documentation in the wiki section⁠.

Tag summary

Content type

Image

Digest

Size

247.9 MB

Last updated

over 9 years ago

docker pull thebinary/genieacs