A dockerized media server module
Tested with proxy-docker ( nginx reverse proxy : https://github.com/DINA-Web/proxy-docker -configured to handle 'large' files )
The media-docker is running on 'wildfly:8.2.1.Final'
configuration to handle 'large' files :
'/subsystem=undertow/server=default-server/http-listener=default/:write-attribute(name=max-post-size,value=1048576000)' , see the file wildfly-custom/customization/commands.cli
the default URL for your mediaserver
be sure to update the /etc/hosts-file with 'api.nrm.se'
$ make
before testing : check nr of records in your database : ./self-test/db_count.sh
testing post an image to the mediaserver server
did firefox display the image of the dragon?
After testing : check nr of records in your database : ./self-test/db_count.sh
The response from above posting contains the key 'mediaURL' which contains the URL to the posted image, see below
make
starts the services from scratch ( target 'init' fetches the artifacts)
make clean
stops and removes services and data
For other available actions, please see the Makefile
Assuming that the hostname api.nrm.se :
GET against http://api.nrm.se/MediaServerResteasy/media/v1/`uuid`?format=image/jpeg will return an image
Documentation can be found at: https://github.com/DINA-Web/mediaserver-module
Full API docs (in-progress) can be found at: http://docs.media8.apiary.io