From version 28.6
edited by Vincent Massol
on 2019/04/12 14:10
To version 29.1
edited by Simon Urli
on 2019/04/12 14:44
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.VincentMassol
1 +xwiki:XWiki.surli
Content
... ... @@ -79,20 +79,6 @@
79 79  |##databaseProperties##|No default (empty)|See Docker documentation for the target image|List of database docker commands to use and that will override default commands (example of command ##character-set-server=utf8mb4## which will translate into ##~-~-character-set-server=utf8mb4## at runtime).
80 80  |##dependencies##|No default (empty)|Comma-separated list of Maven coordinates|List aritfacts that will be provisioned in the running XWiki instance. When specified then current pom.xml dependencies are not used to find out what to provision. This can be used for example in cases when you don't want to use project dependencies in order to not draw older version of dependencies (such as when you need to run functional docker-based tests in a specific more recent vesion of XWiki than the one used to build the code). Accepted format is ##groupId:artifactId##, ##groupId:artifactId:version## and ##groupId:artifactId:type:version##. {{info}}Since 11.2RC1{{/info}}.
81 81  
82 -== Oracle DB Configuration ==
83 -
84 -Running docker test with Oracle DB requires that you agree with Oracle's License. Then in order to use their JDBC driver, you need to follow those steps:
85 -1. [[Register on Maven Oracle>>https://www.oracle.com/webapps/maven/register/license.html]].
86 -1. Edit your local Maven ##settings.xml## file to specify your credentials for the Oracle Maven repository: follow steps 3 and 4 of [[those instructions>>https://blogs.oracle.com/dev2dev/get-oracle-jdbc-drivers-and-ucp-from-oracle-maven-repository-without-ides]].
87 -
88 -You're now supposed to be set up. However, since the Oracle Maven repository is very slow (it checks authorization for each artifact to download), we have {{scm path="xwiki-platform-core/xwiki-platform-test/xwiki-platform-test-docker/pom.xml"}}not enabled it by default in the ##oracle## profile{{/scm}} (if you want to try this, set {{code}}<enabled>true</enabled>{{/code}}). Thus you'll need to download the Oracle JDBC driver in your local Maven repository once before you're able to execute tests on Oracle. To do that you can execute:
89 -
90 -{{code}}
91 -mvn dependency:get -DrepoUrl=https://maven.oracle.com -DrepoId=maven.oracle.com -Dartifact=com.oracle.jdbc:ojdbc8:12.2.0.1
92 -{{/code}}
93 -
94 -You can then run tests with Oracle by specifying the Maven ##oracle## profile.
95 -
96 96  = Examples =
97 97  
98 98  == Full Examples ==

Get Connected