Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 7b7adf50 authored by Joze RIHTARSIC's avatar Joze RIHTARSIC
Browse files

fix weblogic-oracle image

parent d689c050
No related branches found
No related tags found
No related merge requests found
version: "3.0"
services:
database:
image: smp-oradb-19.3.0-se2:${SMP_VERSION}
image: smp-oradb-${ORA_VERSION}-${ORA_EDITION}:${SMP_VERSION}
container_name: smp_oracle_db
hostname: wlsadmin
environment:
- ORACLE_CHARACTERSET=AL32UTF8 # set database encoding
- NLS_LANG=.AL32UTF8 # set sqlplus encoding for stating up scripts
......
ALTER SESSION SET CONTAINER=ORCLPDB1;
CREATE USER smp IDENTIFIED BY "test" DEFAULT TABLESPACE users QUOTA UNLIMITED ON users;
GRANT CREATE SESSION TO smp;
GRANT CREATE TABLE TO smp;
......
......@@ -2,16 +2,20 @@
WORKING_DIR="$(dirname $0)"
SMP_INIT_DATABASE="../../../smp-webapp/src/main/smp-setup/database-scripts/oracle10g.ddl"
SMP_INIT_DATABASE_DATA="../../../smp-webapp/src/main/smp-setup/database-scripts/oracle10g-data.sql"
#SMP_INIT_DATABASE_DATA="../../../smp-webapp/src/main/smp-setup/database-scripts/oracle10g-data.sql"
SMP_INIT_DATABASE_DATA="../../../smp-soapui-tests/groovy/oracle-4.1_integration_test_data.sql"
# soap ui data
PREFIX="smp-wls-orcl"
SMP_VERSION=
ORA_VERSION="19.3.0"
ORA_EDITION="se2"
ORA_SERVICE="ORCLPDB1"
ORACLE_PDB="ORCLPDB1"
#ORA_VERSION="19.3.0"
#ORA_EDITION="se2"
#ORA_SERVICE="ORCLPDB1"
#ORACLE_PDB="ORCLPDB1"
ORA_VERSION="11.2.0.2"
ORA_EDITION="xe"
ORA_SERVICE="xe"
SMP_DB_USERNAME=smp;
SMP_DB_PASSWORD=test;
......@@ -101,7 +105,10 @@ fi
echo "Database starting" > ./status-folder/database.status
clearOldContainers
# start
export SMP_VERSION="${SMP_VERSION}"
export SMP_VERSION
export ORA_VERSION
export ORA_EDITION
docker-compose -p ${PREFIX} up -d --force-recreate
......
Database stopped
DATABASE IS READY TO USE!
dsname=cipaeDeliveryDs
dsname=eDeliverySmpDs
dsdbname=default;create=true
dsjndiname=jdbc/cipaeDeliveryDs
dsjndiname=jdbc/eDeliverySmpDs
dsdriver=oracle.jdbc.OracleDriver
dsurl=jdbc:oracle:thin:@//database:1521/ORCLPDB1
dsurl=jdbc:oracle:thin:@//database:1521/xe
dsusername=smp
dspassword=test
dstestquery=SQL ISVALID
......
......@@ -10,7 +10,7 @@ fi
# create smp property file
echo "hibernate.dialect=org.hibernate.dialect.Oracle10gDialect" > "$DOMAIN_HOME/classes/smp.config.properties"
echo "datasource.jndi=jdbc/cipaeDeliveryDs" >> "$DOMAIN_HOME/classes/smp.config.properties"
echo "datasource.jndi=jdbc/eDeliverySmpDs" >> "$DOMAIN_HOME/classes/smp.config.properties"
echo "authentication.blueCoat.enabled=true" >> "$DOMAIN_HOME/classes/smp.config.properties"
echo "smp.truststore.password={DEC}{test123}" >> "$DOMAIN_HOME/classes/smp.config.properties"
echo "smp.keystore.password={DEC}{test123}" >> "$DOMAIN_HOME/classes/smp.config.properties"
......
......@@ -112,11 +112,22 @@
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<!-- soap ui -->
<profile>
<id>dump-code-coverage</id>
<build>
<defaultGoal>test</defaultGoal>
<plugins>
<!-- dump jacoco report from remote agent and generate report -->
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.maven.plugin.version}</version>
<configuration>
<classDumpDir>${project.build.outputDirectory}../target/</classDumpDir>
</configuration>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment