GithubHelp home page GithubHelp logo

kirilkabakchiev / docker-cloudbreak-uaa Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hortonworks/docker-cloudbreak-uaa

1.0 2.0 0.0 176.73 MB

Docker container to run a UAA identity server

Dockerfile 51.69% Makefile 17.38% Shell 30.93%

docker-cloudbreak-uaa's Introduction

Running a postgresql container to store data

The sample uaa.yml configuration tells the UAA server to store its data in a postgresql database. If you change it to something else, then skip to the next chapter.

To easily create a postgresql database on your local dev environment, use Docker. The following command creates a local postgresql container with a default database called 'postgres' and a default user 'postgres'.

docker run -d --name uaa-db postgres

Running the UAA server

To run the UAA server, first you'll need a configuration file. UAA accepts a YAML config file where the default clients and users can be defined among some other things, like where to store the data. You can find a basic configuration in the project repository. The default configuration stores data in a postgresql database whose connection parameters are defined in environment variables (that are automatically set when a database container is linked with the name db).

This docker container reads the configuration file uaa.yml from the /uaa folder. The container can accept configuration files from an URL, or from a shared volume. To run a UAA server with a configuration file in a shared volume, run this command:

docker run -d --link uaa-db:db -v /tmp/uaa:/uaa:rw hortonworks/cloudbreak-uaa:2.7.1

If you are using boot2docker on OSX, host volume sharing only shares the host folder in boot2docker, so make sure your configuration is in boot2docker's /tmp/uaa folder.

To get the configuration from an URL:

docker run -d --link uaa-db:db -e UAA_CONFIG_URL=https://raw.githubusercontent.com/sequenceiq/docker-uaa/master/uaa.yml hortonworks/cloudbreak-uaa:2.7.1

docker-cloudbreak-uaa's People

Contributors

jenkins-cloudbreak avatar keyki avatar kirilkabakchiev avatar lacikaaa avatar lalyos avatar martonsereg avatar mhmxs avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.