Git Product home page Git Product logo

poc-docker-image's Introduction

SURFnet - Open Onderwijs API - Docker image

This project builds a Docker image containing a provisioned and runnning installation of JBoss Apiman and JBoss Keycloak. Apiman en Keycloak are configured to delegate authentication to SURconext and expose the available API's of In Holland.

Prerequisite - Install Docker

https://docs.docker.com/installation/

Usage

To run the docker container in interactive mode with HTTP (8080), HTTPS (8443) and management HTTP (9990) enabled on the environment https://apiman.openonderwijsapi.nl at port 7443:

docker run -ti -p 8080:8080 -p 8443:8443 -p 9990:9990 surfnet/ooapi-apiman -Drealm_base_url=https://apiman.openonderwijsapi.nl:7443

To run the docker container as a deamon with only HTTPS (8443) enabled on the environment https://apiman.openonderwijsapi.nl at port 7443:

docker run -d -p 8443:8443 surfnet/ooapi-apiman -Drealm_base_url=https://apiman.openonderwijsapi.nl:7443

The base url of the realm protecting the API must be supplied using the realm_base_url system property. A correctly configured realm base url is required to prevent verification issues with the OAuth token.

The docker images comes preloaded with an unsigned SSL certificate.

The master realm of JBoss Keycloak is configured with the default user admin and password admin123!

Use https://:8443/auth/admin/ to login to the JBoss Keycloak admin console and change the default password!

The apiman realm of JBoss Keycloak is configured with the default user admin and the password that you supplied during the build using the [admin-password] parameter or defaults to admin123!.

Use https://:8443/apimanui/ to login to JBoss Apiman.

Use https://:8443/js-console/ to open the demo application. See the SURFnet - Open Onderwijs API - Demo application project for further details.

Use https://:8443/spssodescriptor/realms/{realm}/identity-provider/{identity-provider} to retrieve the SAML SP SSO Descriptor of an identity provider within a realm. See the SAML - Service Provider SSO Descriptor Proxy project for further details.

Replace the preloaded keystore

Create a keystore with secret as the keystore / private key passowrd and an alias apimancert

Start the docker container as follows assuming your keystore is located in /my-keystore.jks: docker run -d -p 8443:8443 -v /my-keystore.jks:/opt/jboss/wildfly/standalone/configuration/apiman.jks surfnet/ooapi-apiman -Dexternal_url=https://apiman.openonderwijsapi.nl:7443

Limitations

  • The keystore password and private key password are hardcoded set at secret. We should use environment properties in the future so we can submit them when starting up the docker container.

Build Image

There is no need to build the Docker image yourself, because it is automatically build by Docker Hub. But you can offcourse extend from this image or build it yourself using the build script.

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.