-
Notifications
You must be signed in to change notification settings - Fork 182
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
PG Embedded - the Future (Update: 1.x now released) #166
Comments
That's the correct approach in my opinion. Docker has become ubiquitously available in most developers' machines, in addition to the security features it provides. I'm having a problem running pg-embedded on my M1 laptop, and considering migrating to TestContainers, but it's great that you're planning to use it under the hood, that means much fewer changes on our side (hundreds of services depending on pg-embedded). |
I like this project like it is. It works great! And the result is small and does not use so much memory as with docker. I would like version 13 of Postgres to be included too. |
Sorry @pabloa that aint gonna happen. We are nearly ready on the docker version and have closed all extant PRs and issues. |
FWIW that version will support M1 and Postgres 13 |
We'll try to get a testing version out shortly |
@dkaukov once you have applied changes abd internal review please make an initial public version as 1.0.0.RC1 from the branch. Assuming we get no blockers, we'll release 1.0.0 |
The 1.0.0.RC1 is out on Maven. See #164 for the code and the README. |
1.0.0.RC2 has been released (will take 6-24 hours to propagate to Maven). #164 containers to be the code and README (or you can look at the tag) |
I tried out 1.0.0.RC2 and unfortunately it doesn't seem to work with Podman (https://podman.io/), which we rely on to run our containers without Docker's new very restrictive licensing.
I tried futzing around with custom socket paths, eventually ended up at testcontainers/testcontainers-java#2088, and there's lots more things to try but I didn't get anything working yet. So switching to Testcontainers may force us to use the Zonky fork or choose some other path forward, unless we can figure this out - we cannot provide a Docker environment everywhere we expect our programs to run. |
try these @stevenschlansker . They worked for me, but in genersal podman is 2 years from being production ready (google "podman testcontainerS" to see the ACKNOWLEDGED bugs in their socket api ;)
|
This is probably the most important part @stevenschlansker export DOCKER_HOST=unix:///tmp/podman.sock |
1.0.0.RC3 is out now |
1.0.0 will be released in a few minutes. Please feel free to open issues on 1.x. Issues on pre 1.x will be closed, unless people decide they wish to maintain a legacy branch (to which PRs should be targeted) |
It is of no surprise to anyone watching this repo that
this library hasn't been updated much in the last 3 years.
We apologize for this, but a series of events occurred that
shifted our time elsewhere. So a lot of stuff has bitrotted, and that sucks.
We have been considering the future of this library, and
are currently planning on rewriting it as a TestContainers dependent
project. That would mean it uses Docker images. The DSL would
remaining similar if possible, albeit requiring setting your docker image.
Here's the reasoning:
The advantage of the old methodology (embedded tarball) was a minimal dependency set,
and it was VERY fast (assuming it was already cached, just untar to a temporary location and run)
The disadvantages have been mounting for a while however:
local security context is an awful idea.
Contrasting with Docker
We are open to feedback, but our current plan is
For those of you preferring the old approach, feel free to go google "zonky embedded postgres", and you'll find a fork of this library
which is fairly regularly maintained.
Thanks!
Platform Architecture
The text was updated successfully, but these errors were encountered: