Skip to content

Too heavy, too slow... #1678

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

Closed
CamilYed opened this issue Aug 8, 2020 · 12 comments
Closed

Too heavy, too slow... #1678

CamilYed opened this issue Aug 8, 2020 · 12 comments
Assignees
Labels
database help wanted more-info-required More information is required to solve this issue

Comments

@CamilYed
Copy link

CamilYed commented Aug 8, 2020

Can You explain me why Oracle docker image starts very slow?

I had to create my own image, beacuse i wanted ommit a database creation step.
You can check my repo:
https://github.com/KamilJedrzejuk/oracle18c-xe

I can't use original image with Testcontainers lib in my integration test.
if on the other hand we look at the PostgreSQL is very fasts and light in tests.

Please check nice example
https://kiview.github.io/testcontainers-grails-workshop/ postgresql is less than 300mb...

For me
This is ridiculous:

IMPORTANT: The resulting images will be an image with the Oracle binaries installed. On first startup of the container a new database will be created, the following lines highlight when the database is ready to be used:

#########################
DATABASE IS READY TO USE!
#########################

@CamilYed
Copy link
Author

Is anyone who can help?
@gvenzl
?

@CamilYed
Copy link
Author

CamilYed commented Dec 6, 2020

So I guess problem is solved?

@Djelibeybi
Copy link
Member

Sorry, I was closing out stale issues and must have closed this one by mistake.

@Djelibeybi Djelibeybi reopened this Dec 6, 2020
@Djelibeybi
Copy link
Member

Have you tried using the Prebuild DB example: https://github.com/oracle/docker-images/tree/master/OracleDatabase/SingleInstance/samples/prebuiltdb

As for size, that's not something we can do much about. Oracle Database is pretty big. You can try applying the submitted code to create -slim variants from #1666 and see if that helps.

@Djelibeybi
Copy link
Member

Djelibeybi commented Dec 6, 2020

[Oracle XE licensed changed. Post is no longer accurage. Edited.]

@CamilYed
Copy link
Author

CamilYed commented Dec 7, 2020

Ok I,ve removed.

@Djelibeybi
Copy link
Member

Thanks. Let us know if the Prebuilt DB and/or the -slim variants work for your use case too.

@Djelibeybi Djelibeybi added help wanted more-info-required More information is required to solve this issue labels Dec 7, 2020
@no-response
Copy link

no-response bot commented Dec 21, 2020

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

@no-response no-response bot closed this as completed Dec 21, 2020
@lukaseder
Copy link

I'm coming here from a Twitter discussion: https://twitter.com/gmarziou/status/1361700331483234307

I understand that these things are difficult to move forward at Oracle. I've been in touch with numerous people at Oracle about this topic, including e.g. @gvenzl. I just want to stress that pretty much all of Oracle's competition, including IBM with both Db2 and the arcane Informix, or Microsoft with SQL Server (they even had to adapt everything to work on Linux, first!!), and obviously PostgreSQL, just to name a few (a few more: CockroachDB, Exasol, Firebird, HANA, Ignite, MariaDB, MemSQL (now SingleStore), MySQL) make working with Docker:

  • A lot easier
  • A lot faster
  • A lot less lawyer-y

To be fair, an example that is harder to work with: Sybase ASE. Yes, given Larry's only ever tweet, Oracle is still doing better than SAP. Oh wait. No. HANA is also by SAP. 😁

@gvenzl recently asked me to join a product meeting at Oracle where Oracle would reach out to the community to learn what Oracle can improve with respect to developer friendliness, especially in a context of losing to the competition.

This is one of the top issues that comes to my mind from a developer perspective. Yes, things were a lot worse in the past in pre-docker days, and we're also discussing this publicly on github instead of via a closed MOS SR. But things could be much better by now with regards to this docker integration. This issue here could be one of Oracle's top dev friendliness priorities. Alas, it was auto-closed twice.

Look at how I install SQL Server 2019:

docker pull mcr.microsoft.com/mssql/server:2019-latest
docker run -e ACCEPT_EULA=Y -e SA_PASSWORD=Test1234 -e MSSQL_PID=Express -p 1433:1433 --name SQLSERVER2019 -d mcr.microsoft.com/mssql/server:2019-latest

And it runs fast. Isn't that also what everyone working at Oracle internally on various products, like e.g. SQL Developer, APEX, SQL*Plus, Enterprise Manager, ojdbc, etc etc. would want for themselves as well?

@gmarziou
Copy link

My own experience.

My pre-built (empty) Oracle 19 Standard image is 8 GB large, and 13 GB large once schema is instantiated.

To share it with my team, I needed to use an internal private docker registry, after several failed attempts to upload it by docker push over a bad network because of forced remote working in COVID-19 times, I ended up splitting it up in smaller parts using tar, uploading them using sftp and then pushing it locally. Fortunately, pulling worked better. Although, I had to request increasing disk space on our registry to support multiple versions. I can't imagine fully automating this process in Jenkins.

Startup time is 40 seconds while Postgresql starts up in few seconds. This impacts the way we write unit tests.

We use docker only for development and testing.
If project would have been a green field one, this bad developer experience would have lead us to choose Postgresql but this is a 10 years-old project so....

@Djelibeybi
Copy link
Member

Please continue this discussion here: #1862

@lukaseder
Copy link

Thanks, @Djelibeybi. @gmarziou: Best copy your comment to the new issue as well :)

@oracle oracle deleted a comment from gvenzl Mar 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
database help wanted more-info-required More information is required to solve this issue
Projects
None yet
Development

No branches or pull requests

6 participants