Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add basic support for Oracle DB #350

Merged
merged 1 commit into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading