The official images for Wisdom Framework
1.5K
Wisdom Framework is a Java-based web stack enabling modularity and dynamism. Unlike others web stack, Wisdom let you build you web applications by assembling different modules together, and thus dynamically. Wisdom provides a very efficient watch mode making the development of such application very effective.
Wisdom is based on Apache Maven and OSGi, but makes it so easy that you don't even realize you are using them.
The docker image provided by this repository let you:
The image runs a sample application, the Wisdom monitor and also embeds the documentation. Run it using:
docker run -d -p 9000:9000 wisdom/wisdom-framework
Then, you can access:
Replace host by either localhost on Linux, or the Boot2Docker IP on Mac (generally http://192.168.59.103)
To use this image as development environment, you may have to setup some volumes:
/wisdom/application stores your application/wisdom/conf stores the configurationIf you project is using the Wisdom-Maven-Plugin, run an initial
mvn package
and then, launch the docker images as follows:
docker run -d \
-p 9000:9000 \
-v `pwd`/target/wisdom/logs:/wisdom/logs \
-v `pwd`/target/wisdom/conf:/wisdom/conf \
-v `pwd`/target/wisdom/application:/wisdom/application \
wisdom/wisdom-framework
Your application is now running.
So enable the watch mode, launch maven using:
mvn wisdom:run -DwisdomDirectory=target/wisdom
As in the previous example using Maven, to use this image as development environment, you may have to setup some volumes:
/wisdom/application stores your application/wisdom/conf stores the configuration/wisdom/logs stores the logsIn that case, create, on your file system, the directory structure you need:
mkdir -p ~/tmp/wisdom/application
# Only if you have configuration to provide
mkdir -p ~/tmp/wisdom/conf
# Only if you want to store the logs on your file system
mkdir -p ~/tmp/wisdom/logs
If you have a custom configuration, copy it to the conf directory you created.
Then, launch the docker image using:
docker run -d \
-p 9000:9000 \
-v ~/tmp/logs:/wisdom/logs \
-v ~/tmp/target/wisdom/conf:/wisdom/conf \
-v ~/tmp/target/wisdom/application:/wisdom/application \
wisdom/wisdom-framework
To get the watch mode benefits, launch your project using:
mvn wisdom:run -DwisdomDirectory=~/tmp/wisdom
The last use case of this image is to use it as a base image for your own image:
FROM wisdom/wisdom-framework
COPY target/wisdom/application /wisdom/application
COPY target/wisdom/conf /wisdom/conf
The image file system is organised as follows:
/wisdom/bin - bin directory/wisdom/core - core OSGi bundles/wisdom/runtime - runtime OSGi bundles/wisdom/application - application bundles and webjars (watched)/wisdom/conf - configuration directoryIf you have comments, feedbacks, improvements, don't hesitate: https://groups.google.com/forum/#!forum/wisdom-discuss
Content type
Image
Digest
sha256:a74f70a69…
Size
280 MB
Last updated
almost 11 years ago
docker pull wisdom/wisdom-framework