added docker files for tests
This commit is contained in:
parent
57e0113216
commit
d672386824
|
@ -0,0 +1,11 @@
|
|||
#bootstrap properties for the repository startup servlet.
|
||||
#Fri Jul 21 05:19:29 CEST 2017
|
||||
java.naming.factory.initial=org.apache.jackrabbit.core.jndi.provider.DummyInit$
|
||||
repository.home=jackrabbit
|
||||
rmi.enabled=true
|
||||
repository.config=jackrabbit/repository.xml
|
||||
repository.name=jackrabbit.repository
|
||||
rmi.host=localhost
|
||||
java.naming.provider.url=http\://www.apache.org/jackrabbit
|
||||
jndi.enabled=true
|
||||
rmi.port=0
|
|
@ -0,0 +1,111 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
license agreements. See the NOTICE file distributed with this work for additional
|
||||
information regarding copyright ownership. The ASF licenses this file to
|
||||
You under the Apache License, Version 2.0 (the "License"); you may not use
|
||||
this file except in compliance with the License. You may obtain a copy of
|
||||
the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
|
||||
by applicable law or agreed to in writing, software distributed under the
|
||||
License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
|
||||
OF ANY KIND, either express or implied. See the License for the specific
|
||||
language governing permissions and limitations under the License. -->
|
||||
<!DOCTYPE Repository PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 2.0//EN" "http://jackrabbit.apache.org/dtd/repository-2.0.dtd">
|
||||
<Repository>
|
||||
<!-- virtual file system where the repository stores global state (e.g.
|
||||
registered namespaces, custom node types, etc.) -->
|
||||
<FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
|
||||
<param name="driver" value="org.postgresql.Driver" />
|
||||
<param name="schema" value="postgresql" />
|
||||
<param name="url" value="jdbc:postgresql://postgres:5432/workspace-db" />
|
||||
<param name="user" value="ws-db-user" />
|
||||
<param name="password" value="dbPwd" />
|
||||
<param name="schemaObjectPrefix" value="rep_" />
|
||||
</FileSystem>
|
||||
<!-- data store configuration -->
|
||||
<DataStore class="org.apache.jackrabbit.core.data.db.DbDataStore">
|
||||
<param name="driver" value="org.postgresql.Driver" />
|
||||
<param name="databaseType" value="postgresql" />
|
||||
<param name="url" value="jdbc:postgresql://postgres:5432/workspace-db" />
|
||||
<param name="user" value="ws-db-user" />
|
||||
<param name="password" value="dbPwd" />
|
||||
<param name="minRecordLength" value="1024" />
|
||||
<param name="maxConnections" value="3" />
|
||||
<param name="copyWhenReading" value="true" />
|
||||
<param name="tablePrefix" value="datastore_" />
|
||||
<param name="schemaObjectPrefix" value="" />
|
||||
</DataStore>
|
||||
<!-- security configuration -->
|
||||
<Security appName="Jackrabbit">
|
||||
<SecurityManager class="org.apache.jackrabbit.core.DefaultSecurityManager" />
|
||||
<AccessManager class="org.apache.jackrabbit.core.security.DefaultAccessManager" />
|
||||
<LoginModule class="org.apache.jackrabbit.core.security.authentication.DefaultLoginModule">
|
||||
<param name="adminId" value="workspace" />
|
||||
<param name="adminPassword" value="gcube" />
|
||||
</LoginModule>
|
||||
</Security>
|
||||
<!-- location of workspaces root directory and name of default workspace -->
|
||||
<Workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="default" />
|
||||
<Workspace name="${wsp.name}">
|
||||
<FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
|
||||
<param name="path" value="${wsp.home}" />
|
||||
</FileSystem>
|
||||
<PersistenceManager class="org.apache.jackrabbit.core.persistence.pool.PostgreSQLPersistenceManager">
|
||||
<param name="driver" value="org.postgresql.Driver" />
|
||||
<param name="url" value="jdbc:postgresql://postgres:5432/workspace-db" />
|
||||
<param name="schema" value="postgresql" />
|
||||
<param name="user" value="ws-db-user" />
|
||||
<param name="password" value="dbPwd" />
|
||||
<param name="schemaObjectPrefix" value="pm_${wsp.name}_" />
|
||||
<param name="bundleCacheSize" value="600" />
|
||||
<param name="errorHandling" value="IGNORE_MISSING_BLOBS" />
|
||||
<param name="consistencyFix" value="false" />
|
||||
<param name="consistencyCheck" value="false" />
|
||||
</PersistenceManager>
|
||||
<!-- Search index and the file system it uses. class: FQN of class implementing
|
||||
the QueryHandler interface -->
|
||||
<SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
|
||||
<param name="path" value="${wsp.home}/index" />
|
||||
<param name="supportHighlighting" value="true" />
|
||||
<param name="autoRepair" value="true" />
|
||||
<param name="onWorkspaceInconsistency" value="log" />
|
||||
<param name="indexingConfiguration" value="${rep.home}/indexing_configuration.xml" />
|
||||
<param name="resultFetchSize" value="50" />
|
||||
<param name="cacheSize" value="100000" />
|
||||
<param name="enableConsistencyCheck" value="false" />
|
||||
<param name="forceConsistencyCheck" value="false" />
|
||||
</SearchIndex>
|
||||
</Workspace>
|
||||
<!-- Configures the versioning -->
|
||||
<Versioning rootPath="${rep.home}/version">
|
||||
<!-- Configures the filesystem to use for versioning for the respective
|
||||
persistence manager -->
|
||||
<FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
|
||||
<param name="path" value="${rep.home}/version" />
|
||||
</FileSystem>
|
||||
<PersistenceManager class="org.apache.jackrabbit.core.persistence.pool.PostgreSQLPersistenceManager">
|
||||
<param name="driver" value="org.postgresql.Driver" />
|
||||
<param name="url" value="jdbc:postgresql://postgres:5432/workspace-db" />
|
||||
<param name="schema" value="postgresql" />
|
||||
<param name="user" value="ws-db-user" />
|
||||
<param name="password" value="dbPwd" />
|
||||
<param name="schemaObjectPrefix" value="pm_version_" />
|
||||
<param name="bundleCacheSize" value="600" />
|
||||
<param name="consistencyFix" value="false" />
|
||||
<param name="consistencyCheck" value="false" />
|
||||
</PersistenceManager>
|
||||
</Versioning>
|
||||
<!-- Cluster configuration -->
|
||||
<!-- Cluster id="storagehub1.d4science.org" syncDelay="2000">
|
||||
<Journal class="org.apache.jackrabbit.core.journal.DatabaseJournal">
|
||||
<param name="driver" value="org.postgresql.Driver" />
|
||||
<param name="url" value="jdbc:postgresql://postgres/workspace-db" />
|
||||
<param name="databaseType" value="postgresql" />
|
||||
<param name="schemaObjectPrefix" value="journal_" />
|
||||
<param name="user" value="ws-db-user" />
|
||||
<param name="password" value="dbPwd" />
|
||||
<param name="revision" value="${rep.home}/revision.log" />
|
||||
<param name="janitorEnabled" value="false"/>
|
||||
<set to true if you want to daily clean the journal table https://wiki.apache.org/jackrabbit/Clustering#Removing_Old_Revisions>
|
||||
</Journal>
|
||||
</Cluster > -->
|
||||
</Repository>
|
|
@ -0,0 +1,7 @@
|
|||
${{adminId}}=workspace
|
||||
${{adminPwd}}=gcube
|
||||
${{db-host}}=localhost
|
||||
${{ws-db}}=workspace-db
|
||||
${{dbUser}}=ws-db-user
|
||||
${{dbPwd}}=dbPwd
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
<Context path="/storagehub">
|
||||
<Resource
|
||||
name="jcr/repository"
|
||||
auth="Container"
|
||||
type="javax.jcr.Repository"
|
||||
factory="org.apache.jackrabbit.core.jndi.BindableRepositoryFactory"
|
||||
configFilePath="/app/jackrabbit/repository.xml"
|
||||
repHomeDir="/app/jackrabbit/workspaces"
|
||||
/>
|
||||
</Context>
|
|
@ -18,7 +18,6 @@ European Union Public Licence V. 1.1
|
|||
or has expressed by any other mean his willingness to license under the EUPL.
|
||||
|
||||
|
||||
|
||||
1. Definitions
|
||||
|
||||
In this Licence, the following terms have the following meaning:
|
||||
|
@ -59,7 +58,6 @@ European Union Public Licence V. 1.1
|
|||
person.
|
||||
|
||||
|
||||
|
||||
2. Scope of the rights granted by the Licence
|
||||
|
||||
The Licensor hereby grants You a world-wide, royalty-free, non-exclusive,
|
||||
|
@ -85,7 +83,6 @@ European Union Public Licence V. 1.1
|
|||
rights granted on the Work under this Licence.
|
||||
|
||||
|
||||
|
||||
3. Communication of the Source Code
|
||||
|
||||
The Licensor may provide the Work either in its Source Code form, or as
|
||||
|
@ -97,7 +94,6 @@ European Union Public Licence V. 1.1
|
|||
continues to distribute and/or communicate the Work.
|
||||
|
||||
|
||||
|
||||
4. Limitations on copyright
|
||||
|
||||
Nothing in this Licence is intended to deprive the Licensee of the benefits from
|
||||
|
@ -106,7 +102,6 @@ European Union Public Licence V. 1.1
|
|||
applicable limitations thereto.
|
||||
|
||||
|
||||
|
||||
5. Obligations of the Licensee
|
||||
|
||||
The grant of the rights mentioned above is subject to some restrictions and
|
||||
|
@ -147,7 +142,6 @@ European Union Public Licence V. 1.1
|
|||
reproducing the content of the copyright notice.
|
||||
|
||||
|
||||
|
||||
6. Chain of Authorship
|
||||
|
||||
The original Licensor warrants that the copyright in the Original Work granted
|
||||
|
@ -163,7 +157,6 @@ European Union Public Licence V. 1.1
|
|||
terms of this Licence.
|
||||
|
||||
|
||||
|
||||
7. Disclaimer of Warranty
|
||||
|
||||
The Work is a work in progress, which is continuously improved by numerous
|
||||
|
@ -180,7 +173,6 @@ European Union Public Licence V. 1.1
|
|||
for the grant of any rights to the Work.
|
||||
|
||||
|
||||
|
||||
8. Disclaimer of Liability
|
||||
|
||||
Except in the cases of wilful misconduct or damages directly caused to natural
|
||||
|
@ -193,7 +185,6 @@ European Union Public Licence V. 1.1
|
|||
laws as far such laws apply to the Work.
|
||||
|
||||
|
||||
|
||||
9. Additional agreements
|
||||
|
||||
While distributing the Original Work or Derivative Works, You may choose to
|
||||
|
@ -207,7 +198,6 @@ European Union Public Licence V. 1.1
|
|||
any such warranty or additional liability.
|
||||
|
||||
|
||||
|
||||
10. Acceptance of the Licence
|
||||
|
||||
The provisions of this Licence can be accepted by clicking on an icon “I agree”
|
||||
|
@ -222,7 +212,6 @@ European Union Public Licence V. 1.1
|
|||
Distribution and/or Communication by You of the Work or copies thereof.
|
||||
|
||||
|
||||
|
||||
11. Information to the public
|
||||
|
||||
In case of any Distribution and/or Communication of the Work by means of
|
||||
|
@ -233,7 +222,6 @@ European Union Public Licence V. 1.1
|
|||
accessible, concluded, stored and reproduced by the Licensee.
|
||||
|
||||
|
||||
|
||||
12. Termination of the Licence
|
||||
|
||||
The Licence and the rights granted hereunder will terminate automatically upon
|
||||
|
@ -244,7 +232,6 @@ European Union Public Licence V. 1.1
|
|||
remain in full compliance with the Licence.
|
||||
|
||||
|
||||
|
||||
13. Miscellaneous
|
||||
|
||||
Without prejudice of Article 9 above, the Licence represents the complete
|
||||
|
@ -265,7 +252,6 @@ European Union Public Licence V. 1.1
|
|||
their choice.
|
||||
|
||||
|
||||
|
||||
14. Jurisdiction
|
||||
|
||||
Any litigation resulting from the interpretation of this License, arising
|
||||
|
@ -279,7 +265,6 @@ European Union Public Licence V. 1.1
|
|||
conducts its primary business.
|
||||
|
||||
|
||||
|
||||
15. Applicable Law
|
||||
|
||||
This Licence shall be governed by the law of the European Union country where
|
||||
|
@ -298,7 +283,6 @@ European Union Public Licence V. 1.1
|
|||
Appendix
|
||||
|
||||
|
||||
|
||||
“Compatible Licences” according to article 5 EUPL are:
|
||||
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ The projects leading to this software have received funding from a series of
|
|||
Version
|
||||
--------------------------------------------------
|
||||
|
||||
1.5.0-SNAPSHOT (2021-12-23)
|
||||
1.5.0-SNAPSHOT (20220201-153509)
|
||||
|
||||
Please see the file named "changelog.xml" in this directory for the release notes.
|
||||
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
<web-app>
|
||||
<context-param>
|
||||
<param-name>admin-username</param-name>
|
||||
<param-value>workspacerep.imarine</param-value>
|
||||
<param-value>${{adminId}}</param-value>
|
||||
</context-param>
|
||||
<context-param>
|
||||
<param-name>admin-pwd</param-name>
|
||||
<param-value>gcube2010*onan</param-value>
|
||||
<param-value>${{adminPwd}}</param-value>
|
||||
</context-param>
|
||||
<context-param>
|
||||
<param-name>resolver-basepath</param-name>
|
||||
|
|
Loading…
Reference in New Issue