On 12/11/2017 22:05, craigma...@gmail.com wrote:
Hi all,
     I am brand new to syncope.   Really like what I am seeing but my learning 
curve is going slower then I would like.  I am sure that I am the root cause 
but maybe you can assist.

Hi Craig,
glad of your interest in Apache Syncope.

Please subscribe to u...@syncope.apache.org - the place where Syncope adopters' queries are managed - and address your future requests there. FYI, dev@syncope.apache.org is the place where Syncope developers discuss about the development activities.

Long term goal is to get two docker containers up and running in kubernetes.  
One will be the Postgresql database and the other the tomcat application.

I have the postgres container running and it doesn't appear to have any issues 
(ran the init script without any issues).   I am trying to get my local tomcat 
(prior to containerizing) running and connected to the docker container.  I did 
this by updaing the persistence.properties file:

Which version of Apache Syncope are you running? If 2.0.X (as I would expect), then the persistence shall be adjusted in provisioning.properties and (most important) domains/Master.properties - as reported in [1].
#JDBC COnnection
jpa.driverClassName=org.postgresql.Driver
jpa.url=jdbc:postgresql://172.17.0.4:5432/syncope
jpa.username=<myusername>
jpa.password=<mypassword>
jpa.dialect=org.apache.openjpa.jdbc.sql.PostgresDictionary
jpa.pool.validationQuery=SELECT 1
#note: other connection pool settings can also be configured here, see 
persistenceContext.xml
quartz.jobstore=org.quartz.impl.jdbcjobstore.PostgreSQLDelegate
quartz.sql=tables_postgres.sql
audit.sql=audit.sql
database.schema=

I also created a new archtype for my new project by following the instructions 
here:

https://syncope.apache.org/docs/getting-started.html#maven-project

Unfortunately, my syncope still seems to be doing "in memory" data as every 
time I restart i will lose my user list.   I am sure that I am doing something wrong.   
What more do I need to do to configure the webapp to use the remote datastore?

The instructions reported in the link above are for (a) generating a new Syncope 2.0-based Maven project and (b) running in embedded mode, e.g. with in-memory persistence, sample configuration and resources.

When in need to deploy Syncope into production-mode, e.g. with an external DBMS and Java EE container, you should continue in

https://syncope.apache.org/docs/reference-guide.html#customization

e.g. by setting the persistence details as explained by [1], then creating the deployment directories and building as explained by [2], e.g.

$ mkdir /opt/syncope
$ mkdir /opt/syncope/bundles
$ mkdir /opt/syncope/log
$ mkdir /opt/syncope/conf

then

$ mvn clean verify \
   -Dconf.directory=/opt/syncope/conf \
   -Dbundles.directory=/opt/syncope/bundles \
   -Dlog.directory=/opt/syncope/log
$ cp core/target/classes/*properties /opt/syncope/conf
$ cp console/target/classes/*properties /opt/syncope/conf
$ cp enduser/target/classes/*properties /opt/syncope/conf
$ cp enduser/target/classes/customForm.json /opt/syncope/conf

WAR files to be deployed are now in

core/target/syncope.war
console/target/syncope-console.war
enduser/target/syncope-enduser.war

HTH
Regards.

[1] https://syncope.apache.org/docs/reference-guide.html#postgresql
[2] https://syncope.apache.org/docs/reference-guide.html#customization

--
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
http://home.apache.org/~ilgrosso/

Reply via email to