django-docker-box icon indicating copy to clipboard operation
django-docker-box copied to clipboard

Oracle setup seems to be broken.

Open charettes opened this issue 5 years ago • 7 comments

It looks like referenced image is not publicly available anymore

docker-compose run oracle-db
Pulling oracle-db (sath89/oracle-12c:)...
ERROR: pull access denied for sath89/oracle-12c, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

https://hub.docker.com/r/sath89/oracle-12c/ is a 404

charettes avatar Aug 10 '19 06:08 charettes

Honestly, I think we should bite the bullet and try to use the official Oracle image from the Oracle container registry.

What's unfortunate is we will not be able to run this on the CI though. I'm guessing these public docker images break some kind of licensing, which is why they are being removed. See: https://old.reddit.com/r/docker/comments/ail87k/my_image_with_10m_pulls_has_just_gone_completely/?st=jzcw7ohs&sh=cbadbdc2 and the linked issue

orf avatar Aug 15 '19 16:08 orf

any progress with that?

oduvan avatar Nov 24 '20 20:11 oduvan

I've hacked together a version that uses 18c XE at https://github.com/InvalidInterrupt/django-docker-box/tree/oracle-xe that may be suitable for local testing. It also works around the sudo issue in the entrypint script.

There was some discussion regarding Oracle making XE images officially (and maybe publicly?) available here: https://github.com/oracle/docker-images/issues/1156

InvalidInterrupt avatar Apr 03 '21 23:04 InvalidInterrupt

truevoly/oracle-12c seems to have been around for 3 years. Could we switch to that for the time being in our docker-compose.yml? Looks like a PR for that change has been sitting since 2019.

awtimmering avatar Dec 01 '21 07:12 awtimmering

For anyone else looking into using this project to run Oracle: the latest version of Django (5.0) requires Oracle 19 or later - as such, neither sath89/oracle-12c nor truevoly/oracle-12c will work anymore.

If anyone attempts to fix this in the future, here are some tips:

  • oracle_entrypoint.sh is broken with an error saying that sudo isn't installed. To resolve this, copy from this commit. image

  • I got an error TNS:listener does not currently know of service requested in connect descriptor. To resolve this, make a change like this in settings/test_oracle.py image

  • If you run into error ORA-12528: TNS:listener: all appropriate instances are blocking new connections, you will need to expose port 5500 for oracle-db in docker-compose.yml image

Good luck to you! Gotta love Oracle 🙄

jpnauta avatar Apr 15 '23 05:04 jpnauta

For anyone interested in this, I have Oracle working on the main branch of my fork.

I have a bunch of tidying up to do, but hopefully in the coming months we can get it rolled back in upstream.

ngnpope avatar May 10 '24 16:05 ngnpope

Super exciting stuff @ngnpope that would make building new features on Oracle less of a pain for sure. Let me know if you want someone to QA your work locally when you're done tidying it up.

charettes avatar May 10 '24 17:05 charettes