GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — wiki update: testcontainers magic · Issue #465 · tada/pljava Open DescriptionSomeone asked how to use this extension with testcontainers a while back and I had a very long-winded answer (but with sample code!)... then realized I was an idiot and there's a much easier answer that can be added to the wiki. Using a pre-configured Docker imageWhen I'm using my custom docker images I use PostgreSQLContainer getContainer() { DockerImageName imageName = DockerImageName.parse("beargiles/postgres-pljava:15.4").asCompatibleSubstituteFor("postgres"); PostgreSQLContainer db = new PostgreSQLContainer(ImageName); // db.withInitScript("/path/to/initScript"); db.withImagePullPolicy((s) -> false); return db; } The key is the The initialization script can load the jars you require, perform any required SQL calls, etc. Note: I strongly recommend that any initialization scripts be limited to preparing the test data. Any custom You may not need the Using an official PostgreSQL imageThe short answer is that you can't. The initialization scripts can't install system packages. The long answer is that you could - but it would be difficult. You would need to install pl/java using the If you're feeling bold look at the first two targets in this Dockerfile. Reacted by Adrian A. Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |