{"user":"aerogear","name":"unifiedpush-wildfly","namespace":"aerogear","repository_type":"image","status":1,"status_description":"active","description":"","is_private":false,"is_automated":true,"star_count":6,"pull_count":232117,"last_updated":"2019-05-30T19:27:09.693963Z","last_modified":"2024-10-16T13:48:34.145251Z","date_registered":"2014-10-27T18:14:05.286072Z","collaborator_count":0,"affiliation":null,"hub_user":"aerogear","has_starred":false,"full_description":"# AeroGear UnifiedPush server environment\n\n[![](https://img.shields.io/docker/automated/jrottenberg/ffmpeg.svg)](https://hub.docker.com/r/aerogear/unifiedpush-wildfly/)\n[![Docker Stars](https://img.shields.io/docker/stars/aerogear/unifiedpush-wildfly.svg?style=plastic)](https://registry.hub.docker.com/v2/repositories/aerogear/unifiedpush-wildfly/stars/count/)\n[![Docker pulls](https://img.shields.io/docker/pulls/aerogear/unifiedpush-wildfly.svg?style=plastic)](https://registry.hub.docker.com/v2/repositories/aerogear/unifiedpush-wildfly/)\n\n[![License](https://img.shields.io/:license-Apache2-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0)\n\n\n\nThis image prepares the environment required to run [AeroGear UnifiedPush](https://github.com/aerogear/aerogear-unifiedpush-server/) server with the binaries.\n\nFor feature requests or bugs, please file a JIRA [here](https://issues.jboss.org/projects/AGPUSH/summary)\n\n## Install Docker\n\nFollow the [instructions](http://docs.docker.com/installation/)\n\n## Running the image\n\nBefore starting the UPS we need to have a Keycloak Server and a database available for it.\n\nYou can start a database for the UnifiedPush Server using the following command:\n\n```shell\n$ docker run --name unifiedpushDB \\\n           -p 8080:8080 \\\n           -p 9090:9090 \\\n           -e POSTGRES_USER=unifiedpush \\\n           -e POSTGRES_PASSWORD=unifiedpush \\\n           -e POSTGRES_DATABASE=unifiedpush \\\n           -e POSTGRES_ROOT_PASSWORD=supersecret \\\n           -d postgres:9.6\n```\n\nThis creates a Postgres instance and exposes the ports we'll need for Keycloak, UPS, and Postgres.\n\nYou can run the commands below to start Keycloak and the UPS containers. These containers both share the same network as the database container due to the `--net` option that's passed so we don't need to specify the port options again. \n\nReplace `localhost` and `/path/to/my/folder/containing/ups-realm` with your own values as necessary. A sample realm configuration can be found [here](https://github.com/aerogear/aerogear-unifiedpush-server/tree/master/docker-compose/keycloak-realm).\n\n```shell\n$ docker run -d --name keycloak \\\n           --net=container:unifiedpushDB \\\n           -v /path/to/my/folder/containing/ups-realm:/keycloak-cfg \\\n           -e KEYCLOAK_USER=admin \\\n           -e KEYCLOAK_PASSWORD=admin \\\n           jboss/keycloak:4.0.0.Final \\\n           \"-b 0.0.0.0 -Dkeycloak.import=/keycloak-cfg/ups-realm-sample.json\"\n\n$ docker run --name ups \\\n           --net=container:unifiedpushDB \\\n           -e POSTGRES_SERVICE_HOST=localhost \\\n           -e POSTGRES_SERVICE_PORT=3306 \\\n           -e POSTGRES_DATABASE=unifiedpush \\\n           -e POSTGRES_USER=unifiedpush \\\n           -e POSTGRES_PASSWORD=unifiedpush \\\n           -e KEYCLOAK_SERVICE_HOST=localhost \\\n           -e KEYCLOAK_SERVICE_PORT=8080 \\\n           -dit aerogear/unifiedpush-wildfly:2.1.0 \\\n           \"-Djboss.socket.binding.port-offset=1010\"\n```\n\n**Note**: The image will run SSL by default with self signed certificates being automatically generated.    \nIf you want to use your own certificate and key (authority certified certificates for example), proceed as follows :\n\n1. put your key and certificate respectively named `privatekey.key` and `certificate.crt` in a dedicated directory.    \n2. Launch the container as above but adding a volume option : `-v \u003cpath to the dir where you put key and cert\u003e:/keys`\n\nThe image will use your certificates instead of the self signed ones.\n\n## Building the image (alternative)\n\n**Note**: First, you need to build the Dockerfile of the parent folder!\n\nAfterwards build the `unifiedpush-wildfly` image yourself, by running:\n\n`docker build -t aerogear/unifiedpush-wildfly .`\n\n## Accessing UPS\n\nIt only exposes SSL port, all HTTP requests will be redirected to HTTPS.\n\nIf you're developing locally with a default Docker setup you should be able to access the UPS server at `https://localhost:9090/ag-push`. Alternatively, get the image IP address, using one of these commands:\n\n```\n$ docker-machine ip default\n$ docker inspect IMAGENAME | grep -i IPAddr\n```\n\nYou can then navigate to `http://myip:9090/ag-push`.\n\nLogin using the default values of `admin` for the username and `123` as the password.\n\n## Contributing\n\nPatches are welcome, just send a pull request and I will be happy on merging it. If you want more images, open issues\nwith the request.\n","permissions":{"read":true,"write":false,"admin":false},"media_types":["application/vnd.docker.container.image.v1+json"],"content_types":["image"],"categories":[],"immutable_tags_settings":{"enabled":false,"rules":[".*"]},"storage_size":14582466274,"source":null}