Additional module for personium-core to enable server-side JavaScript execution.
http://personium.io/docs/
The component personium-engine
works behind of personium-core
component. So, you have to launch personium-core
and need backends, then you have to configure personium-core
to use personium-engine
you launched.
Please refer to personium/ansible to prepare them manually.
There are two options to launch personium-engine
. DO NOT make the engine endpoints public. personium-engine
is designed to run behind the personium-core
.
You can use maven to build personium-engine.war file to run on a servlet container.
git clone https://github.com/personium/personium-engine
cd personium-engine
mvn package
After compiling, you can get war file on target folder. ( target/personium-engine.war
)
You can build docker container image including personium-engine
based on Tomcat image with below command.
docker build . -t personium-engine
After building, you can launch personium-engine in docker container.
docker run -d -p 8080:8080 personium-engine
You can mount volume to use specified configuration.
docker run -d -p 8080:8080 -v /path/to/config.properties:/personium/personium-engine/conf/personium-unit-config.properties personium-engine
-
Place
personium-ex-mailsender
jar file andExt_MailSender.properties
file in/personium/personium-engine/extensions
. Content ofExt_MailSender.properties
is below.io.personium.engine.extension.MailSender.smtp.host=localhost io.personium.engine.extension.MailSender.smtp.port=1025
-
Launch required software with
docker-compose up
-
Launch
personium-core
on Tomcat9 locally.
For example, with below comand. ( Set$TOMCAT_DIR
environment value to path of directory which Tomcat9 installed, and placepersonium-core.war
on$TOMCAT_DIR/webapps/personium-core.war
. )JAVA_OPTS="-Djava.util.logging.config.file=$TOMCAT_DIR/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -Dcatalina.base=$TOMCAT_DIR -Dcatalina.home=$TOMCAT_DIR -Djava.io.tmpdir=$TOMCAT_DIR/temp -Dio.personium.configurationFile=$PWD/src/test/resources/personium-core-unit-config.properties" catalina.sh run
-
Execute tests with maven.
mvn -f pom.xml test
Personium is licensed under the Apache License, Version 2.0. See LICENSE.txt