The project is available in my github testcases repository here. This project is provided as a quick and easy way to play around with the Apache Ranger admin service. It should not be deployed in production as it uses default security credentials, it is not secure with kerberos, auditing is not enabled, etc. It contains the configuration required to build two Docker images:
- ranger-postgres: Contains a Docker File to set up a Postgres database for Apache Ranger, creating the necessary users for the Ranger admin installation scripts to work.
- ranger-admin: Contains a Docker File to build, configure and install the Apache Ranger admin service. It downloads the Apache Ranger source code, and builds and extracts the Admin service. It configures it to use the postgres database and starts the Admin service when the docker image is started.
First we need to build the docker images. This can be done via:
- (In ranger-postgres) docker build . -t coheigea/ranger-postgres
- (In ranger-admin) docker build . -t coheigea/ranger-admin
There are two ways of running the project. The easiest is to install Docker compose and then simply start it with:
- docker-compose up
- docker network create my-network
- docker run -p 5432:5432 --name postgres-server --network my-network coheigea/ranger-postgres
- docker run -p 6080:6080 -it --network my-network coheigea/ranger-admin
- http://localhost:6080 (credentials: admin/admin)