Skip to content

Commit

Permalink
Merge pull request #350 from Altahrim/feat/oracle-basics
Browse files Browse the repository at this point in the history
feat: add basic support for Oracle DB
  • Loading branch information
juliusknorr authored Oct 25, 2024
2 parents 06e99a1 + 855cfa4 commit d29f8ad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -665,14 +665,13 @@ services:
- postgres:/var/lib/postgresql

database-oci:
image: ghcr.io/gvenzl/oracle-xe:21
image: gvenzl/oracle-free:23
environment:
ORACLE_PASSWORD: nextcloud
APP_USER: nextcloud
APP_USER_PASSWORD: nextcloud
ORACLE_DATABASE: nextcloud
ORACLE_PASSWORD: oracle
ports:
- 1521:1521/tcp
- 1521:1521
volumes:
- oracle:/opt/oracle/oradata

pgadmin:
container_name: pgadmin_container
Expand Down Expand Up @@ -1080,6 +1079,7 @@ volumes:
apps-writable:
mysql:
postgres:
oracle:
redis:
data2:
config2:
Expand Down
4 changes: 2 additions & 2 deletions docker/bin/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ wait_for_other_containers() {
"oci")
output " - Oracle"
retry_with_timeout "(echo > /dev/tcp/database-$SQL/1521) 2>/dev/null" 30 "⚠ Unable to connect to the Oracle server"
sleep 2
sleep 45
;;
"sqlite")
output " - SQLite"
Expand Down Expand Up @@ -233,7 +233,7 @@ install() {

output "🔧 Starting auto installation"
if [ "$SQL" = "oci" ]; then
OCC maintenance:install --admin-user=$USER --admin-pass=$PASSWORD --database="$SQL" --database-name=nextcloud --database-host="$SQLHOST" --database-port=1521 --database-user=nextcloud --database-pass=nextcloud
OCC maintenance:install --admin-user=$USER --admin-pass=$PASSWORD --database="$SQL" --database-name=FREE --database-host="$SQLHOST" --database-port=1521 --database-user=system --database-pass=oracle
elif [ "$SQL" = "pgsql" ]; then
OCC maintenance:install --admin-user=$USER --admin-pass=$PASSWORD --database="$SQL" --database-name="$DBNAME" --database-host="$SQLHOST" --database-user=postgres --database-pass=postgres
elif [ "$SQL" = "mysql" ]; then
Expand Down

0 comments on commit d29f8ad

Please sign in to comment.