Skip to content

Commit

Permalink
Oracle XE docker image update (#1206)
Browse files Browse the repository at this point in the history
* gebruik gvenzl/oracle-xe:18.4.0-full ipv oracle-xe:full

want de :full image is upgraded naar 21c geupgraded

* probeer ook tegen 21.3.0-full te testen

* gebruik temurin voor de java runtimes

* workaround voor een bug in Docker dat ervoor zorgt dat Oracle Out-of-Band (in 19c+) niet werkt, dus dat moeten we uitzetten

zie gvenzl/oci-oracle-xe#43
  • Loading branch information
mprins authored Nov 9, 2021
1 parent 0c500e8 commit 257ffcb
Show file tree
Hide file tree
Showing 15 changed files with 50 additions and 33 deletions.
10 changes: 5 additions & 5 deletions .build/ci/oracle-start-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
docker version

# this docker image has the following users/credentials (user/password = system/oracle)
docker pull gvenzl/oracle-xe:full
docker pull gvenzl/oracle-xe:$1

# start the dockerized oracle-xe instance (the container will be destroyed/removed on stopping)
# this container can be stopped using: docker stop oracle_brmo
docker run --rm -p 1521:1521 --name oracle_brmo -h oracle_brmo -e ORACLE_PASSWORD=oracle -d gvenzl/oracle-xe:full
docker run --rm -p 1521:1521 --name oracle_brmo -h oracle_brmo -e ORACLE_PASSWORD=oracle -d gvenzl/oracle-xe:$1

printf "\n\nStarting Oracle XE container, this could take a few minutes..."
printf "\nWaiting for Oracle XE database to start up.... "
printf "\n\nStarting Oracle $1 XE container, this could take a few minutes..."
printf "\nWaiting for Oracle $1 XE database to start up.... "
_WAIT=0;
while :
do
printf " $_WAIT"
if $(docker logs oracle_brmo | grep -q 'DATABASE IS READY TO USE!'); then
printf "\nOracle XE Database started\n\n"
printf "\nOracle $1 XE Database started\n\n"
break
fi
sleep 10
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# brmo-persistence/src/test/resources/local.connections.properties
oracle.url=jdbc:oracle:thin:@127.0.0.1:1521:XE
# bug in Docker that prevents Oracle Out-of-Band (in 19c+) to work, so we need to disable that for 21.x
# see https://github.com/gvenzl/oci-oracle-xe/issues/43
oracle.url=jdbc:oracle:thin:@127.0.0.1:1521:XE?oracle.net.disableOob=true
6 changes: 4 additions & 2 deletions .build/ci/oracle/github.oracle.brmo-commandline.properties
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# brmo-commandline/src/test/resources/oracle.properties
dbtype=oracle
# rsgb database gegevens
rsgb.url=jdbc:oracle:thin:@localhost:1521:XE
# bug in Docker that prevents Oracle Out-of-Band (in 19c+) to work, so we need to disable that for 21.x
# see https://github.com/gvenzl/oci-oracle-xe/issues/43
rsgb.url=jdbc:oracle:thin:@localhost:1521:?oracle.net.disableOob=true
rsgb.user=jenkins_rsgb
rsgb.password=jenkins_rsgb
# staging database gegevens
staging.url=jdbc:oracle:thin:@localhost:1521:XE
staging.url=jdbc:oracle:thin:@localhost:1521:XE?oracle.net.disableOob=true
staging.user=jenkins_staging
staging.password=jenkins_staging
10 changes: 6 additions & 4 deletions .build/ci/oracle/github.oracle.brmo-loader.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# ./brmo-loader/src/test/resources/local.oracle.properties
rsgb.host=127.0.0.1
rsgb.port=1521
rsgb.jdbc.url=jdbc:oracle:thin:@127.0.0.1:1521:XE
staging.jdbc.url=jdbc:oracle:thin:@127.0.0.1:1521:XE
rsgbbgt.jdbc.url=jdbc:oracle:thin:@127.0.0.1:1521:XE
topnl.jdbc.url=jdbc:oracle:thin:@127.0.0.1:1521:XE
# bug in Docker that prevents Oracle Out-of-Band (in 19c+) to work, so we need to disable that for 21.x
# see https://github.com/gvenzl/oci-oracle-xe/issues/43
rsgb.jdbc.url=jdbc:oracle:thin:@127.0.0.1:1521:XE?oracle.net.disableOob=true
staging.jdbc.url=jdbc:oracle:thin:@127.0.0.1:1521:XE?oracle.net.disableOob=true
rsgbbgt.jdbc.url=jdbc:oracle:thin:@127.0.0.1:1521:XE?oracle.net.disableOob=true
topnl.jdbc.url=jdbc:oracle:thin:@127.0.0.1:1521:XE?oracle.net.disableOob=true
10 changes: 6 additions & 4 deletions .build/ci/oracle/github.oracle.brmo-service.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# brmo-service/src/test/resources/local.oracle.properties
rsgb.url=jdbc:oracle:thin:@127.0.0.1:1521:XE
staging.url=jdbc:oracle:thin:@127.0.0.1:1521:XE
rsgbbgt.jdbc.url=jdbc:oracle:thin:@127.0.0.1:1521:XE
topnl.jdbc.url=jdbc:oracle:thin:@127.0.0.1:1521:XE
# bug in Docker that prevents Oracle Out-of-Band (in 19c+) to work, so we need to disable that for 21.x
# see https://github.com/gvenzl/oci-oracle-xe/issues/43
rsgb.url=jdbc:oracle:thin:@127.0.0.1:1521:XE?oracle.net.disableOob=true
staging.url=jdbc:oracle:thin:@127.0.0.1:1521:XE?oracle.net.disableOob=true
rsgbbgt.jdbc.url=jdbc:oracle:thin:@127.0.0.1:1521:XE?oracle.net.disableOob=true
topnl.jdbc.url=jdbc:oracle:thin:@127.0.0.1:1521:XE?oracle.net.disableOob=true
6 changes: 4 additions & 2 deletions .build/ci/oracle/github.oracle.brmo-soap.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# brmo-soap/src/test/resources/local.oracle.properties
rsgb.url=jdbc:oracle:thin:@127.0.0.1:1521:XE
staging.url=jdbc:oracle:thin:@127.0.0.1:1521:XE
# bug in Docker that prevents Oracle Out-of-Band (in 19c+) to work, so we need to disable that for 21.x
# see https://github.com/gvenzl/oci-oracle-xe/issues/43
rsgb.url=jdbc:oracle:thin:@127.0.0.1:1521:XE?oracle.net.disableOob=true
staging.url=jdbc:oracle:thin:@127.0.0.1:1521:XE?oracle.net.disableOob=true
6 changes: 4 additions & 2 deletions .build/ci/oracle/github.oracle.brmo-stufbg204.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# brmo-stufbg204/src/test/resources/local.oracle.properties
rsgb.url=jdbc:oracle:thin:@127.0.0.1:1521:XE
staging.url=jdbc:oracle:thin:@127.0.0.1:1521:XE
# bug in Docker that prevents Oracle Out-of-Band (in 19c+) to work, so we need to disable that for 21.x
# see https://github.com/gvenzl/oci-oracle-xe/issues/43
rsgb.url=jdbc:oracle:thin:@127.0.0.1:1521:XE?oracle.net.disableOob=true
staging.url=jdbc:oracle:thin:@127.0.0.1:1521:XE?oracle.net.disableOob=true
10 changes: 6 additions & 4 deletions .build/ci/oracle/github.oracle.datamodel.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# ./datamodel/src/test/resources/local.oracle.properties
rsgb.url=jdbc:oracle:thin:@localhost:1521:XE
staging.url=jdbc:oracle:thin:@localhost:1521:XE
rsgbbgt.url=jdbc:oracle:thin:@localhost:1521:XE
topnl.url=jdbc:oracle:thin:@localhost:1521:XE
# bug in Docker that prevents Oracle Out-of-Band (in 19c+) to work, so we need to disable that for 21.x
# see https://github.com/gvenzl/oci-oracle-xe/issues/43
rsgb.url=jdbc:oracle:thin:@localhost:1521:XE?oracle.net.disableOob=true
staging.url=jdbc:oracle:thin:@localhost:1521:XE?oracle.net.disableOob=true
rsgbbgt.url=jdbc:oracle:thin:@localhost:1521:XE?oracle.net.disableOob=true
topnl.url=jdbc:oracle:thin:@localhost:1521:XE?oracle.net.disableOob=true
2 changes: 1 addition & 1 deletion .github/workflows/linux-mssql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'adopt'
distribution: 'temurin'
java-version: ${{ matrix.java }}

- name: Install extra software
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/linux-oracle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ jobs:
strategy:
matrix:
java: [ 11]
java-dist: [ 'adopt' ]
java-dist: [ 'temurin' ]
oracle: ['18.4.0-full', '21.3.0-full']

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -55,7 +56,7 @@ jobs:
- name: Setup Oracle XE
run: |
./.build/ci/oracle-start-docker.sh
./.build/ci/oracle-start-docker.sh ${{ matrix.oracle }}
./.build/ci/oracle-setup.sh
- name: Test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
java: [ 11 ]
java-dist: [ 'adopt' ]
java-dist: [ 'temurin' ]
# docker image tags from https://hub.docker.com/r/postgis/postgis/tags?page=1&ordering=last_updated
# zie ook https://www.postgresql.org/support/versioning/
postgis: [
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/upgrade-oracle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'adopt'
distribution: 'temurin'
java-version: 11

- name: datamodel Priming build
Expand All @@ -48,7 +48,7 @@ jobs:
- name: Setup Oracle XE
run: |
./.build/ci/oracle-start-docker.sh
./.build/ci/oracle-start-docker.sh 18.4.0-full
./.build/ci/oracle-setup-previous.sh
- name: Upgrade databases
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/upgrade-pgsql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'adopt'
distribution: 'temurin'
java-version: 11

- name: datamodel Priming build
Expand Down
2 changes: 1 addition & 1 deletion bgt-loader/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ je de gebruiksvoorwaarden van Oracle accepteert):
Onderstaand commando gebruikt ter illustratie een onofficieel image (deze is wel 18 GB groot).

```shell
docker run --detach --publish 1521:1521 --name oracle-xe -d pvargacl/oracle-xe-18.4.0:latest
docker run --detach --publish 1521:1521 --name oracle-xe -d gvenzl/oracle-xe:18.4.0-full
```
Wacht totdat Oracle is gestart en voer het volgende uit om een schema en gebruiker aan te maken (met bash syntax):
```shell
Expand Down
4 changes: 3 additions & 1 deletion bgt-loader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,9 @@ SPDX-License-Identifier: MIT
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<db.connectionString>jdbc:oracle:thin:@localhost:1521:XE</db.connectionString>
<!-- disable Out-of-Band for 19.x and higher when running Dockerized Oracle
see https://github.com/gvenzl/oci-oracle-xe/issues/43 -->
<db.connectionString>jdbc:oracle:thin:@localhost:1521:XE?oracle.net.disableOob=true</db.connectionString>
<db.user>jenkins_rsgbbgt</db.user>
<db.password>jenkins_rsgbbgt</db.password>
</systemPropertyVariables>
Expand Down

0 comments on commit 257ffcb

Please sign in to comment.